mirror of https://git.rancher.io/charts
added security context values for gatekeeper crd chart
this is needed so that these jobs can be run in the namespace with restricted psa labels appliedpull/2367/head
parent
cd97ee298e
commit
1cfe8a9154
|
@ -40,6 +40,12 @@ spec:
|
||||||
- name: crd-manifest
|
- name: crd-manifest
|
||||||
readOnly: true
|
readOnly: true
|
||||||
mountPath: /etc/config
|
mountPath: /etc/config
|
||||||
|
securityContext:
|
||||||
|
{{- if .Values.enableRuntimeDefaultSeccompProfile }}
|
||||||
|
seccompProfile:
|
||||||
|
type: RuntimeDefault
|
||||||
|
{{- end }}
|
||||||
|
{{- toYaml .Values.securityContext | nindent 12 }}
|
||||||
restartPolicy: OnFailure
|
restartPolicy: OnFailure
|
||||||
volumes:
|
volumes:
|
||||||
- name: crd-manifest
|
- name: crd-manifest
|
||||||
|
@ -88,6 +94,12 @@ spec:
|
||||||
- name: crd-manifest
|
- name: crd-manifest
|
||||||
readOnly: true
|
readOnly: true
|
||||||
mountPath: /etc/config
|
mountPath: /etc/config
|
||||||
|
securityContext:
|
||||||
|
{{- if .Values.enableRuntimeDefaultSeccompProfile }}
|
||||||
|
seccompProfile:
|
||||||
|
type: RuntimeDefault
|
||||||
|
{{- end }}
|
||||||
|
{{- toYaml .Values.securityContext | nindent 12 }}
|
||||||
containers:
|
containers:
|
||||||
- name: delete-crds
|
- name: delete-crds
|
||||||
image: {{ template "system_default_registry" . }}{{ .Values.image.repository }}:{{ .Values.image.tag }}
|
image: {{ template "system_default_registry" . }}{{ .Values.image.repository }}:{{ .Values.image.tag }}
|
||||||
|
@ -101,6 +113,12 @@ spec:
|
||||||
- name: crd-manifest
|
- name: crd-manifest
|
||||||
readOnly: true
|
readOnly: true
|
||||||
mountPath: /etc/config
|
mountPath: /etc/config
|
||||||
|
securityContext:
|
||||||
|
{{- if .Values.enableRuntimeDefaultSeccompProfile }}
|
||||||
|
seccompProfile:
|
||||||
|
type: RuntimeDefault
|
||||||
|
{{- end }}
|
||||||
|
{{- toYaml .Values.securityContext | nindent 12 }}
|
||||||
restartPolicy: OnFailure
|
restartPolicy: OnFailure
|
||||||
volumes:
|
volumes:
|
||||||
- name: crd-manifest
|
- name: crd-manifest
|
||||||
|
|
|
@ -11,3 +11,11 @@ global:
|
||||||
image:
|
image:
|
||||||
repository: rancher/kubectl
|
repository: rancher/kubectl
|
||||||
tag: v1.20.2
|
tag: v1.20.2
|
||||||
|
|
||||||
|
enableRuntimeDefaultSeccompProfile: true
|
||||||
|
|
||||||
|
securityContext:
|
||||||
|
allowPrivilegeEscalation: false
|
||||||
|
capabilities:
|
||||||
|
drop:
|
||||||
|
- ALL
|
||||||
|
|
Loading…
Reference in New Issue