fix(deployment): template initContainers
Helm / helm-lint (push) Successful in 13s
Helm / helm-unittest (push) Successful in 19s

This commit is contained in:
volker.raschek committed 2026-10-18 17:10:29 +02:00
1 parent 1bb4aa34a5
commit 941c715ef2
2 files changed
+23

No files matched your search

+4
View File
@@ -105,6 +105,10 @@ spec:
imagePullSecrets:
{{- toYaml . | nindent 8 }}
{{- end }}
{{- with .Values.deployment.initContainers }}
initContainers:
{{- toYaml . | nindent 8 }}
{{- end }}
{{- with .Values.deployment.nodeSelector }}
nodeSelector:
{{- toYaml . | nindent 8 }}
+19
View File
@@ -129,6 +129,9 @@ tests:
- notExists:
path: spec.template.spec.imagePullSecrets
template: templates/deployment.yaml
- notExists:
path: spec.template.spec.initContainers
template: templates/deployment.yaml
- notExists:
path: spec.template.spec.nodeSelector
template: templates/deployment.yaml
@@ -463,6 +466,22 @@ tests:
- name: my-special-secret
template: templates/deployment.yaml
- it: Test initContainers
set:
# Ensure that the secrets and config maps are well configured.
# Normal test values
deployment.initContainers:
- name: busybox
image: docker.io/library/busybox:latest
asserts:
- contains:
path: spec.template.spec.initContainers
content:
name: busybox
image: docker.io/library/busybox:latest
template: templates/deployment.yaml
- it: Test nodeSelector
set:
# Ensure that the secrets and config maps are well configured.