diff --git a/charts/stirling-pdf/templates/deployment.yaml b/charts/stirling-pdf/templates/deployment.yaml index 63f9505..4b0a50c 100644 --- a/charts/stirling-pdf/templates/deployment.yaml +++ b/charts/stirling-pdf/templates/deployment.yaml @@ -44,6 +44,10 @@ spec: {{- if .Values.securityContext.supplementalGroups }} supplementalGroups: {{ .Values.securityContext.supplementalGroups }} {{- end }} + {{- end }} + {{- if .Values.deployment.initContainers }} + initContainers: + {{- toYaml .Values.deployment.initContainers | nindent 8 }} {{- else if .Values.persistence.enabled }} initContainers: - name: volume-permissions diff --git a/charts/stirling-pdf/values.yaml b/charts/stirling-pdf/values.yaml index 16e359c..88ccd5c 100644 --- a/charts/stirling-pdf/values.yaml +++ b/charts/stirling-pdf/values.yaml @@ -53,6 +53,19 @@ deployment: # secretName: nginx-config # -- Additional volumes to mount extraVolumeMounts: [] + # -- Custom initContainers specification + # If specified, these initContainers will be used instead of the default + # volume-permissions initContainer. This allows full control over the + # initContainer configuration. + # NOTE: When this is set, it completely overrides the default initContainer + # behavior. Make sure to include any necessary volume permission setup if needed. + initContainers: [] + # - name: custom-init + # image: busybox:latest + # command: ['sh', '-c', 'echo Initializing...'] + # volumeMounts: + # - name: storage-volume + # mountPath: /tmp # -- sidecarContainers for the stirling-pdf # -- Can be used to add a proxy to the pod that does # -- scanning for secrets, signing, authentication, validation