Skip to content
Snippets Groups Projects
Commit b242aec3 authored by OZGCloud's avatar OZGCloud
Browse files

OZG-5281 add mongodb-client label for networkpolicy rule

parent 47984640
No related branches found
No related tags found
No related merge requests found
......@@ -15,6 +15,7 @@ app.kubernetes.io/managed-by: {{ .Release.Service }}
app.kubernetes.io/name: {{ .Release.Name }}
app.kubernetes.io/namespace: {{ include "app.namespace" . }}
helm.sh/chart: {{ printf "%s-%s" .Chart.Name .Chart.Version }}
ozgcloud-mongodb-client: "true"
{{- end -}}
{{- define "app.matchLabels" }}
......
......@@ -83,6 +83,9 @@ tests:
- equal:
path: spec.template.metadata.labels.component
value: "administration"
- equal:
path: metadata.labels["ozgcloud-mongodb-client"]
value: "true"
- equal:
path: spec.template.spec.topologySpreadConstraints[0].maxSkew
value: 1
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment