Skip to content

Commit

Permalink
fix init container rendering valus (#1)
Browse files Browse the repository at this point in the history
  • Loading branch information
saramiap authored Dec 13, 2023
1 parent 86b887d commit 51eadf0
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 10 deletions.
8 changes: 4 additions & 4 deletions bouyguestelecom/spin/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ spec:
{{- if .Values.deployment.extraInitContainers }}
initContainers:
{{- with .Values.deployment.extraInitContainers }}
{{- tpl . $ | nindent 8 }}
{{- toYaml . | nindent 8 }}
{{- end }}
{{- end }}
containers:
Expand All @@ -58,7 +58,7 @@ spec:
{{- toYaml . | nindent 10 }}
{{- end }}
{{- with .Values.deployment.containerExtraSpecs }}
{{- tpl . $ | nindent 10 }}
{{- toYaml . | nindent 10 }}
{{- end }}
imagePullPolicy: {{ .Values.deployment.image.pullPolicy }}
ports:
Expand All @@ -69,15 +69,15 @@ spec:
containerPort: {{ default .Values.service.httpAdminPort .Values.deployment.containerAdminPort }}
{{- end }}
{{- with .Values.deployment.containerExtraPorts }}
{{- tpl . $ | nindent 12 }}
{{- toYaml . | nindent 12 }}
{{- end }}
livenessProbe:
{{- toYaml .Values.deployment.livenessProbe | nindent 12 }}
readinessProbe:
{{- toYaml .Values.deployment.readinessProbe | nindent 12 }}
{{- with .Values.deployment.startupProbe }}
startupProbe:
{{- tpl . $ | nindent 12 }}
{{- toYaml . | nindent 12 }}
{{- end }}
resources:
{{- toYaml .Values.deployment.resources | nindent 12 }}
Expand Down
10 changes: 4 additions & 6 deletions bouyguestelecom/spin/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,10 @@ deployment:
fsGroup: 1001 ## generic value
# -- Add initContainers
extraInitContainers: []
# - name: init-container-1
# image: your-image-1:tag
# - name: init-container-2
# image: your-image-2:tag
# -- Pod restart policy. One of `Always`, `OnFailure`, or `Never`
restartPolicy: Always
# -- Security context
Expand Down Expand Up @@ -265,9 +269,3 @@ configFiles: {}
# insert_your_application_configuration_here
#logback.xml: |-
# insert_your_logback_configuration_here

# -- Log into github to generate tag image
github:
enabled: false
organization: "votre-organisation"
repository: "votre-repo"

0 comments on commit 51eadf0

Please sign in to comment.