Skip to content

Commit

Permalink
acl-api: add pdb entry
Browse files Browse the repository at this point in the history
  • Loading branch information
morpheu committed Jun 24, 2024
1 parent 242695a commit e0f6c57
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 0 deletions.
13 changes: 13 additions & 0 deletions charts/acl-api/templates/poddirruptionbudget.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
{{- if .Values.podDisruptionBudget.enabled }}
apiVersion: policy/v1
kind: PodDisruptionBudget
metadata:
name: {{ include "acl-api.fullname" . }}
labels:
{{- include "acl-api.labels" . | nindent 4 }}
spec:
maxUnavailable: {{ .Values.podDisruptionBudget.maxUnavailable }}
selector:
matchLabels:
{{- include "acl-api.selectorLabels" . | nindent 6 }}
{{- end }}
4 changes: 4 additions & 0 deletions charts/acl-api/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,10 @@ instances:
serviceName: ""
serviceAnnotations: {}

podDisruptionBudget:
enabled: false
maxUnavailable: "10%"

api:
secretName: acl-api # name of the secret that contains api username, password, mongo credentials and Tsuru token
engines: "acl-operator"
Expand Down

0 comments on commit e0f6c57

Please sign in to comment.