Skip to content

Commit

Permalink
fix: add pdb sample values
Browse files Browse the repository at this point in the history
  • Loading branch information
achedeuzot committed Dec 5, 2023
1 parent e8c76eb commit 812fc64
Show file tree
Hide file tree
Showing 10 changed files with 52 additions and 6 deletions.
5 changes: 5 additions & 0 deletions hacks/values/hydra.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,11 @@ janitor:

priorityClassName: "system-cluster-critical"

pdb:
enabled: true
spec:
maxUnavailable: 25%

deployment:
autoscaling:
enabled: true
Expand Down
6 changes: 6 additions & 0 deletions hacks/values/keto.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,12 @@ ingress:
write:
enabled: true
priorityClassName: "system-cluster-critical"

pdb:
enabled: true
spec:
maxUnavailable: 25%

deployment:
autoscaling:
enabled: true
Expand Down
5 changes: 5 additions & 0 deletions hacks/values/kratos.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -186,6 +186,11 @@ ingress:
- path: /
pathType: Prefix

pdb:
enabled: true
spec:
maxUnavailable: 25%

deployment:
extraInitContainers: |
- name: "hello-world"
Expand Down
6 changes: 6 additions & 0 deletions hacks/values/oathkeeper.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,12 @@ ingress:
api:
enabled: true
priorityClassName: "system-cluster-critical"

pdb:
enabled: true
spec:
maxUnavailable: 25%

deployment:
extraInitContainers: |
- name: "hello-world"
Expand Down
6 changes: 5 additions & 1 deletion helm/charts/hydra-maester/templates/pdb.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,5 +10,9 @@ spec:
control-plane: controller-manager
app.kubernetes.io/name: {{ include "hydra-maester.fullname" . }}
app.kubernetes.io/instance: {{ .Release.Name }}
{{- toYaml .Values.pdb.spec | indent 2 }}
{{- if .Values.pdb.spec.maxUnavailable }}
maxUnavailable: {{ .Values.pdb.spec.maxUnavailable }}
{{- else }}
minAvailable: {{ .Values.pdb.spec.minAvailable | default "1" }}
{{- end -}}
{{- end -}}
6 changes: 5 additions & 1 deletion helm/charts/hydra/templates/pdb.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,5 +9,9 @@ spec:
matchLabels:
app.kubernetes.io/name: {{ include "hydra.name" . }}
app.kubernetes.io/instance: {{ .Release.Name }}
{{- toYaml .Values.pdb.spec | indent 2 }}
{{- if .Values.pdb.spec.maxUnavailable }}
maxUnavailable: {{ .Values.pdb.spec.maxUnavailable }}
{{- else }}
minAvailable: {{ .Values.pdb.spec.minAvailable | default "1" }}
{{- end -}}
{{- end -}}
6 changes: 5 additions & 1 deletion helm/charts/keto/templates/pdb.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,5 +11,9 @@ spec:
selector:
matchLabels:
{{- include "keto.selectorLabels" . | nindent 6 }}
{{- toYaml .Values.pdb.spec | indent 2 }}
{{- if .Values.pdb.spec.maxUnavailable }}
maxUnavailable: {{ .Values.pdb.spec.maxUnavailable }}
{{- else }}
minAvailable: {{ .Values.pdb.spec.minAvailable | default "1" }}
{{- end -}}
{{- end -}}
6 changes: 5 additions & 1 deletion helm/charts/kratos/templates/pdb.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,5 +9,9 @@ spec:
matchLabels:
app.kubernetes.io/name: {{ include "kratos.name" . }}
app.kubernetes.io/instance: {{ .Release.Name }}
{{- toYaml .Values.pdb.spec | indent 2 }}
{{- if .Values.pdb.spec.maxUnavailable }}
maxUnavailable: {{ .Values.pdb.spec.maxUnavailable }}
{{- else }}
minAvailable: {{ .Values.pdb.spec.minAvailable | default "1" }}
{{- end -}}
{{- end -}}
6 changes: 5 additions & 1 deletion helm/charts/oathkeeper-maester/templates/pdb.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,5 +10,9 @@ spec:
control-plane: controller-manager
app.kubernetes.io/name: {{ include "oathkeeper-maester.fullname" . }}
app.kubernetes.io/instance: {{ .Release.Name }}
{{- toYaml .Values.pdb.spec | indent 2 }}
{{- if .Values.pdb.spec.maxUnavailable }}
maxUnavailable: {{ .Values.pdb.spec.maxUnavailable }}
{{- else }}
minAvailable: {{ .Values.pdb.spec.minAvailable | default "1" }}
{{- end -}}
{{- end -}}
6 changes: 5 additions & 1 deletion helm/charts/oathkeeper/templates/pdb.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,5 +9,9 @@ spec:
matchLabels:
app.kubernetes.io/name: {{ include "oathkeeper.name" . }}
app.kubernetes.io/instance: {{ .Release.Name }}
{{- toYaml .Values.pdb.spec | indent 2 }}
{{- if .Values.pdb.spec.maxUnavailable }}
maxUnavailable: {{ .Values.pdb.spec.maxUnavailable }}
{{- else }}
minAvailable: {{ .Values.pdb.spec.minAvailable | default "1" }}
{{- end -}}
{{- end -}}

0 comments on commit 812fc64

Please sign in to comment.