diff --git a/common/pxc-db/Chart.yaml b/common/pxc-db/Chart.yaml index 1f891091b1..86cd68fc1c 100644 --- a/common/pxc-db/Chart.yaml +++ b/common/pxc-db/Chart.yaml @@ -16,7 +16,7 @@ type: application # This is the chart version. This version number should be incremented each time you make changes # to the chart and its templates, including the app version. # Versions are expected to follow Semantic Versioning (https://semver.org/) -version: 0.1.20 +version: 0.1.21 # This is the version number of the application being deployed. This version number should be # incremented each time you make changes to the application. Versions are not expected to diff --git a/common/pxc-db/templates/cluster.yaml b/common/pxc-db/templates/cluster.yaml index 5f2a8b7814..8836457f8d 100644 --- a/common/pxc-db/templates/cluster.yaml +++ b/common/pxc-db/templates/cluster.yaml @@ -60,6 +60,9 @@ spec: apply: disabled {{- $pxc := .Values.pxc }} pxc: + {{- if gt (int $pxc.size) 7 }} + {{- fail "The Galera cluster must not be bigger than 7 nodes" }} + {{- end }} size: {{ $pxc.size }} {{- if $pxc.image.override }} image: {{ $pxc.image.override }}