Merge pull request #36 from docker/local-policy-configmap

Mount a configmap to local policy dir if specified
This commit is contained in:
Jonny Stoten
2024-07-05 12:43:39 +01:00
committed by GitHub

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: