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

OZG-1929: standardize default labels, fix service monitors

parent 003ce6c9
No related branches found
No related tags found
No related merge requests found
......@@ -12,7 +12,7 @@ spec:
port: 8080
protocol: TCP
targetPort: 8080
{{- if .Values.scrapeMetrics }}
{{- if not .Values.scrapeMetricsDisabled }}
- name: metrics
port: 8081
protocol: TCP
......
suite: test deployment
release:
name: intelliform-adapter
namespace: helm-test
templates:
- templates/deployment.yaml
- templates/service_monitor.yaml
- templates/service.yaml
tests:
- it: check default labels
asserts:
- equal:
path: metadata.labels.[app.kubernetes.io/instance]
value: intelliform-adapter
- equal:
path: metadata.labels.[app.kubernetes.io/name]
value: intelliform-adapter
- equal:
path: metadata.labels.[app.kubernetes.io/part-of]
value: kop
- equal:
path: metadata.labels.[app.kubernetes.io/namespace]
value: helm-test
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment