Skip to content

Commit

Permalink
add imagepullsecrets for updatetree
Browse files Browse the repository at this point in the history
Signed-off-by: Karl Haworth <[email protected]>
  • Loading branch information
karlhaworth committed Nov 29, 2023
1 parent 073e366 commit 68e539a
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 0 deletions.
1 change: 1 addition & 0 deletions charts/updatetree/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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` | |
Expand Down
4 changes: 4 additions & 0 deletions charts/updatetree/templates/job.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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}}"
Expand Down
3 changes: 3 additions & 0 deletions charts/updatetree/values.schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,9 @@
false
]
},
"imagePullSecrets": {
"type": "array"
},
"namespace": {
"type": "object",
"default": {},
Expand Down
1 change: 1 addition & 0 deletions charts/updatetree/values.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
enabled: false
imagePullSecrets: []
namespace:
name: trillian-system
create: false
Expand Down

0 comments on commit 68e539a

Please sign in to comment.