Skip to content

Commit

Permalink
acl-operator: add pdb
Browse files Browse the repository at this point in the history
  • Loading branch information
morpheu committed Jul 4, 2024
1 parent 976c0d0 commit ae97a02
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 0 deletions.
13 changes: 13 additions & 0 deletions charts/acl-operator/templates/poddirruptionbudget.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
{{- if and .Values.podDisruptionBudget.enabled (gt (.Values.replicaCount|int) 1) }}
apiVersion: policy/v1
kind: PodDisruptionBudget
metadata:
name: {{ include "acl-operator.fullname" . }}
labels:
{{- include "acl-operator.labels" . | nindent 4 }}
spec:
maxUnavailable: {{ .Values.podDisruptionBudget.maxUnavailable }}
selector:
matchLabels:
{{- include "acl-operator.selectorLabels" . | nindent 6 }}
{{- end }}
4 changes: 4 additions & 0 deletions charts/acl-operator/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,10 @@ podAnnotations: {}
podSecurityContext: {}
# fsGroup: 2000

podDisruptionBudget:
enabled: true
maxUnavailable: "10%"

dnsConfig: {}

securityContext: {}
Expand Down

0 comments on commit ae97a02

Please sign in to comment.