Skip to content

Commit

Permalink
Add hooks to specify additional volumes and additional volume mounts (#…
Browse files Browse the repository at this point in the history
…155)

Is particularly useful for configuring custom CAs and other config data
  • Loading branch information
michaeljguarino authored Mar 26, 2024
1 parent 033faaf commit 7774fab
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 0 deletions.
10 changes: 10 additions & 0 deletions charts/deployment-operator/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}
Expand Down Expand Up @@ -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:
Expand Down Expand Up @@ -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 }}
Expand Down
3 changes: 3 additions & 0 deletions charts/deployment-operator/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@
# This is a YAML-formatted file.
# Declare variables to be passed into your templates.

additionalVolumes: ~
additionalVolumeMounts: ~

replicaCount: 1

args:
Expand Down

0 comments on commit 7774fab

Please sign in to comment.