UNCLASSIFIED - NO CUI

Skip to content
Snippets Groups Projects
Commit d7230087 authored by Micah Nagel's avatar Micah Nagel
Browse files

Merge branch 'update-gitlab-tag-6.0.1-bb.3' into 'master'

Kyverno Policy Exceptions for Certain Gitlab Pods

See merge request platform-one/big-bang/bigbang!1813
parents 13597271 92ac202a
No related branches found
No related tags found
1 merge request!1813Kyverno Policy Exceptions for Certain Gitlab Pods
Pipeline #871802 passed with warnings
......@@ -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-*
{{- 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 }}
......
......@@ -789,7 +789,7 @@ addons:
git:
repo: https://repo1.dso.mil/platform-one/big-bang/apps/developer-tools/gitlab.git
path: "./chart"
tag: "6.0.1-bb.2"
tag: "6.0.1-bb.4"
# -- Flux reconciliation overrides specifically for the Gitlab Package
flux: {}
......
......@@ -446,6 +446,36 @@ kyvernopolicies:
update:
- from: replace.image.registry
to: registry1.dso.mil
require-drop-all-capabilities:
exclude:
any:
# Gitlab Minio sub-chart does not have configurable securityContext values from upstream. Minio installation
# is only recommended for Dev/CI environments.
- resources:
namespaces:
- gitlab
names:
- gitlab-minio-*
require-non-root-group:
exclude:
any:
# Gitlab Minio sub-chart does not have configurable securityContext values from upstream. Minio installation
# is only recommended for Dev/CI environments.
- resources:
namespaces:
- gitlab
names:
- gitlab-minio-*
require-non-root-user:
exclude:
any:
# Gitlab Minio sub-chart does not have configurable securityContext values from upstream. Minio installation
# is only recommended for Dev/CI environments.
- resources:
namespaces:
- gitlab
names:
- gitlab-minio-*
logging:
enabled: true
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment