Skip to content
Merged
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
3 changes: 3 additions & 0 deletions chart/templates/workers/worker-deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,9 @@ spec:
tier: airflow
component: worker
release: {{ .Release.Name }}
{{- if and $persistence .Values.workers.podManagementPolicy }}
podManagementPolicy: {{ .Values.workers.podManagementPolicy }}
{{- end }}
{{- if and $persistence .Values.workers.updateStrategy }}
updateStrategy: {{- toYaml .Values.workers.updateStrategy | nindent 4 }}
{{- end }}
Expand Down
12 changes: 12 additions & 0 deletions chart/values.schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -1598,6 +1598,18 @@
],
"default": null
},
"podManagementPolicy": {
"description": "Specifies the policy for managing pods within the worker. Only applicable to StatefulSet.",
"type": [
"null",
"string"
],
"default": null,
"enum": [
"OrderedReady",
"Parallel"
]
},
"strategy": {
"description": "Specifies the strategy used to replace old Pods by new ones when deployed as a Deployment.",
"type": [
Expand Down
3 changes: 3 additions & 0 deletions chart/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -590,6 +590,9 @@ workers:
maxSurge: "100%"
maxUnavailable: "50%"

# Allow relaxing ordering guarantees while preserving its uniqueness and identity
# podManagementPolicy: Parallel

# When not set, the values defined in the global securityContext will be used
securityContext: {}
# runAsUser: 50000
Expand Down