Skip to content

Commit

Permalink
adds tolerations, nodeSelector, and affinity to updatetree. (#760)
Browse files Browse the repository at this point in the history
Signed-off-by: ianhundere <138915+ianhundere@users.noreply.github.com>
  • Loading branch information
ianhundere authored Jun 25, 2024
1 parent 40b26ad commit 5136a51
Show file tree
Hide file tree
Showing 5 changed files with 82 additions and 284 deletions.
2 changes: 1 addition & 1 deletion charts/updatetree/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ description: Update the status of an existing Trillian tree

type: application

version: 0.0.9
version: 0.0.10
appVersion: 0.6.17


Expand Down
4 changes: 3 additions & 1 deletion charts/updatetree/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,22 +16,24 @@ Update the status of an existing Trillian tree

| Key | Type | Default | Description |
|-----|------|---------|-------------|
| affinity | object | `{}` | |
| annotations | object | `{}` | |
| args.treeID | string | `""` | |
| args.treeState | string | `""` | valid tree states are ACTIVE, FROZEN and DRAINING |
| enabled | bool | `false` | |
| namespace.create | bool | `false` | |
| namespace.name | string | `"trillian-system"` | |
| nodeSelector | object | `{}` | |
| securityContext.runAsNonRoot | bool | `true` | |
| securityContext.runAsUser | int | `65533` | |
| serviceAccount.annotations | object | `{}` | |
| serviceAccount.create | bool | `false` | |
| serviceAccount.name | string | `"trillian-logserver"` | |
| spec.image | string | `"ghcr.io/sigstore/scaffolding/updatetree:v0.6.17@sha256:9fe03dde7324490cc7a84c75dfa3f1de267fc71c1a473fc67491c690e22c32ab"` | |
| spec.replicaCount | int | `1` | |
| tolerations | list | `[]` | |
| trillian.adminServer | string | `""` | |
| trillian.logServer.name | string | `"trillian-logserver"` | |
| trillian.logServer.portRPC | int | `8091` | |
| trillian.namespace | string | `"trillian-system"` | |
| ttlSecondsAfterFinished | int | `3600` | |

12 changes: 12 additions & 0 deletions charts/updatetree/templates/job.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -32,4 +32,16 @@ spec:
securityContext:
{{ toYaml .Values.securityContext | indent 8 }}
{{- end }}
{{- if .Values.tolerations }}
tolerations:
{{ toYaml .Values.tolerations | indent 8 }}
{{- end }}
{{- if .Values.nodeSelector }}
nodeSelector:
{{ toYaml .Values.nodeSelector | indent 8 }}
{{- end }}
{{- if .Values.affinity }}
affinity:
{{ toYaml .Values.affinity | indent 8 }}
{{- end }}
{{- end }}
Loading

0 comments on commit 5136a51

Please sign in to comment.