Skip to content

Commit

Permalink
feat: add extra volume and volumemount to helm template (mend#175)
Browse files Browse the repository at this point in the history
  • Loading branch information
sp3nx0r authored Feb 10, 2022
1 parent 06b2ae7 commit 359218f
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 0 deletions.
6 changes: 6 additions & 0 deletions helm-charts/whitesource-renovate/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -133,6 +133,9 @@ spec:
{{- end }}
- name: {{ .Release.Name }}-cache-volume
mountPath: /tmp/renovate
{{- if ne (len .Values.extraVolumeMounts) 0 }}
{{ toYaml .Values.extraVolumeMounts | nindent 12 | trim }}
{{- end }}
{{- with .Values.nodeSelector }}
nodeSelector:
{{- toYaml . | nindent 8 }}
Expand All @@ -148,6 +151,9 @@ spec:
{{- end }}
- name: {{ .Release.Name }}-cache-volume
emptyDir: {}
{{- if ne (len .Values.extraVolumes) 0 }}
{{ toYaml .Values.extraVolumes | nindent 8 | trim }}
{{- end }}
{{- with .Values.affinity }}
affinity:
{{- toYaml . | nindent 8 }}
Expand Down
13 changes: 13 additions & 0 deletions helm-charts/whitesource-renovate/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -96,3 +96,16 @@ nodeSelector: {}
tolerations: []

affinity: {}

extraVolumes: []
# - name: secrets-store-inline
# csi:
# driver: secrets-store.csi.k8s.io
# readOnly: true
# volumeAttributes:
# secretProviderClass: "some-secret-store"

extraVolumeMounts: []
# - name: secrets-store-inline
# mountPath: "/mnt/secrets-store"
# readOnly: true

0 comments on commit 359218f

Please sign in to comment.