diff --git a/charts/ccm-hetzner/templates/deployment.yaml b/charts/ccm-hetzner/templates/deployment.yaml index e1955bf..1f6bd09 100644 --- a/charts/ccm-hetzner/templates/deployment.yaml +++ b/charts/ccm-hetzner/templates/deployment.yaml @@ -59,9 +59,12 @@ spec: imagePullPolicy: {{ .Values.image.pullPolicy }} command: - "/bin/hetzner-cloud-controller-manager" - - "--cloud-provider=hcloud" + {{- range $key, $value := $.Values.args }} + {{- if not (eq $value nil) }} + - "--{{ $key }}{{ if $value }}={{ $value }}{{ end }}" + {{- end }} + {{- end }} - "--leader-elect={{ .Values.env.leaderElect }}" - - "--allow-untagged-cloud" {{- if .Values.privateNetwork.enabled }} - "--allocate-node-cidrs=true" - "--cluster-cidr={{ .Values.privateNetwork.clusterSubnet }}" @@ -122,4 +125,4 @@ spec: {{- with .Values.affinity }} affinity: {{- toYaml . | nindent 8 }} - {{- end }} \ No newline at end of file + {{- end }} diff --git a/charts/ccm-hetzner/values.yaml b/charts/ccm-hetzner/values.yaml index b4545e7..e7ce5b8 100644 --- a/charts/ccm-hetzner/values.yaml +++ b/charts/ccm-hetzner/values.yaml @@ -2,6 +2,12 @@ # This is a YAML-formatted file. # Declare variables to be passed into your templates. +# hccm program command line arguments. +# The "--allocate-node-cidrs" + "--cluster-cidr" + "--leader-elect" arguments are managed by the chart and should *not* be set directly here. +args: + cloud-provider: hcloud + allow-untagged-cloud: "" + replicaCount: 1 image: