Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(helm-chart): add updateStrategy option #1424

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions charts/tofu-controller/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,7 @@ __Note__: If you need to use the `imagePullSecrets` it would be best to set `ser
| serviceAccount.create | bool | `true` | If `true`, create a new service account |
| serviceAccount.name | string | tofu-controller | Service account to be used |
| tolerations | list | `[]` | Tolerations properties for the tofu-controller deployment |
| updateStrategy | object | `{}` | Customize updateStrategy on controller and branch-planner |
| usePodSubdomainResolution | bool | `false` | Argument for `--use-pod-subdomain-resolution` (Controller). UsePodSubdomainResolution allow pod hostname/subdomain DNS resolution for the pod runner instead of IP based DNS resolution. |
| volumeMounts | list | `[]` | Volume mounts properties for the tofu-controller deployment |
| volumes | list | `[]` | Volumes properties for the tofu-controller deployment |
Expand Down
3 changes: 3 additions & 0 deletions charts/tofu-controller/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,9 @@ metadata:
name: {{ include "tofu-controller.fullname" . }}
spec:
replicas: {{ .Values.replicaCount }}
{{- with .Values.updateStrategy }}
strategy: {{ toYaml . | nindent 4 }}
{{- end }}
selector:
matchLabels:
{{- include "tofu-controller.selectorLabels" . | nindent 6 }}
Expand Down
3 changes: 3 additions & 0 deletions charts/tofu-controller/templates/planner-deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,9 @@ metadata:
spec:
# Planner can't be scaled yet.
replicas: 1
{{- with .Values.updateStrategy }}
strategy: {{ toYaml . | nindent 4 }}
{{- end }}
selector:
matchLabels:
{{- include "planner.selectorLabels" . | nindent 6 }}
Expand Down
2 changes: 2 additions & 0 deletions charts/tofu-controller/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,8 @@ resources:
memory: 64Mi
# -- Additional container environment variables.
extraEnv: {}
# -- Customize updateStrategy on controller and branch-planner
updateStrategy: {}
# -- Pod-level security context
podSecurityContext:
fsGroup: 1337
Expand Down