X-Git-Url: https://gerrit.o-ran-sc.org/r/gitweb?a=blobdiff_plain;f=helm%2Fxapp-onboarder%2Ftemplates%2Fdeployment.yaml;fp=helm%2Fxapp-onboarder%2Ftemplates%2Fdeployment.yaml;h=cd8e2f7afb629bcc06768c7e16e04d17e9beb9d6;hb=5ace6274d13066aa9c25c2a85e5565801b4f6b06;hp=d43c730b263823c4c24ee85e1aac98fb496ed058;hpb=7d75ab9f41b9849ac5b1079b32978e2cffad83c5;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