summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKrzysztof Opasiak <k.opasiak@samsung.com>2020-03-26 19:40:34 +0000
committerGerrit Code Review <gerrit@onap.org>2020-03-26 19:40:34 +0000
commit87a8e38f930e02e2ea6c37ff9bf5642245c4d88c (patch)
treeff63a55b47531d44ac3453860f882c18927e2cb1
parent14db6fb45f66a7252fef9c745ff2af3b14a28871 (diff)
parentf6bf101bc307049f5341af8c58352a5cbf86d861 (diff)
Merge "[COMMON] Add annotations to resource metadata tpl"
-rw-r--r--kubernetes/common/common/templates/_labels.tpl5
1 files changed, 4 insertions, 1 deletions
diff --git a/kubernetes/common/common/templates/_labels.tpl b/kubernetes/common/common/templates/_labels.tpl
index 854019c197..66727629ef 100644
--- a/kubernetes/common/common/templates/_labels.tpl
+++ b/kubernetes/common/common/templates/_labels.tpl
@@ -63,10 +63,13 @@ app.kubernetes.io/instance: {{ include "common.release" $dot }}
{{- $dot := default . .dot -}}
{{- $suffix := default "" .suffix -}}
{{- $labels := default (dict) .labels -}}
-
+{{- $annotations := default (dict) .annotations -}}
name: {{ include "common.fullname" (dict "suffix" $suffix "dot" $dot )}}
namespace: {{ include "common.namespace" $dot }}
labels: {{- include "common.labels" (dict "labels" $labels "dot" $dot ) | nindent 2 }}
+{{- if $annotations }}
+annotations: {{- include "common.tplValue" (dict "value" $annotations "context" $dot) | nindent 2}}
+{{- end -}}
{{- end -}}
{{/*