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 11, 2023
1 parent e8c76eb commit e3a220b
Show file tree
Hide file tree
Showing 16 changed files with 70 additions and 12 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
7 changes: 6 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,10 @@ 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 }}
{{- with .Values.pdb.spec.maxUnavailable }}
maxUnavailable: {{ . }}
{{- end }}
{{- with .Values.pdb.spec.minAvailable }}
minAvailable: {{ . }}
{{- end }}
{{- end -}}
3 changes: 2 additions & 1 deletion helm/charts/hydra-maester/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -136,4 +136,5 @@ affinity: {}
pdb:
enabled: false
spec:
minAvailable: 1
minAvailable: ""
maxUnavailable: ""
7 changes: 6 additions & 1 deletion helm/charts/hydra/templates/pdb.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,5 +9,10 @@ spec:
matchLabels:
app.kubernetes.io/name: {{ include "hydra.name" . }}
app.kubernetes.io/instance: {{ .Release.Name }}
{{- toYaml .Values.pdb.spec | indent 2 }}
{{- with .Values.pdb.spec.maxUnavailable }}
maxUnavailable: {{ . }}
{{- end }}
{{- with .Values.pdb.spec.minAvailable }}
minAvailable: {{ . }}
{{- end }}
{{- end -}}
3 changes: 2 additions & 1 deletion helm/charts/hydra/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -601,7 +601,8 @@ cronjob:
pdb:
enabled: false
spec:
minAvailable: 1
minAvailable: ""
maxUnavailable: ""

# -- Parameters for the Prometheus ServiceMonitor objects.
# Reference: https://docs.openshift.com/container-platform/4.6/rest_api/monitoring_apis/servicemonitor-monitoring-coreos-com-v1.html
Expand Down
7 changes: 6 additions & 1 deletion helm/charts/keto/templates/pdb.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,5 +11,10 @@ spec:
selector:
matchLabels:
{{- include "keto.selectorLabels" . | nindent 6 }}
{{- toYaml .Values.pdb.spec | indent 2 }}
{{- with .Values.pdb.spec.maxUnavailable }}
maxUnavailable: {{ . }}
{{- end }}
{{- with .Values.pdb.spec.minAvailable }}
minAvailable: {{ . }}
{{- end }}
{{- end -}}
3 changes: 2 additions & 1 deletion helm/charts/keto/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -405,7 +405,8 @@ watcher:
pdb:
enabled: false
spec:
minAvailable: 1
minAvailable: ""
maxUnavailable: ""

# -- Parameters for the Prometheus ServiceMonitor objects.
# Reference: https://docs.openshift.com/container-platform/4.6/rest_api/monitoring_apis/servicemonitor-monitoring-coreos-com-v1.html
Expand Down
7 changes: 6 additions & 1 deletion helm/charts/kratos/templates/pdb.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,5 +9,10 @@ spec:
matchLabels:
app.kubernetes.io/name: {{ include "kratos.name" . }}
app.kubernetes.io/instance: {{ .Release.Name }}
{{- toYaml .Values.pdb.spec | indent 2 }}
{{- with .Values.pdb.spec.maxUnavailable }}
maxUnavailable: {{ . }}
{{- end }}
{{- with .Values.pdb.spec.minAvailable }}
minAvailable: {{ . }}
{{- end }}
{{- end -}}
3 changes: 2 additions & 1 deletion helm/charts/kratos/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -685,7 +685,8 @@ cronjob:
pdb:
enabled: false
spec:
minAvailable: 1
minAvailable: ""
maxUnavailable: ""

# -- Parameters for the Prometheus ServiceMonitor objects.
# Reference: https://docs.openshift.com/container-platform/4.6/rest_api/monitoring_apis/servicemonitor-monitoring-coreos-com-v1.html
Expand Down
7 changes: 6 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,10 @@ 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 }}
{{- with .Values.pdb.spec.maxUnavailable }}
maxUnavailable: {{ . }}
{{- end }}
{{- with .Values.pdb.spec.minAvailable }}
minAvailable: {{ . }}
{{- end }}
{{- end -}}
3 changes: 2 additions & 1 deletion helm/charts/oathkeeper-maester/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -116,4 +116,5 @@ affinity: {}
pdb:
enabled: false
spec:
minAvailable: 1
minAvailable: ""
maxUnavailable: ""
7 changes: 6 additions & 1 deletion helm/charts/oathkeeper/templates/pdb.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,5 +9,10 @@ spec:
matchLabels:
app.kubernetes.io/name: {{ include "oathkeeper.name" . }}
app.kubernetes.io/instance: {{ .Release.Name }}
{{- toYaml .Values.pdb.spec | indent 2 }}
{{- with .Values.pdb.spec.maxUnavailable }}
maxUnavailable: {{ . }}
{{- end }}
{{- with .Values.pdb.spec.minAvailable }}
minAvailable: {{ . }}
{{- end }}
{{- end -}}
3 changes: 2 additions & 1 deletion helm/charts/oathkeeper/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -363,7 +363,8 @@ maester:
pdb:
enabled: false
spec:
minAvailable: 1
minAvailable: ""
maxUnavailable: ""

# -- Parameters for the Prometheus ServiceMonitor objects.
# Reference: https://docs.openshift.com/container-platform/4.6/rest_api/monitoring_apis/servicemonitor-monitoring-coreos-com-v1.html
Expand Down

0 comments on commit e3a220b

Please sign in to comment.