Skip to content

Commit

Permalink
fix extra init container
Browse files Browse the repository at this point in the history
  • Loading branch information
saramiap committed Dec 13, 2023
1 parent a8d0bb1 commit ed8a9fd
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 12 deletions.
2 changes: 1 addition & 1 deletion bouyguestelecom/spin/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ type: application
# This is the chart version. This version number should be incremented each time you make changes
# to the chart and its templates, including the app version.
# Versions are expected to follow Semantic Versioning (https://semver.org/)
version: 0.1.2
version: 0.1.3

# This is the version number of the application being deployed. This version number should be
# incremented each time you make changes to the application. Versions are not expected to
Expand Down
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 }}
{{- toYaml . | nindent 8 }}
{{- tpl . $ | nindent 8 }}
{{- end }}
{{- end }}
containers:
Expand All @@ -58,7 +58,7 @@ spec:
{{- toYaml . | nindent 10 }}
{{- end }}
{{- with .Values.deployment.containerExtraSpecs }}
{{- toYaml . | nindent 10 }}
{{- tpl . $ | 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 }}
{{- toYaml . | nindent 12 }}
{{- tpl . $ | nindent 12 }}
{{- end }}
livenessProbe:
{{- toYaml .Values.deployment.livenessProbe | nindent 12 }}
readinessProbe:
{{- toYaml .Values.deployment.readinessProbe | nindent 12 }}
{{- with .Values.deployment.startupProbe }}
startupProbe:
{{- toYaml . | nindent 12 }}
{{- tpl . $ | nindent 12 }}
{{- end }}
resources:
{{- toYaml .Values.deployment.resources | nindent 12 }}
Expand Down
12 changes: 6 additions & 6 deletions bouyguestelecom/spin/values.schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -205,12 +205,12 @@
}]
},
"extraInitContainers": {
"type": "array",
"default": [],
"type": "string",
"default": "",
"title": "The extraInitContainers Schema",
"items": {},
"examples": [
[]
""
]
},
"restartPolicy": {
Expand Down Expand Up @@ -632,7 +632,7 @@
"enabled": false,
"fsGroup": 1001
},
"extraInitContainers": [],
"extraInitContainers": "",
"restartPolicy": "Always",
"securityContext": {
"enabled": false
Expand Down Expand Up @@ -1402,7 +1402,7 @@
"enabled": false,
"fsGroup": 1001
},
"extraInitContainers": [],
"extraInitContainers": "",
"restartPolicy": "Always",
"securityContext": {
"enabled": false
Expand Down Expand Up @@ -1529,4 +1529,4 @@
"repository": "votre-repo"
}
}]
}
}
2 changes: 1 addition & 1 deletion bouyguestelecom/spin/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ deployment:
# -- Set the File System Group (fsGroup) for the pod volumes
fsGroup: 1001 ## generic value
# -- Add initContainers
extraInitContainers: []
extraInitContainers: ""
# - name: init-container-1
# image: your-image-1:tag
# - name: init-container-2
Expand Down

0 comments on commit ed8a9fd

Please sign in to comment.