Skip to content

Commit

Permalink
Feat: Add init containers options to helm chart
Browse files Browse the repository at this point in the history
  • Loading branch information
laszlorostas authored and rostaslaszlo committed Jul 14, 2023
1 parent a8a1b2b commit 44336ba
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 0 deletions.
3 changes: 3 additions & 0 deletions helm/chart/router/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -129,6 +129,9 @@ spec:
{{- if .Values.extraContainers }}
{{- include "common.tplvalues.render" (dict "value" .Values.extraContainers "context" $) | nindent 8 }}
{{- end }}
{{- if .Values.initContainers }}
{{- include "common.tplvalues.render" (dict "value" .Values.initContainers "context" $) | nindent 8 }}
{{- end }}
{{- if or .Values.router.configuration .Values.extraVolumes }}
volumes:
{{- if .Values.router.configuration }}
Expand Down
8 changes: 8 additions & 0 deletions helm/chart/router/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,14 @@ containerPorts:
# - containerPort: 4001
extraContainers: []

# -- An array of init containers to include in the router pod
# Example:
# initContainers:
# - name: init-myservice
# image: busybox:1.28
# command: ["sh"]
initContainers: []

# -- A map of extra labels to apply to the router deploment and containers
# Example:
# extraLabels:
Expand Down

0 comments on commit 44336ba

Please sign in to comment.