Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions deploy-templates/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -39,9 +39,11 @@ A Helm chart for KubeRocketCI Codebase Operator
| jira.rootUrl | string | `"https://jiraeu.example.com"` | URL to Jira server |
| name | string | `"codebase-operator"` | component name |
| nodeSelector | object | `{}` | |
| podSecurityContext | object | `{"runAsNonRoot":true}` | Pod Security Context Ref: https://kubernetes.io/docs/tasks/configure-pod-container/security-context/ |
| resources.limits.memory | string | `"192Mi"` | |
| resources.requests.cpu | string | `"50m"` | |
| resources.requests.memory | string | `"64Mi"` | |
| securityContext | object | `{"allowPrivilegeEscalation":false}` | Container Security Context Ref: https://kubernetes.io/docs/tasks/configure-pod-container/security-context/ |
| telemetryEnabled | bool | `true` | Flag to enable/disable telemetry |
| tolerations | list | `[]` | |

10 changes: 6 additions & 4 deletions deploy-templates/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,9 @@ spec:
name: {{ .Values.name }}
spec:
serviceAccountName: edp-{{ .Values.name }}
securityContext:
runAsNonRoot: true
{{- if .Values.podSecurityContext }}
securityContext: {{ toYaml .Values.podSecurityContext | nindent 8 }}
{{- end }}
{{- if .Values.imagePullSecrets }}
imagePullSecrets: {{ toYaml .Values.imagePullSecrets | nindent 8 }}
{{- end }}
Expand All @@ -36,8 +37,9 @@ spec:
name: cert
readOnly: true
imagePullPolicy: "{{ .Values.imagePullPolicy }}"
securityContext:
allowPrivilegeEscalation: false
{{- if .Values.securityContext }}
securityContext: {{ toYaml .Values.securityContext | nindent 12 }}
{{- end }}
env:
- name: WATCH_NAMESPACE
valueFrom:
Expand Down
10 changes: 10 additions & 0 deletions deploy-templates/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,16 @@ resources:
cpu: 50m
memory: 64Mi

# -- Pod Security Context
# Ref: https://kubernetes.io/docs/tasks/configure-pod-container/security-context/
podSecurityContext:
runAsNonRoot: true

# -- Container Security Context
# Ref: https://kubernetes.io/docs/tasks/configure-pod-container/security-context/
securityContext:
allowPrivilegeEscalation: false

jira:
# -- Flag to enable/disable Jira integration
integration: false
Expand Down