File tree Expand file tree Collapse file tree 3 files changed +18
-4
lines changed
Expand file tree Collapse file tree 3 files changed +18
-4
lines changed Original file line number Diff line number Diff line change @@ -39,9 +39,11 @@ A Helm chart for KubeRocketCI Codebase Operator
3939| jira.rootUrl | string | ` "https://jiraeu.example.com" ` | URL to Jira server |
4040| name | string | ` "codebase-operator" ` | component name |
4141| nodeSelector | object | ` {} ` | |
42+ | podSecurityContext | object | ` {"runAsNonRoot":true} ` | Pod Security Context Ref: https://kubernetes.io/docs/tasks/configure-pod-container/security-context/ |
4243| resources.limits.memory | string | ` "192Mi" ` | |
4344| resources.requests.cpu | string | ` "50m" ` | |
4445| resources.requests.memory | string | ` "64Mi" ` | |
46+ | securityContext | object | ` {"allowPrivilegeEscalation":false} ` | Container Security Context Ref: https://kubernetes.io/docs/tasks/configure-pod-container/security-context/ |
4547| telemetryEnabled | bool | ` true ` | Flag to enable/disable telemetry |
4648| tolerations | list | ` [] ` | |
4749
Original file line number Diff line number Diff line change 1919 name : {{ .Values.name }}
2020 spec :
2121 serviceAccountName : edp-{{ .Values.name }}
22- securityContext :
23- runAsNonRoot : true
22+ {{- if .Values.podSecurityContext }}
23+ securityContext : {{ toYaml .Values.podSecurityContext | nindent 8 }}
24+ {{- end }}
2425 {{- if .Values.imagePullSecrets }}
2526 imagePullSecrets : {{ toYaml .Values.imagePullSecrets | nindent 8 }}
2627 {{- end }}
3637 name : cert
3738 readOnly : true
3839 imagePullPolicy : " {{ .Values.imagePullPolicy }}"
39- securityContext :
40- allowPrivilegeEscalation : false
40+ {{- if .Values.securityContext }}
41+ securityContext : {{ toYaml .Values.securityContext | nindent 12 }}
42+ {{- end }}
4143 env :
4244 - name : WATCH_NAMESPACE
4345 valueFrom :
Original file line number Diff line number Diff line change @@ -33,6 +33,16 @@ resources:
3333 cpu : 50m
3434 memory : 64Mi
3535
36+ # -- Pod Security Context
37+ # Ref: https://kubernetes.io/docs/tasks/configure-pod-container/security-context/
38+ podSecurityContext :
39+ runAsNonRoot : true
40+
41+ # -- Container Security Context
42+ # Ref: https://kubernetes.io/docs/tasks/configure-pod-container/security-context/
43+ securityContext :
44+ allowPrivilegeEscalation : false
45+
3646jira :
3747 # -- Flag to enable/disable Jira integration
3848 integration : false
You can’t perform that action at this time.
0 commit comments