Skip to content

Commit

Permalink
rpaas-operator: add pdb entries
Browse files Browse the repository at this point in the history
  • Loading branch information
morpheu committed Jul 5, 2024
1 parent 1ad469c commit 70006f6
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 0 deletions.
13 changes: 13 additions & 0 deletions charts/rpaas-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 "rpaas-operator.fullname" . }}
labels:
{{- include "rpaas-operator.labels" . | nindent 4 }}
spec:
maxUnavailable: {{ .Values.podDisruptionBudget.maxUnavailable }}
selector:
matchLabels:
{{- include "rpaas-operator.selectorLabels" . | nindent 6 }}
{{- end }}
4 changes: 4 additions & 0 deletions charts/rpaas-operator/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,10 @@ podSecurityContext:
{}
# fsGroup: 2000

podDisruptionBudget:
enabled: true
maxUnavailable: "10%"

securityContext:
{}
# capabilities:
Expand Down

0 comments on commit 70006f6

Please sign in to comment.