Skip to content

Commit

Permalink
Add initContainers support
Browse files Browse the repository at this point in the history
Signed-off-by: ShlomiTubul <[email protected]>
  • Loading branch information
shlomitubul committed Nov 18, 2024
1 parent a6f7fd4 commit 2174f5e
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 1 deletion.
6 changes: 5 additions & 1 deletion charts/kubechecks/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,10 @@ spec:
{{- end }}
securityContext:
{{- toYaml .Values.deployment.podSecurityContext | nindent 8 }}
{{- with .Values.deployment.initContainers }}
initContainers:
{{- toYaml . | nindent 8 }}
{{- end }}
containers:
- name: {{ .Chart.Name }}
{{- with .Values.deployment.image }}
Expand Down Expand Up @@ -101,4 +105,4 @@ spec:
{{- end }}
{{- with .Values.deployment.volumes }}
volumes: {{ . | toYaml | nindent 8 }}
{{- end }}
{{- end }}
2 changes: 2 additions & 0 deletions charts/kubechecks/templates/service.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@ apiVersion: v1
kind: Service
metadata:
name: {{ include "kubechecks.fullname" . }}
annotations:
{{ .Values.service.annotations | toYaml | nindent 4 }}
labels:
{{- include "kubechecks.labels" . | nindent 4 }}
spec:
Expand Down
6 changes: 6 additions & 0 deletions charts/kubechecks/values.schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -102,6 +102,9 @@
"securityContext": {
"type": "object"
},
"initContainers": {
"type": "array"
},
"startupProbe": {
"type": "object"
},
Expand Down Expand Up @@ -192,6 +195,9 @@
},
"name": {
"type": "string"
},
"annotations": {
"$ref": "#/$defs/key-value-map"
}
}
},
Expand Down

0 comments on commit 2174f5e

Please sign in to comment.