-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: Add PodDisruptionBudget to helm chart (#246)
* feat: Add PodDisruptionBudget to helm chart Signed-off-by: Rafael da Fonseca <[email protected]> * Specify namespace in pdb Signed-off-by: Rafael da Fonseca <[email protected]> * Fix outdated/removed python version (#245) * Fix outdated/removed python version Signed-off-by: Rafael da Fonseca <[email protected]> * Fix outdated/removed python version Signed-off-by: Rafael da Fonseca <[email protected]> --------- Signed-off-by: Rafael da Fonseca <[email protected]> * fix: codegen Signed-off-by: Vishal Choudhary <[email protected]> Signed-off-by: Rafael da Fonseca <[email protected]> --------- Signed-off-by: Rafael da Fonseca <[email protected]> Signed-off-by: Vishal Choudhary <[email protected]> Co-authored-by: Vishal Choudhary <[email protected]>
- Loading branch information
1 parent
4aeb404
commit a1dda07
Showing
5 changed files
with
52 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
16 changes: 16 additions & 0 deletions
16
charts/reports-server/templates/pod-disruption-budget.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
{{- if eq .Values.pdb.enabled true }} | ||
apiVersion: policy/v1 | ||
kind: PodDisruptionBudget | ||
metadata: | ||
name: {{ include "reports-server.fullname" . }} | ||
namespace: {{ $.Release.Namespace }} | ||
spec: | ||
selector: | ||
matchLabels: | ||
app.kubernetes.io/name: {{ include "reports-server.name" . }} | ||
{{- if .Values.pdb.maxUnavailable }} | ||
maxUnavailable: {{ .Values.pdb.maxUnavailable }} | ||
{{- else if .Values.pdb.minAvailable }} | ||
minAvailable: {{ .Values.pdb.minAvailable }} | ||
{{- end }} | ||
{{- end }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters