UNCLASSIFIED - NO CUI

Skip to content
Snippets Groups Projects

Kyverno Policy Exceptions for Certain Gitlab Pods

Merged Ghost User requested to merge update-gitlab-tag-6.0.1-bb.3 into master
All threads resolved!
Files
3
@@ -189,6 +189,17 @@ policies:
require-drop-all-capabilities:
validationFailureAction: audit
{{- if .Values.addons.gitlab.enabled }}
exclude:
any:
# Gitlab Redis sub-chart does not have configurable securityContext values from upstream. An issue has been opened
# upstream to add these capabilities: https://gitlab.com/gitlab-org/charts/gitlab/-/issues/3375
- resources:
namespaces:
- gitlab
names:
- gitlab-redis-*
+1
{{- end }}
require-istio-on-namespaces:
enabled: {{ .Values.istio.enabled }}
@@ -211,7 +222,7 @@ policies:
require-non-root-group:
validationFailureAction: audit
{{- if or $deployRestic .Values.twistlock.enabled .Values.fluentbit.enabled .Values.promtail.enabled }}
{{- if or $deployRestic .Values.twistlock.enabled .Values.fluentbit.enabled .Values.promtail.enabled .Values.addons.gitlab.enabled }}
exclude:
any:
{{- if $deployRestic }}
@@ -255,11 +266,20 @@ policies:
names:
- logging-promtail*
{{- end }}
{{- if .Values.addons.gitlab.enabled }}
# Gitlab Redis sub-chart does not have configurable securityContext values from upstream. An issue has been opened
# upstream to add these capabilities: https://gitlab.com/gitlab-org/charts/gitlab/-/issues/3375
- resources:
namespaces:
- gitlab
names:
- gitlab-redis-*
{{- end }}
{{- end }}
require-non-root-user:
validationFailureAction: audit
{{- if or $deployRestic .Values.twistlock.enabled .Values.fluentbit.enabled .Values.promtail.enabled }}
{{- if or $deployRestic .Values.twistlock.enabled .Values.fluentbit.enabled .Values.promtail.enabled .Values.addons.gitlab.enabled }}
exclude:
any:
{{- if $deployRestic }}
@@ -303,6 +323,15 @@ policies:
names:
- logging-promtail*
{{- end }}
{{- if .Values.addons.gitlab.enabled }}
# Gitlab Redis sub-chart does not have configurable securityContext values from upstream. An issue has been opened
# upstream to add these capabilities: https://gitlab.com/gitlab-org/charts/gitlab/-/issues/3375
- resources:
namespaces:
- gitlab
names:
- gitlab-redis-*
{{- end }}
{{- end }}
{{- if .Values.twistlock.enabled }}
Loading