Skip to content
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

make volume and volume mounts configurable through helm #238

Merged
merged 1 commit into from
Oct 21, 2024
Merged
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
12 changes: 9 additions & 3 deletions deploy/chart/templates/daemonset.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,9 @@ spec:
volumeMounts:
- mountPath: /etc/kubernetes
name: k8s
{{- with .Values.volumeMounts}}
{{- toYaml . | nindent 12 }}
{{- end}}
env:
- name: LINODE_API_TOKEN
valueFrom:
Expand All @@ -65,10 +68,13 @@ spec:
secretKeyRef:
name: {{ if .Values.secretRef }}{{ .Values.secretRef.name | default "ccm-linode" }}{{ else }}"ccm-linode"{{ end }}
key: {{ if .Values.secretRef }}{{ .Values.secretRef.regionRef | default "region" }}{{ else }}"region"{{ end }}
{{if .Values.env}}
{{- toYaml .Values.env | nindent 12 }}
{{end}}
{{- with .Values.env}}
{{- toYaml . | nindent 12 }}
{{- end}}
volumes:
- name: k8s
hostPath:
path: /etc/kubernetes
{{- with .Values.volumes}}
{{- toYaml . | nindent 8 }}
{{- end}}
17 changes: 14 additions & 3 deletions deploy/chart/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,17 @@ tolerations:
# This section adds the ability to pass environment variables to adjust CCM defaults
# https://github.com/linode/linode-cloud-controller-manager/blob/master/cloud/linode/loadbalancers.go
# LINODE_HOSTNAME_ONLY_INGRESS type bool is supported
# env:
# - name: EXAMPLE_ENV_VAR
# value: "true"
env:
# - name: EXAMPLE_ENV_VAR
# value: "true"

# This section adds the ability to pass volumes to the CCM DaemonSet
volumes:
# - name: test-volume
# emptyDir:
# sizeLimit: 500Mi

# this section adds the ability to pass volumeMounts to the CCM container
volumeMounts:
# - mountPath: /tmp/
# name: test-volume
Loading