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

OZG-3328 resolve merge conflicts

parents 8bcbf891 c9636369
Branches
Tags
No related merge requests found
...@@ -15,6 +15,7 @@ app.kubernetes.io/managed-by: {{ .Release.Service }} ...@@ -15,6 +15,7 @@ app.kubernetes.io/managed-by: {{ .Release.Service }}
app.kubernetes.io/name: {{ .Release.Name }} app.kubernetes.io/name: {{ .Release.Name }}
app.kubernetes.io/namespace: {{ include "app.namespace" . }} app.kubernetes.io/namespace: {{ include "app.namespace" . }}
helm.sh/chart: {{ printf "%s-%s" .Chart.Name .Chart.Version }} helm.sh/chart: {{ printf "%s-%s" .Chart.Name .Chart.Version }}
ozgcloud-mongodb-client: "true"
{{- end -}} {{- end -}}
{{- define "app.matchLabels" }} {{- define "app.matchLabels" }}
......
...@@ -46,6 +46,8 @@ tests: ...@@ -46,6 +46,8 @@ tests:
app.kubernetes.io/name: administration app.kubernetes.io/name: administration
app.kubernetes.io/namespace: sh-helm-test app.kubernetes.io/namespace: sh-helm-test
helm.sh/chart: administration-0.0.0-MANAGED-BY-JENKINS helm.sh/chart: administration-0.0.0-MANAGED-BY-JENKINS
ozgcloud-mongodb-client: "true"
- it: should set spec.selector.matchLabels - it: should set spec.selector.matchLabels
asserts: asserts:
- equal: - equal:
...@@ -66,3 +68,4 @@ tests: ...@@ -66,3 +68,4 @@ tests:
app.kubernetes.io/namespace: sh-helm-test app.kubernetes.io/namespace: sh-helm-test
component: administration component: administration
helm.sh/chart: administration-0.0.0-MANAGED-BY-JENKINS helm.sh/chart: administration-0.0.0-MANAGED-BY-JENKINS
ozgcloud-mongodb-client: "true"
\ No newline at end of file
...@@ -80,6 +80,15 @@ tests: ...@@ -80,6 +80,15 @@ tests:
value: "RollingUpdate" value: "RollingUpdate"
- it: should have correct template configuration - it: should have correct template configuration
asserts: asserts:
- equal:
path: spec.template.metadata.labels["app.kubernetes.io/instance"]
value: "administration"
- equal:
path: spec.template.metadata.labels.component
value: "administration"
- equal:
path: metadata.labels["ozgcloud-mongodb-client"]
value: "true"
- equal: - equal:
path: spec.template.spec.topologySpreadConstraints[0].maxSkew path: spec.template.spec.topologySpreadConstraints[0].maxSkew
value: 1 value: 1
......
...@@ -83,3 +83,4 @@ tests: ...@@ -83,3 +83,4 @@ tests:
app.kubernetes.io/namespace: helm-test app.kubernetes.io/namespace: helm-test
component: administration-service component: administration-service
helm.sh/chart: administration-0.0.0-helm-test-version helm.sh/chart: administration-0.0.0-helm-test-version
ozgcloud-mongodb-client: "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