diff options
author | Sylvain Desbureaux <sylvain.desbureaux@orange.com> | 2021-12-13 07:40:47 +0000 |
---|---|---|
committer | Gerrit Code Review <gerrit@onap.org> | 2021-12-13 07:40:47 +0000 |
commit | 9e54dd9d9655b07dd983a187b6c666226723e15b (patch) | |
tree | 477317f3f4b514b43ea7e8d8b76e7b55245eedae /kubernetes/dcaegen2-services/common/dcaegen2-services-common/templates/_deployment.tpl | |
parent | a5fde254dc1a22f65d69ca226de66b238e9607b1 (diff) | |
parent | 4b22da9e93fce560cf47880696f9b7cee09f3342 (diff) |
Merge "[DCAEGEN2] Update healthcheck to version 2.4.0"
Diffstat (limited to 'kubernetes/dcaegen2-services/common/dcaegen2-services-common/templates/_deployment.tpl')
-rw-r--r-- | kubernetes/dcaegen2-services/common/dcaegen2-services-common/templates/_deployment.tpl | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/kubernetes/dcaegen2-services/common/dcaegen2-services-common/templates/_deployment.tpl b/kubernetes/dcaegen2-services/common/dcaegen2-services-common/templates/_deployment.tpl index aac0f4b3a9..5ba7d2977a 100644 --- a/kubernetes/dcaegen2-services/common/dcaegen2-services-common/templates/_deployment.tpl +++ b/kubernetes/dcaegen2-services/common/dcaegen2-services-common/templates/_deployment.tpl @@ -229,10 +229,12 @@ policies: {{- $policy := default dict .Values.policies -}} {{- $policyRls := default $commonRelease $policy.policyRelease -}} {{- $drFeedConfig := default "" .Values.drFeedConfig -}} - +{{- $dcaeName := print (include "common.fullname" .) }} +{{- $dcaeLabel := (dict "dcaeMicroserviceName" $dcaeName) -}} +{{- $dot := . -}} apiVersion: apps/v1 kind: Deployment -metadata: {{- include "common.resourceMetadata" . | nindent 2 }} +metadata: {{- include "common.resourceMetadata" (dict "dot" $dot "labels" $dcaeLabel) | nindent 2 }} spec: replicas: 1 selector: {{- include "common.selectors" . | nindent 4 }} |