Skip to content

Commit

Permalink
kubernetes-1.26: fix cloud provider condition
Browse files Browse the repository at this point in the history
Bottlerocket settings model for cloud_provider converts the empty string to
"\"\"", so we should improve the if condition to eq to it.
  • Loading branch information
gthao313 committed Mar 10, 2023
1 parent a643681 commit 6dc130d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/kubernetes-1.26/kubelet-exec-start-conf
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
ExecStart=
ExecStart=/usr/bin/kubelet \
{{#unless settings.kubernetes.standalone-mode}}
{{#if (eq settings.kubernetes.cloud-provider "")}}
{{#if (eq settings.kubernetes.cloud-provider "\"\"")}}
--cloud-provider "" \
{{else}}
--cloud-provider "external" \
Expand Down

0 comments on commit 6dc130d

Please sign in to comment.