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

OZG-5281 add mongodb-client label for networkpolicy rule

parent c2361cf6
Branches
Tags
No related merge requests found
...@@ -35,6 +35,7 @@ app.kubernetes.io/namespace: {{ include "app.namespace" . }} ...@@ -35,6 +35,7 @@ app.kubernetes.io/namespace: {{ include "app.namespace" . }}
app.kubernetes.io/part-of: ozgcloud app.kubernetes.io/part-of: ozgcloud
app.kubernetes.io/version: {{ include "app.version" . }} app.kubernetes.io/version: {{ include "app.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" }}
......
...@@ -74,3 +74,9 @@ tests: ...@@ -74,3 +74,9 @@ tests:
- equal: - equal:
path: metadata.labels["component"] path: metadata.labels["component"]
value: user-manager-service-monitor value: user-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