Skip to content

Commit

Permalink
Merge pull request #672 from AviorSchreiber/develop
Browse files Browse the repository at this point in the history
feat(bottlerocket-update-operator):  Add an option to specify topologySpreadConstraints for the apiserver deployment resource.
  • Loading branch information
yeazelm committed Aug 27, 2024
2 parents 2d0f4f1 + 151a58a commit 2f6bfcf
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,10 @@ spec:
- mountPath: /etc/brupop-tls-keys
name: bottlerocket-tls-keys
serviceAccountName: brupop-agent-service-account
{{- with .Values.placement.apiserver.topologySpreadConstraints }}
topologySpreadConstraints:
{{- tpl (toYaml .) $ | nindent 8 }}
{{- end }}
{{- if ((.Values.image_pull_secrets)) }}
image_pull_secrets:
{{ .Values.image_pull_secrets }}
Expand Down
2 changes: 2 additions & 0 deletions deploy/charts/bottlerocket-update-operator/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,8 @@ placement:
priorityClassName: brupop-controller-high-priority

apiserver:
# -- Topology spread constraints.
topologySpreadConstraints: []
tolerations: []
nodeSelector: {}
podAffinity: {}
Expand Down

0 comments on commit 2f6bfcf

Please sign in to comment.