Skip to content

Commit

Permalink
Merge pull request #43 from tribunadigital/coroot_add_init_containers
Browse files Browse the repository at this point in the history
feat: coroot - add custom initContainers
  • Loading branch information
apetruhin authored Jan 23, 2025
2 parents a58df2f + 24d3fdd commit 2348250
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 1 deletion.
4 changes: 4 additions & 0 deletions charts/coroot/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,10 @@ spec:
serviceAccountName: {{ include "coroot.serviceAccountName" . }}
securityContext:
{{- toYaml .Values.corootCE.podSecurityContext | nindent 8 }}
{{- if .Values.corootCE.initContainers }}
initContainers:
{{- toYaml .Values.corootCE.initContainers | nindent 8 }}
{{- end }}
containers:
- name: {{ .Chart.Name }}
securityContext:
Expand Down
24 changes: 23 additions & 1 deletion charts/coroot/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,28 @@ corootCE:
pullPolicy: IfNotPresent
tag: ""
imagePullSecrets: []
initContainers: []
# - name: init-chown
# image: busybox
# securityContext:
# runAsNonRoot: false
# runAsUser: 0
# resources:
# limits:
# cpu: 100m
# memory: 128Mi
# requests:
# cpu: 50m
# memory: 64Mi
# command: ['sh']
# args:
# - "-c"
# - |
# set -ex
# chown 1000:2000 /data
# volumeMounts:
# - name: data
# mountPath: /data
nameOverride: ""
fullnameOverride: ""
serviceAccount:
Expand All @@ -28,7 +50,7 @@ corootCE:
# - ALL
# readOnlyRootFilesystem: true
# runAsNonRoot: true
# runAsUser: 1000
# runAsUser: 1000
service:
type: ClusterIP
port: 8080
Expand Down

0 comments on commit 2348250

Please sign in to comment.