Skip to content

Commit 711f9aa

Browse files
Merge pull request #95 from jhohertz/support-topology-spread-contstraints
add support for topologySpreadConstraints in deployments
2 parents 75e3bd2 + 169d482 commit 711f9aa

File tree

4 files changed

+11
-1
lines changed

4 files changed

+11
-1
lines changed

helm/oauth2-proxy/Chart.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
name: oauth2-proxy
2-
version: 6.2.7
2+
version: 6.3.0
33
apiVersion: v2
44
appVersion: 7.3.0
55
home: https://oauth2-proxy.github.io/oauth2-proxy/

helm/oauth2-proxy/README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -175,6 +175,7 @@ Parameter | Description | Default
175175
`sessionStorage.redis.sentinel.password` | Redis sentinel password. Used only for sentinel connection; any redis node passwords need to use `sessionStorage.redis.password` | `nil`
176176
`sessionStorage.redis.sentinel.masterName` | Redis sentinel master name | `nil`
177177
`sessionStorage.redis.sentinel.connectionUrls` | List of Redis sentinel connection URLs (e.g. redis://HOST[:PORT]) | `[]`
178+
`topologySpreadConstraints` | List of pod topology spread constraints | `[]`
178179
`redis.enabled` | Enable the redis subchart deployment | `false`
179180
`checkDeprecation` | Enable deprecation checks | `true`
180181
`metrics.enabled` | Enable Prometheus metrics endpoint | `true`

helm/oauth2-proxy/templates/deployment.yaml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -303,3 +303,8 @@ spec:
303303
{{- end }}
304304
tolerations:
305305
{{ toYaml .Values.tolerations | indent 8 }}
306+
{{- with .Values.topologySpreadConstraints }}
307+
topologySpreadConstraints:
308+
{{- toYaml . | nindent 8 }}
309+
{{- end }}
310+

helm/oauth2-proxy/values.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -171,6 +171,10 @@ hostAlias:
171171
# ip: "10.xxx.xxx.xxx"
172172
# hostname: "auth.example.com"
173173

174+
# [TopologySpreadConstraints](https://kubernetes.io/docs/concepts/workloads/pods/pod-topology-spread-constraints/) configuration.
175+
# Ref: https://kubernetes.io/docs/reference/kubernetes-api/workload-resources/pod-v1/#scheduling
176+
# topologySpreadConstraints: []
177+
174178
# Affinity for pod assignment
175179
# Ref: https://kubernetes.io/docs/concepts/configuration/assign-pod-node/#affinity-and-anti-affinity
176180
# affinity: {}

0 commit comments

Comments
 (0)