Code Review
/
oom.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
[MARIADB][COMMON] Add support for mariadb-operator
[oom.git]
/
kubernetes
/
common
/
mariadb-galera
/
templates
/
pdb.yaml
diff --git
a/kubernetes/common/mariadb-galera/templates/pdb.yaml
b/kubernetes/common/mariadb-galera/templates/pdb.yaml
index
4697934
..
734f03f
100644
(file)
--- a/
kubernetes/common/mariadb-galera/templates/pdb.yaml
+++ b/
kubernetes/common/mariadb-galera/templates/pdb.yaml
@@
-14,17
+14,19
@@
# limitations under the License.
*/}}
# limitations under the License.
*/}}
-{{- if .Values.podDisruptionBudget.create }}
-apiVersion: policy/v1beta1
+{{- if not .Values.global.mariadbGalera.useOperator }}
+{{- if .Values.podDisruptionBudget.create }}
+apiVersion: policy/v1
kind: PodDisruptionBudget
metadata: {{- include "common.resourceMetadata" . | nindent 2 }}
spec:
kind: PodDisruptionBudget
metadata: {{- include "common.resourceMetadata" . | nindent 2 }}
spec:
-{{- if .Values.podDisruptionBudget.minAvailable }}
+{{-
if .Values.podDisruptionBudget.minAvailable }}
minAvailable: {{ .Values.podDisruptionBudget.minAvailable }}
minAvailable: {{ .Values.podDisruptionBudget.minAvailable }}
-{{- end }}
-{{- if .Values.podDisruptionBudget.maxUnavailable }}
+{{-
end }}
+{{-
if .Values.podDisruptionBudget.maxUnavailable }}
maxUnavailable: {{ .Values.podDisruptionBudget.maxUnavailable }}
maxUnavailable: {{ .Values.podDisruptionBudget.maxUnavailable }}
-{{- end }}
+{{-
end }}
selector:
matchLabels: {{- include "common.matchLabels" . | nindent 6 }}
selector:
matchLabels: {{- include "common.matchLabels" . | nindent 6 }}
-{{- end }}
+{{- end }}
+{{- end }}
\ No newline at end of file