UNCLASSIFIED - NO CUI

Skip to content
Snippets Groups Projects
Commit 2d375b0b authored by Ryan Garcia's avatar Ryan Garcia :dizzy:
Browse files

Move gitlab-minio exceptions to test, update redis comment

parent 4697c05e
No related branches found
No related tags found
1 merge request!1813Kyverno Policy Exceptions for Certain Gitlab Pods
Pipeline #871745 passed with warnings
......@@ -192,13 +192,12 @@ policies:
{{- if .Values.addons.gitlab.enabled }}
exclude:
any:
# Gitlab Minio and Redis sub-charts are not configured with securityContext values from upstream. Minio and Redis
# installations are only recommended for dev/CI environments.
# 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-minio-*
- gitlab-redis-*
{{- end }}
......@@ -268,13 +267,12 @@ policies:
- logging-promtail*
{{- end }}
{{- if .Values.addons.gitlab.enabled }}
# Gitlab Minio and Redis sub-charts are not configured with securityContext values from upstream. Minio and Redis
# installations are only recommended for dev/CI environments.
# 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-minio-*
- gitlab-redis-*
{{- end }}
{{- end }}
......@@ -326,13 +324,12 @@ policies:
- logging-promtail*
{{- end }}
{{- if .Values.addons.gitlab.enabled }}
# Gitlab Minio and Redis sub-charts are not configured with securityContext values from upstream. Minio and Redis
# installations are only recommended for dev/CI environments.
# 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-minio-*
- gitlab-redis-*
{{- end }}
{{- end }}
......
......@@ -441,6 +441,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