X-Git-Url: https://gerrit.o-ran-sc.org/r/gitweb?a=blobdiff_plain;f=helm%2Fxapp-onboarder%2Ftemplates%2Fdeployment.yaml;h=cd8e2f7afb629bcc06768c7e16e04d17e9beb9d6;hb=2a405b567ac69e725fff4a766778f398206eba35;hp=d43c730b263823c4c24ee85e1aac98fb496ed058;hpb=393136323474cc68318eda4a674d91cc6aca0ffc;p=ric-plt%2Fric-dep.git diff --git a/helm/xapp-onboarder/templates/deployment.yaml b/helm/xapp-onboarder/templates/deployment.yaml index d43c730..cd8e2f7 100644 --- a/helm/xapp-onboarder/templates/deployment.yaml +++ b/helm/xapp-onboarder/templates/deployment.yaml @@ -41,6 +41,10 @@ spec: release: {{ .Release.Name }} spec: hostname: {{ include "common.name.xapp-onboarder" . }} + securityContext: + fsGroup: 0 + runAsUser: 0 + restartPolicy: Always imagePullSecrets: {{- $newctx := dict "ctx" $ "defaultregistry" .Values.xapponboarder.image.xapponboarder.registry }} - name: {{ include "common.dockerregistry.credential" $newctx }} @@ -50,9 +54,6 @@ spec: image: {{ include "common.dockerregistry.url" $newctx }}/{{ .Values.xapponboarder.image.chartmuseum.name }}:{{ .Values.xapponboarder.image.chartmuseum.tag }} {{- $newctx := dict "ctx" $ "defaultpullpolicy" .Values.xapponboarder.imagePullPolicy }} imagePullPolicy: {{ include "common.dockerregistry.pullpolicy" $newctx }} - securityContext: - fsGroup: 0 - runAsUser: 0 envFrom: - configMapRef: name: {{ include "common.configmapname.xapp-onboarder" . }}-chartmuseum-env @@ -86,4 +87,3 @@ spec: # httpGet: # path: / # port: http - restartPolicy: Always