Mount a configmap to local policy dir if specified

This commit is contained in:
Jonny Stoten
2024-07-05 11:50:30 +01:00
parent 2efeb7ed64
commit 63ddd22803

View File

@@ -47,6 +47,11 @@ spec:
volumeMounts:
- name: tuf-temp
mountPath: /tuf_temp
{{- if .Values.localPolicyDir }}
- name: local-policy
mountPath: {{ .Values.localPolicyDir }}
readOnly: true
{{- end }}
{{- if .Values.clientCAFile }}
- name: gatekeeper-ca-cert
mountPath: /tmp/gatekeeper
@@ -63,6 +68,11 @@ spec:
volumes:
- name: tuf-temp
emptyDir: {}
{{- if .Values.localPolicyDir }}
- name: local-policy
secret:
configMap: {{ .Values.localPolicyConfigMap }}
{{- end }}
{{- if .Values.clientCAFile }}
- name: gatekeeper-ca-cert
secret: