From 84fa3a7256ee67209bc6b1cc2ccebab023bffd87 Mon Sep 17 00:00:00 2001 From: Justin Rich <2077508+jrich523@users.noreply.github.com> Date: Tue, 25 Jun 2024 07:45:57 -0700 Subject: [PATCH] fix indent for env and add it to test (#5) --- examples/existing-secrets-values.yaml | 3 +++ templates/cronjob.yaml | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/examples/existing-secrets-values.yaml b/examples/existing-secrets-values.yaml index c0f091c..18930b2 100644 --- a/examples/existing-secrets-values.yaml +++ b/examples/existing-secrets-values.yaml @@ -4,6 +4,9 @@ credentials: existingSecret: "my_existing_secret" cronjob: + env: + - name: Extra_var + value: xyz repoName: "repo_name" repoCredentials: existingSecret: "my_existing_secret" diff --git a/templates/cronjob.yaml b/templates/cronjob.yaml index b1b96f7..cfa2a2c 100644 --- a/templates/cronjob.yaml +++ b/templates/cronjob.yaml @@ -83,7 +83,7 @@ spec: key: password {{- end }} {{- with $job.env }} -{{ toYaml . | indent 12 }} +{{ toYaml . | indent 14 }} {{- end }} {{- with $job.envFrom }} envFrom: