Skip to content

Commit

Permalink
add flag to enable pdb explicitly
Browse files Browse the repository at this point in the history
Signed-off-by: Raul Garcia Sanchez <[email protected]>
  • Loading branch information
rgarcia89 committed May 24, 2023
1 parent a60eb4d commit cf681d6
Show file tree
Hide file tree
Showing 7 changed files with 12 additions and 6 deletions.
2 changes: 1 addition & 1 deletion templates/core/core-pdb.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{{- if (gt (int .Values.core.replicas) 1) }}
{{- if and .Values.core.podDisruptionBudget (gt (int .Values.core.replicas) 1) }}
apiVersion: policy/v1
kind: PodDisruptionBudget
metadata:
Expand Down
2 changes: 1 addition & 1 deletion templates/jobservice/jobservice-pdb.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{{- if (gt (int .Values.jobservice.replicas) 1) }}
{{- if and .Values.jobservice.podDisruptionBudget (gt (int .Values.jobservice.replicas) 1) }}
apiVersion: policy/v1
kind: PodDisruptionBudget
metadata:
Expand Down
2 changes: 1 addition & 1 deletion templates/nginx/nginx-pdb.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{{- if (gt (int .Values.nginx.replicas) 1) }}
{{- if and .Values.nginx.podDisruptionBudget (gt (int .Values.nginx.replicas) 1) }}
apiVersion: policy/v1
kind: PodDisruptionBudget
metadata:
Expand Down
2 changes: 1 addition & 1 deletion templates/portal/portal-pdb.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{{- if (gt (int .Values.portal.replicas) 1) }}
{{- if and .Values.portal.podDisruptionBudget (gt (int .Values.portal.replicas) 1) }}
apiVersion: policy/v1
kind: PodDisruptionBudget
metadata:
Expand Down
2 changes: 1 addition & 1 deletion templates/registry/registry-pdb.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{{- if (gt (int .Values.registry.replicas) 1) }}
{{- if and .Values.registry.podDisruptionBudget (gt (int .Values.registry.replicas) 1) }}
apiVersion: policy/v1
kind: PodDisruptionBudget
metadata:
Expand Down
2 changes: 1 addition & 1 deletion templates/trivy/trivy-pdb.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{{- if (gt (int .Values.trivy.replicas) 1) }}
{{- if and .Values.trivy.podDisruptionBudget (gt (int .Values.trivy.replicas) 1) }}
apiVersion: policy/v1
kind: PodDisruptionBudget
metadata:
Expand Down
6 changes: 6 additions & 0 deletions values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -415,6 +415,7 @@ nginx:
nodeSelector: {}
tolerations: []
affinity: {}
podDisruptionBudget: false
## Additional deployment annotations
podAnnotations: {}
## Additional deployment labels
Expand All @@ -440,6 +441,7 @@ portal:
nodeSelector: {}
tolerations: []
affinity: {}
podDisruptionBudget: false
## Additional deployment annotations
podAnnotations: {}
## Additional deployment labels
Expand Down Expand Up @@ -469,6 +471,7 @@ core:
nodeSelector: {}
tolerations: []
affinity: {}
podDisruptionBudget: false
## Additional deployment annotations
podAnnotations: {}
## Additional deployment labels
Expand Down Expand Up @@ -538,6 +541,7 @@ jobservice:
nodeSelector: {}
tolerations: []
affinity: {}
podDisruptionBudget: false
## Additional deployment annotations
podAnnotations: {}
## Additional deployment labels
Expand Down Expand Up @@ -578,6 +582,7 @@ registry:
nodeSelector: {}
tolerations: []
affinity: {}
podDisruptionBudget: false
## Additional deployment annotations
podAnnotations: {}
## Additional deployment labels
Expand Down Expand Up @@ -688,6 +693,7 @@ trivy:
nodeSelector: {}
tolerations: []
affinity: {}
podDisruptionBudget: false
## Additional deployment annotations
podAnnotations: {}
## Additional deployment labels
Expand Down

0 comments on commit cf681d6

Please sign in to comment.