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

OZG-5281 add mongodb-client label for networkpolicy rule

parents f3fab6c3 b22926db
No related branches found
No related tags found
No related merge requests found
...@@ -33,6 +33,7 @@ app.kubernetes.io/namespace: {{ include "app.namespace" . }} ...@@ -33,6 +33,7 @@ app.kubernetes.io/namespace: {{ include "app.namespace" . }}
app.kubernetes.io/part-of: ozgcloud app.kubernetes.io/part-of: ozgcloud
app.kubernetes.io/version: {{ .Chart.Version }} app.kubernetes.io/version: {{ .Chart.Version }}
helm.sh/chart: {{ include "app.chart" . }} helm.sh/chart: {{ include "app.chart" . }}
ozgcloud-mongodb-client: "true"
{{- end -}} {{- end -}}
{{- define "app.matchLabels" }} {{- define "app.matchLabels" }}
......
...@@ -69,3 +69,9 @@ tests: ...@@ -69,3 +69,9 @@ tests:
- equal: - equal:
path: metadata.labels["component"] path: metadata.labels["component"]
value: vorgang-manager-service-monitor value: vorgang-manager-service-monitor
- it: should have label for mongodb client
asserts:
- equal:
path: metadata.labels["ozgcloud-mongodb-client"]
value: "true"
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment