-
Notifications
You must be signed in to change notification settings - Fork 493
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
kubernetes-1.26: fix cloud provider condition #2876
Conversation
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.
Overall, makes sense - I'm just abit confused what the context on this is. Also curious to hear what failures you were seein with this.
Looks like in other Kubernetes packages, we were using a default "external"
block to always get that. Which is similar to what Sean suggested.
bottlerocket/packages/kubernetes-1.25/kubelet-exec-start-conf
Lines 3 to 12 in 24e7574
ExecStart=/usr/bin/kubelet \ | |
{{#unless settings.kubernetes.standalone-mode}} | |
--cloud-provider {{default "external" settings.kubernetes.cloud-provider}} \ | |
--kubeconfig /etc/kubernetes/kubelet/kubeconfig \ | |
{{#if (eq settings.kubernetes.authentication-mode "tls")}} | |
--bootstrap-kubeconfig /etc/kubernetes/kubelet/bootstrap-kubeconfig \ | |
{{/if}} | |
{{else}} | |
--cloud-provider "" \ | |
{{/unless}} |
Can we just do something similar to what we do in the Kubernetes 1.25 package?
@jpmcb We can't. Ideally we should migrate it to |
Bottlerocket settings model for cloud_provider converts the empty string to "\"\"", so we should improve the if condition to eq to it.
Push above improve the condition settings model for
Test:
|
Issue number:
Closes #
Description of changes:
Testing done:
aws-*
conformance testmetal-*
conformance testvmware-*
conformance testTerms of contribution:
By submitting this pull request, I agree that this contribution is dual-licensed under the terms of both the Apache License, version 2.0, and the MIT license.