-
Notifications
You must be signed in to change notification settings - Fork 8
feat(api): helm binary migration #3063
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
Conversation
This PR has been released (on staging) and is available for download with a embedded-cluster-smoke-test-staging-app license ID. Online Installer:
Airgap Installer (may take a few minutes before the airgap bundle is built):
Happy debugging! |
1b9e6b9
to
001732c
Compare
001732c
to
1a8b27d
Compare
func (h *HelmClient) Latest(ctx context.Context, reponame, chart string) (string, error) { | ||
// Use helm search repo with JSON output to find the latest version | ||
args := []string{"search", "repo", fmt.Sprintf("%s/%s", reponame, chart), "--version", ">0.0.0", "--versions", "--output", "json"} | ||
|
||
stdout, _, err := h.executor.ExecuteCommand(ctx, nil, nil, args...) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
the binary is used here
func (h *HelmClient) GetChartMetadata(ctx context.Context, ref string, version string) (*chart.Metadata, error) { | ||
// Use helm show chart to get chart metadata | ||
args := []string{"show", "chart", ref} | ||
if version != "" { | ||
args = append(args, "--version", version) | ||
} | ||
|
||
stdout, _, err := h.executor.ExecuteCommand(ctx, nil, nil, args...) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
the binary is used here
What this PR does / why we need it:
Brings in some of the following pull request that does not touch the v2 codepath:
#2759
Which issue(s) this PR fixes:
Does this PR require a test?
Does this PR require a release note?
Does this PR require documentation?