X-Git-Url: https://gerrit.o-ran-sc.org/r/gitweb?p=it%2Fdep.git;a=blobdiff_plain;f=smo-install%2Foran_oom%2Fodu-app-ics-version%2Ftemplates%2Fdeployment.yaml;fp=smo-install%2Foran_oom%2Fodu-app-ics-version%2Ftemplates%2Fdeployment.yaml;h=c5b552049d082535e2bccf675d1b80fc902e6687;hp=f431a3989bc6f382196677c08c705233286e4c12;hb=918108f729c368db61fe904024129f21269e19b7;hpb=c9ace66e2b4635918c4c4c473dfc7bcbeb41b7ae diff --git a/smo-install/oran_oom/odu-app-ics-version/templates/deployment.yaml b/smo-install/oran_oom/odu-app-ics-version/templates/deployment.yaml index f431a398..c5b55204 100755 --- a/smo-install/oran_oom/odu-app-ics-version/templates/deployment.yaml +++ b/smo-install/oran_oom/odu-app-ics-version/templates/deployment.yaml @@ -15,23 +15,12 @@ apiVersion: apps/v1 kind: Deployment -metadata: - name: {{ include "odu-app-ics-version.fullname" . }} - labels: - {{- include "odu-app-ics-version.labels" . | nindent 4 }} +metadata: {{- include "common.resourceMetadata" . | nindent 2 }} spec: replicas: {{ .Values.replicaCount }} - selector: - matchLabels: - {{- include "odu-app-ics-version.selectorLabels" . | nindent 6 }} + selector: {{- include "common.selectors" . | nindent 4 }} template: - metadata: - {{- with .Values.podAnnotations }} - annotations: - {{- toYaml . | nindent 8 }} - {{- end }} - labels: - {{- include "odu-app-ics-version.selectorLabels" . | nindent 8 }} + metadata: {{- include "common.templateMetadata" . | nindent 6 }} spec: {{- with .Values.imagePullSecrets }} imagePullSecrets: @@ -40,7 +29,7 @@ spec: securityContext: {{- toYaml .Values.podSecurityContext | nindent 8 }} containers: - - name: {{ .Chart.Name }} + - name: {{ include "common.containername" . }} securityContext: {{- toYaml .Values.securityContext | nindent 12 }} image: "{{ .Values.image.repository }}:{{ .Values.image.tag | default .Chart.AppVersion }}"