Skip to content

Commit

Permalink
Add initContainers support (#308)
Browse files Browse the repository at this point in the history
* Add initContainers support

Signed-off-by: ShlomiTubul <[email protected]>

* bump version

Signed-off-by: ShlomiTubul <[email protected]>

---------

Signed-off-by: ShlomiTubul <[email protected]>
  • Loading branch information
shlomitubul authored Nov 20, 2024
1 parent b1e7424 commit b8ff067
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 2 deletions.
2 changes: 1 addition & 1 deletion charts/kubechecks/Chart.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
apiVersion: v2
name: kubechecks
description: A Helm chart for kubechecks
version: 0.4.5
version: 0.4.6
type: application
maintainers:
- name: zapier
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 b8ff067

Please sign in to comment.