Skip to content

Commit

Permalink
Merge pull request #2109 from AndrewSirenko/disablePDB
Browse files Browse the repository at this point in the history
Add toggle for PodDisruptionBudget in chart
  • Loading branch information
k8s-ci-robot authored Aug 13, 2024
2 parents 911b991 + 7132555 commit bdcd2e9
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{{- if not .Values.nodeComponentOnly -}}
{{- if and .Values.controller.podDisruptionBudget.enabled (not .Values.nodeComponentOnly) -}}
apiVersion: policy/v1
kind: PodDisruptionBudget
metadata:
Expand All @@ -16,4 +16,4 @@ spec:
{{- else }}
minAvailable: 2
{{- end }}
{{- end }}
{{- end -}}
4 changes: 4 additions & 0 deletions charts/aws-ebs-csi-driver/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -245,6 +245,10 @@ controller:
deploymentAnnotations: {}
podAnnotations: {}
podLabels: {}
podDisruptionBudget:
# Warning: Disabling PodDisruptionBudget may lead to delays in stateful workloads starting due to controller
# pod restarts or evictions.
enabled: true
priorityClassName: system-cluster-critical
# AWS region to use. If not specified then the region will be looked up via the AWS EC2 metadata
# service.
Expand Down

0 comments on commit bdcd2e9

Please sign in to comment.