From 68e539a4670a58501b97078e558f0d52651bd41e Mon Sep 17 00:00:00 2001 From: Karl Haworth Date: Fri, 1 Sep 2023 11:51:18 -0400 Subject: [PATCH] add imagepullsecrets for updatetree Signed-off-by: Karl Haworth --- charts/updatetree/README.md | 1 + charts/updatetree/templates/job.yaml | 4 ++++ charts/updatetree/values.schema.json | 3 +++ charts/updatetree/values.yaml | 1 + 4 files changed, 9 insertions(+) diff --git a/charts/updatetree/README.md b/charts/updatetree/README.md index fa36731b..f6b806ef 100644 --- a/charts/updatetree/README.md +++ b/charts/updatetree/README.md @@ -19,6 +19,7 @@ Update the status of an existing Trillian tree | args.treeID | string | `nil` | | | args.treeState | string | `nil` | valid tree states are ACTIVE, FROZEN and DRAINING | | enabled | bool | `false` | | +| imagePullSecrets | list | `[]` | | | namespace.create | bool | `false` | | | namespace.name | string | `"trillian-system"` | | | securityContext.runAsNonRoot | bool | `true` | | diff --git a/charts/updatetree/templates/job.yaml b/charts/updatetree/templates/job.yaml index 17ddd47f..530a73e5 100644 --- a/charts/updatetree/templates/job.yaml +++ b/charts/updatetree/templates/job.yaml @@ -16,6 +16,10 @@ spec: spec: serviceAccountName: {{ .Values.serviceAccount.name }} restartPolicy: Never + {{- if .Values.imagePullSecrets }} + imagePullSecrets: +{{ toYaml .Values.imagePullSecrets | indent 8 }} + {{- end }} containers: - name: updatetree image: "{{ .Values.spec.image}}" diff --git a/charts/updatetree/values.schema.json b/charts/updatetree/values.schema.json index d4bc09ff..f16e2c54 100644 --- a/charts/updatetree/values.schema.json +++ b/charts/updatetree/values.schema.json @@ -23,6 +23,9 @@ false ] }, + "imagePullSecrets": { + "type": "array" + }, "namespace": { "type": "object", "default": {}, diff --git a/charts/updatetree/values.yaml b/charts/updatetree/values.yaml index 0a62ac75..0aac6694 100644 --- a/charts/updatetree/values.yaml +++ b/charts/updatetree/values.yaml @@ -1,4 +1,5 @@ enabled: false +imagePullSecrets: [] namespace: name: trillian-system create: false