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

fix: make helm.SetValue more robust #1848

Merged
merged 2 commits into from
Feb 7, 2025

Conversation

emosbaugh
Copy link
Member

@emosbaugh emosbaugh commented Feb 7, 2025

What this PR does / why we need it:

Makes setting values mimic helm's --set-json argument.

Which issue(s) this PR fixes:

Does this PR require a test?

Does this PR require a release note?


Does this PR require documentation?

Copy link

github-actions bot commented Feb 7, 2025

This PR has been released (on staging) and is available for download with a embedded-cluster-smoke-test-staging-app license ID.

Online Installer:

curl "https://staging.replicated.app/embedded/embedded-cluster-smoke-test-staging-app/ci/appver-dev-cf4c66e" -H "Authorization: $EC_SMOKE_TEST_LICENSE_ID" -o embedded-cluster-smoke-test-staging-app-ci.tgz

Airgap Installer (may take a few minutes before the airgap bundle is built):

curl "https://staging.replicated.app/embedded/embedded-cluster-smoke-test-staging-app/ci-airgap/appver-dev-cf4c66e?airgap=true" -H "Authorization: $EC_SMOKE_TEST_LICENSE_ID" -o embedded-cluster-smoke-test-staging-app-ci.tgz

Happy debugging!

@@ -58,7 +58,7 @@ func TestDefaultInstallation(t *testing.T) {
adminConsoleOpts := hcli.Calls[3].Arguments[1].(helm.InstallOptions)
assert.Equal(t, "admin-console", adminConsoleOpts.ReleaseName)
assertHelmValues(t, adminConsoleOpts.Values, map[string]interface{}{
"kurlProxy.nodePort": int(30000),
"kurlProxy.nodePort": float64(30000),
Copy link
Member

Choose a reason for hiding this comment

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

runtimeconfig.AdminConsolePort() returns an int though. idk if that matters.

@emosbaugh emosbaugh merged commit 5d60593 into main Feb 7, 2025
65 checks passed
@emosbaugh emosbaugh deleted the emosbaugh/20250207/fix-helm-set-value branch February 7, 2025 23:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants