diff --git a/charts/openab/templates/deployment.yaml b/charts/openab/templates/deployment.yaml index 2221f96..aeda8b8 100644 --- a/charts/openab/templates/deployment.yaml +++ b/charts/openab/templates/deployment.yaml @@ -29,6 +29,10 @@ spec: securityContext: {{- toYaml . | nindent 8 }} {{- end }} + {{- with $cfg.extraInitContainers }} + initContainers: + {{- toYaml . | nindent 8 }} + {{- end }} containers: - name: openab image: {{ include "openab.agentImage" $d | quote }} @@ -101,6 +105,12 @@ spec: {{- end }} - name: tmp mountPath: /tmp + {{- with $cfg.extraVolumeMounts }} + {{- toYaml . | nindent 12 }} + {{- end }} + {{- with $cfg.extraContainers }} + {{- toYaml . | nindent 8 }} + {{- end }} {{- with $cfg.nodeSelector }} nodeSelector: {{- toYaml . | nindent 8 }} @@ -124,5 +134,8 @@ spec: {{- end }} - name: tmp emptyDir: {} + {{- with $cfg.extraVolumes }} + {{- toYaml . | nindent 8 }} + {{- end }} {{- end }} {{- end }} diff --git a/charts/openab/values.yaml b/charts/openab/values.yaml index 7488535..b83106d 100644 --- a/charts/openab/values.yaml +++ b/charts/openab/values.yaml @@ -170,3 +170,11 @@ agents: nodeSelector: {} tolerations: [] affinity: {} + # extraInitContainers adds init containers to the pod (runs before the main container) + extraInitContainers: [] + # extraContainers adds sidecar containers to the pod + extraContainers: [] + # extraVolumeMounts adds additional volume mounts to the main container + extraVolumeMounts: [] + # extraVolumes adds additional volumes to the pod + extraVolumes: []