Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions templates/plumbing/argocd.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,9 @@ spec:
name: trusted-hub-bundle
- mountPath: /tmp/ca-bundles
name: ca-bundles
{{- if len $.Values.clusterGroup.argoCD.initContainers }}
{{ toYaml $.Values.clusterGroup.argoCD.initContainers | indent 4 }}
{{- end }}
resources:
limits:
cpu: "1"
Expand All @@ -96,9 +99,6 @@ spec:
name: trusted-hub-bundle
- emptyDir: {}
name: ca-bundles
{{- if len $.Values.clusterGroup.argoCD.initContainers }}
{{ $.Values.clusterGroup.argoCD.initContainers | toPrettyJson }}
{{- end }}
{{- if len $.Values.clusterGroup.argoCD.configManagementPlugins }}
sidecarContainers:
{{- range $cmp := $.Values.clusterGroup.argoCD.configManagementPlugins }}
Expand Down
23 changes: 23 additions & 0 deletions tests/argocd_test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -180,3 +180,26 @@ tests:
kinds:
- Foo
- Baz

- it: should render custom initContainers correctly
set:
clusterGroup:
argoCD:
initContainers:
- command:
- bash
- -c
- echo
image: test
name: test
documentIndex: 0
asserts:
- contains:
path: spec.repo.initContainers
content:
command:
- bash
- -c
- echo
image: test
name: test