Implement missing security context template for daemonjob-controller

This change adds security context template at container level

Change-Id: I72b1d5678e1fd3464b73937a2c50362bde8ae1d5
This commit is contained in:
KHIYANI, RAHUL (rk0850) 2020-08-25 17:44:38 -05:00
parent 094acf9c86
commit 1336208632
2 changed files with 2 additions and 2 deletions

View File

@ -47,6 +47,7 @@ spec:
- name: controller
{{ tuple $envAll "python" | include "helm-toolkit.snippets.image" | indent 8 }}
{{ tuple $envAll $envAll.Values.pod.resources.daemonjob_controller | include "helm-toolkit.snippets.kubernetes_resources" | indent 8 }}
{{ dict "envAll" $envAll "application" "daemonjob_controller" "container" "controller" | include "helm-toolkit.snippets.kubernetes_container_security_context" | indent 8 }}
command:
- python
- /hooks/sync.py

View File

@ -65,9 +65,8 @@ pod:
runAsNonRoot: true
container:
controller:
runAsUser: 34356
runAsUser: 0
readOnlyRootFilesystem: true
endpoints:
cluster_domain_suffix: cluster.local
local_image_registry: