Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 6 additions & 3 deletions charts/ccm-hetzner/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}"
Expand Down Expand Up @@ -122,4 +125,4 @@ spec:
{{- with .Values.affinity }}
affinity:
{{- toYaml . | nindent 8 }}
{{- end }}
{{- end }}
6 changes: 6 additions & 0 deletions charts/ccm-hetzner/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down