Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Arm64 support for KOTS images #4394

Merged
merged 7 commits into from
Jan 29, 2024
Merged

Arm64 support for KOTS images #4394

merged 7 commits into from
Jan 29, 2024

Conversation

sgalsaleh
Copy link
Member

@sgalsaleh sgalsaleh commented Jan 23, 2024

What this PR does / why we need it:

Which issue(s) this PR fixes:

Adds support for running KOTS components on Linux Arm64 based clusters / nodes.

Special notes for your reviewer:

Steps to reproduce

Does this PR introduce a user-facing change?

* Adds support for running KOTS components on Linux Arm64 based clusters / nodes.

Does this PR require documentation?

@sgalsaleh sgalsaleh added the type::feature New feature or request label Jan 23, 2024
@sgalsaleh sgalsaleh force-pushed the arm64-support-for-kots branch from 71edbb3 to 03d9b3d Compare January 26, 2024 21:53
@sgalsaleh sgalsaleh marked this pull request as ready for review January 26, 2024 21:57
@sgalsaleh sgalsaleh requested a review from cbodonnell January 26, 2024 21:58
@@ -521,7 +518,7 @@ func (c *Client) uninstallWithHelm(v1Beta1ChartsDir, v1Beta2ChartsDir string, ko
}

logger.Infof("running helm with arguments %v", args)
cmd := exec.Command(fmt.Sprintf("helm%s", version), args...)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

is this because v3 is the default and you just want to use the default?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

it's because we removed the helm 2 binary a long time ago but didn't refactor this code.

@@ -281,3 +281,27 @@ func KustomizeImage(destRegistry registrytypes.RegistryOptions, image string) ([
}
return rewrittenImages, nil
}

func ChangeImageTag(image string, newTag string) (string, error) {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could use a comment about what this function does

divolgin
divolgin previously approved these changes Jan 29, 2024
@sgalsaleh sgalsaleh merged commit 1980b7f into main Jan 29, 2024
105 checks passed
@sgalsaleh sgalsaleh deleted the arm64-support-for-kots branch January 29, 2024 22:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type::feature New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants