diff --git a/charts/deployment-operator/templates/deployment.yaml b/charts/deployment-operator/templates/deployment.yaml index 89c47af2..f854e02b 100644 --- a/charts/deployment-operator/templates/deployment.yaml +++ b/charts/deployment-operator/templates/deployment.yaml @@ -58,6 +58,10 @@ spec: port: http resources: {{- toYaml .Values.resources | nindent 12 }} + {{ if .Values.additionalVolumeMounts }} + volumeMounts: + {{ toYaml .Values.additionalVolumeMounts | nindent 12 }} + {{ end }} - name: {{ .Chart.Name }}-agentk securityContext: {{- toYaml .Values.securityContext | nindent 12 }} @@ -125,6 +129,9 @@ spec: mountPath: /etc/agentk/config readOnly: true {{- end }} + {{ if .Values.additionalVolumeMounts }} + {{ toYaml .Values.additionalVolumeMounts | nindent 12 }} + {{ end }} volumes: - name: service-account-token-volume projected: @@ -156,6 +163,9 @@ spec: defaultMode: 0444 name: {{ include "deployment-operator.fullname" . }} {{- end }} + {{ if .Values.additioanlVolumes }} + {{ toYaml .Values.additionalVolumes | nindent 8 }} + {{ end }} {{- with .Values.nodeSelector }} nodeSelector: {{- toYaml . | nindent 8 }} diff --git a/charts/deployment-operator/values.yaml b/charts/deployment-operator/values.yaml index 261bf040..1d93dcd5 100644 --- a/charts/deployment-operator/values.yaml +++ b/charts/deployment-operator/values.yaml @@ -2,6 +2,9 @@ # This is a YAML-formatted file. # Declare variables to be passed into your templates. +additionalVolumes: ~ +additionalVolumeMounts: ~ + replicaCount: 1 args: