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