X-Git-Url: https://gerrit.o-ran-sc.org/r/gitweb?a=blobdiff_plain;f=xapp_onboarder%2Fxapp_onboarder%2Fresources%2Fxapp-std%2Ftemplates%2Fdeployment.yaml;h=65c2c5de3cbff149498adf14a45d3123241fd338;hb=907b38feb3b874e49645488b1e94c11d252c9c08;hp=9d4de1ed4268bc5d9b0692657c3ddf23705daa03;hpb=7a302bb842b42e74c9bfd1b81cca1b8af754be9e;p=it%2Fdev.git diff --git a/xapp_onboarder/xapp_onboarder/resources/xapp-std/templates/deployment.yaml b/xapp_onboarder/xapp_onboarder/resources/xapp-std/templates/deployment.yaml index 9d4de1e..65c2c5d 100644 --- a/xapp_onboarder/xapp_onboarder/resources/xapp-std/templates/deployment.yaml +++ b/xapp_onboarder/xapp_onboarder/resources/xapp-std/templates/deployment.yaml @@ -30,8 +30,20 @@ spec: release: {{ .Release.Name }} template: metadata: + {{- if .Values.annotations }} + annotations: + {{- range $key, $value := .Values.annotations }} + {{- if kindIs "string" $value }} + {{ $key }}: {{ $value | toPrettyJson }} + {{- else }} + {{ $key }}: | +{{- $value | toPrettyJson | nindent 10 }} + {{- end }} + {{- end -}} + {{ end }} labels: app: {{ include "ricxapp.namespace" . }}-{{ include "ricxapp.name" . }} + kubernetes_name: {{ include "ricxapp.namespace" . }}_{{ include "ricxapp.name" . }} release: {{ .Release.Name }} spec: hostname: {{ include "ricxapp.name" . }}