From 00361ed8994f17dd70f17194d2300bc6109f0570 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ege=20G=C3=BCne=C5=9F?= Date: Mon, 14 Oct 2024 20:01:19 +0300 Subject: [PATCH 1/3] K8SPXC-1477: Add enableVolumeExpansion --- charts/pxc-db/Chart.yaml | 4 ++-- charts/pxc-db/README.md | 3 ++- charts/pxc-db/templates/cluster.yaml | 1 + charts/pxc-db/values.yaml | 5 ++++- 4 files changed, 9 insertions(+), 4 deletions(-) diff --git a/charts/pxc-db/Chart.yaml b/charts/pxc-db/Chart.yaml index 40cc7196..061ea223 100644 --- a/charts/pxc-db/Chart.yaml +++ b/charts/pxc-db/Chart.yaml @@ -1,9 +1,9 @@ apiVersion: v2 -appVersion: 1.15.0 +appVersion: 1.15.1 description: A Helm chart for installing Percona XtraDB Cluster Databases using the PXC Operator. name: pxc-db home: https://www.percona.com/doc/kubernetes-operator-for-pxc/kubernetes.html -version: 1.15.0 +version: 1.15.1 maintainers: - name: tplavcic email: tomislav.plavcic@percona.com diff --git a/charts/pxc-db/README.md b/charts/pxc-db/README.md index 0bab16d0..00937838 100644 --- a/charts/pxc-db/README.md +++ b/charts/pxc-db/README.md @@ -20,7 +20,7 @@ To install the chart with the `pxc` release name using a dedicated namespace (re ```sh helm repo add percona https://percona.github.io/percona-helm-charts/ -helm install my-db percona/pxc-db --version 1.15.0 --namespace my-namespace +helm install my-db percona/pxc-db --version 1.15.1 --namespace my-namespace ``` The chart can be customized using the following configurable parameters: @@ -31,6 +31,7 @@ The chart can be customized using the following configurable parameters: | `ignoreAnnotations` | Operator will not remove following annotations | `[]` | | `ignoreLabels` | Operator will not remove following labels | `[]` | | `pause` | Stop PXC Database safely | `false` | +| `enableVolumeExpansion` | Enable volume resizing | `false` | | `unsafeFlags.tls` | Allows users to configure a cluster without TLS/SSL certificates | `false` | | `unsafeFlags.pxcSize` | Allows users to configure a cluster with less than 3 Percona XtraDB Cluster instances | `false` | | `unsafeFlags.proxySize` | Allows users to configure a cluster with less than 2 ProxySQL or HAProxy Pods | `false` | diff --git a/charts/pxc-db/templates/cluster.yaml b/charts/pxc-db/templates/cluster.yaml index 037c40ab..e10adefb 100644 --- a/charts/pxc-db/templates/cluster.yaml +++ b/charts/pxc-db/templates/cluster.yaml @@ -13,6 +13,7 @@ metadata: {{- end }} spec: crVersion: {{ .Chart.AppVersion }} + enableVolumeExpansion: {{ .Values.enableVolumeExpansion }} {{- if .Values.ignoreAnnotations }} ignoreAnnotations: {{ .Values.ignoreAnnotations | toYaml | indent 4 }} diff --git a/charts/pxc-db/values.yaml b/charts/pxc-db/values.yaml index 23ac5780..32c446b6 100644 --- a/charts/pxc-db/values.yaml +++ b/charts/pxc-db/values.yaml @@ -19,7 +19,10 @@ annotations: {} operatorImageRepository: percona/percona-xtradb-cluster-operator -crVersion: 1.15.0 +crVersion: 1.15.1 + +enableVolumeExpansion: false + ignoreAnnotations: [] # - iam.amazonaws.com/role ignoreLabels: [] From a319aa7cceb35a97e486482d4615f37278721178 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ege=20G=C3=BCne=C5=9F?= Date: Mon, 14 Oct 2024 20:14:53 +0300 Subject: [PATCH 2/3] update crd --- charts/pxc-operator/Chart.yaml | 4 ++-- charts/pxc-operator/README.md | 4 ++-- charts/pxc-operator/crds/crd.yaml | 2 ++ 3 files changed, 6 insertions(+), 4 deletions(-) diff --git a/charts/pxc-operator/Chart.yaml b/charts/pxc-operator/Chart.yaml index cc492a4d..0ef7970e 100644 --- a/charts/pxc-operator/Chart.yaml +++ b/charts/pxc-operator/Chart.yaml @@ -1,9 +1,9 @@ apiVersion: v2 -appVersion: 1.15.0 +appVersion: 1.15.1 description: A Helm chart for deploying the Percona Operator for MySQL (based on Percona XtraDB Cluster) name: pxc-operator home: https://docs.percona.com/percona-operator-for-mysql/pxc/ -version: 1.15.0 +version: 1.15.1 maintainers: - name: tplavcic email: tomislav.plavcic@percona.com diff --git a/charts/pxc-operator/README.md b/charts/pxc-operator/README.md index 4934d11a..93b4aa3f 100644 --- a/charts/pxc-operator/README.md +++ b/charts/pxc-operator/README.md @@ -19,14 +19,14 @@ To install the chart with the `pxc` release name using a dedicated namespace (re ```sh helm repo add percona https://percona.github.io/percona-helm-charts/ -helm install my-operator percona/pxc-operator --version 1.15.0 --namespace my-namespace +helm install my-operator percona/pxc-operator --version 1.15.1 --namespace my-namespace ``` The chart can be customized using the following configurable parameters: | Parameter | Description | Default | | ------------------------------- | -----------------------------------------------------------------------------------------------| -------------------------------------------------| -| `image` | PXC Operator Container image full path | `percona/percona-xtradb-cluster-operator:1.15.0` | +| `image` | PXC Operator Container image full path | `percona/percona-xtradb-cluster-operator:1.15.1` | | `imagePullPolicy` | PXC Operator Container pull policy | `Always` | | `containerSecurityContext` | PXC Operator Container securityContext | `{}` | | `imagePullSecrets` | PXC Operator Pod pull secret | `[]` | diff --git a/charts/pxc-operator/crds/crd.yaml b/charts/pxc-operator/crds/crd.yaml index 0d782304..f8d6ddc7 100644 --- a/charts/pxc-operator/crds/crd.yaml +++ b/charts/pxc-operator/crds/crd.yaml @@ -1974,6 +1974,8 @@ spec: type: string enableCRValidationWebhook: type: boolean + enableVolumeExpansion: + type: boolean haproxy: properties: affinity: From e23b94877664c5a6116966554e7b8c9c95734ecf Mon Sep 17 00:00:00 2001 From: Julio Pasinatto Date: Wed, 16 Oct 2024 09:05:47 -0300 Subject: [PATCH 3/3] update image versions --- charts/pxc-db/README.md | 6 +++--- charts/pxc-db/values.yaml | 6 +++--- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/charts/pxc-db/README.md b/charts/pxc-db/README.md index 00937838..08a04306 100644 --- a/charts/pxc-db/README.md +++ b/charts/pxc-db/README.md @@ -27,7 +27,7 @@ The chart can be customized using the following configurable parameters: | Parameter | Description | Default | | ------------------------------------------------- | ---------------------------------------------------------------------------------------------------- | ------------------------------------ | -| `crVersion` | Version of the Operator the Custom Resource belongs to | `1.15.0` | +| `crVersion` | Version of the Operator the Custom Resource belongs to | `1.15.1` | | `ignoreAnnotations` | Operator will not remove following annotations | `[]` | | `ignoreLabels` | Operator will not remove following labels | `[]` | | `pause` | Stop PXC Database safely | `false` | @@ -230,7 +230,7 @@ The chart can be customized using the following configurable parameters: | `proxysql.podSecurityContext` | A custom Kubernetes Security Context for a Pod to be used instead of the default one | `{}` | | | | `logcollector.enabled` | Enable log collector container | `true` | -| `logcollector.image` | Log collector image repository | `percona/percona-xtradb-cluster-operator:1.15.0-logcollector-fluentbit3.1.4` | +| `logcollector.image` | Log collector image repository | `percona/percona-xtradb-cluster-operator:1.15.1-logcollector-fluentbit3.1.4` | | `logcollector.imagePullSecrets` | Log collector pull secret | `[]` | | `logcollector.imagePullPolicy` | The policy used to update images | `` | | `logcollector.configuration` | User defined configuration for logcollector | `` | @@ -254,7 +254,7 @@ The chart can be customized using the following configurable parameters: | `backup.enabled` | Enables backups for PXC cluster | `true` | | `backup.allowParallel` | Allow taking multiple backups in parallel | `true` | | `backup.image.repository` | Backup Container image | `percona/percona-xtradb-cluster-operator` | -| `backup.image.tag` | Backup Container tag | `1.15.0-pxc8.0-backup-pxb8.0.35` | +| `backup.image.tag` | Backup Container tag | `1.15.1-pxc8.0-backup-pxb8.0.35` | | `backup.backoffLimit` | The number of retries to make a backup | `10` | | `backup.imagePullSecrets` | Backup Container pull secret | `[]` | | `backup.imagePullPolicy` | The policy used to update images | `` | diff --git a/charts/pxc-db/values.yaml b/charts/pxc-db/values.yaml index 32c446b6..e710e65f 100644 --- a/charts/pxc-db/values.yaml +++ b/charts/pxc-db/values.yaml @@ -29,7 +29,7 @@ ignoreLabels: [] # - rack pause: false # initContainer: -# image: "percona/percona-xtradb-cluster-operator:1.15.0" +# image: "percona/percona-xtradb-cluster-operator:1.15.1" # resources: # requests: # memory: 100M @@ -529,7 +529,7 @@ proxysql: logcollector: enabled: true - image: percona/percona-xtradb-cluster-operator:1.15.0-logcollector-fluentbit3.1.4 + image: percona/percona-xtradb-cluster-operator:1.15.1-logcollector-fluentbit3.1.4 # imagePullPolicy: Always imagePullSecrets: [] # configuration: | @@ -573,7 +573,7 @@ backup: # allowParallel: true image: repository: percona/percona-xtradb-cluster-operator - tag: 1.15.0-pxc8.0-backup-pxb8.0.35 + tag: 1.15.1-pxc8.0-backup-pxb8.0.35 # backoffLimit: 6 # serviceAccountName: percona-xtradb-cluster-operator # imagePullPolicy: Always