From 86b25c6e55a3e9a85787d0eed15eb678eeb8bcd6 Mon Sep 17 00:00:00 2001 From: Yevhenii Huzii Date: Mon, 18 Sep 2023 10:42:06 +0300 Subject: [PATCH 1/2] adding ccm arguments --- charts/ccm-hetzner/templates/deployment.yaml | 9 ++++++--- charts/ccm-hetzner/values.yaml | 8 ++++++++ 2 files changed, 14 insertions(+), 3 deletions(-) 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..fc63163 100644 --- a/charts/ccm-hetzner/values.yaml +++ b/charts/ccm-hetzner/values.yaml @@ -2,6 +2,14 @@ # 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: "" + configure-cloud-routes: "false" + + replicaCount: 1 image: From 73b7df95160485f9c5a90cda0e2e1ef4162df6f6 Mon Sep 17 00:00:00 2001 From: Yevhenii Huzii <137894019+qveensi@users.noreply.github.com> Date: Wed, 4 Oct 2023 11:17:07 +0300 Subject: [PATCH 2/2] Update values.yaml --- charts/ccm-hetzner/values.yaml | 2 -- 1 file changed, 2 deletions(-) diff --git a/charts/ccm-hetzner/values.yaml b/charts/ccm-hetzner/values.yaml index fc63163..e7ce5b8 100644 --- a/charts/ccm-hetzner/values.yaml +++ b/charts/ccm-hetzner/values.yaml @@ -7,8 +7,6 @@ args: cloud-provider: hcloud allow-untagged-cloud: "" - configure-cloud-routes: "false" - replicaCount: 1