diff --git a/bitnami/clickhouse-operator/CHANGELOG.md b/bitnami/clickhouse-operator/CHANGELOG.md index ddd03ca4f6..1670311bcc 100644 --- a/bitnami/clickhouse-operator/CHANGELOG.md +++ b/bitnami/clickhouse-operator/CHANGELOG.md @@ -1,8 +1,12 @@ # Changelog -## 0.1.8 (2025-05-06) +## 0.2.0 (2025-05-12) -* [bitnami/clickhouse-operator] Release 0.1.8 ([#33470](https://github.com/bitnami/charts/pull/33470)) +* [bitnami/clickhouse-operator] feat: :sparkles: Allow setting IP Families ([#33606](https://github.com/bitnami/charts/pull/33606)) + +## 0.1.8 (2025-05-06) + +* [bitnami/clickhouse-operator] Release 0.1.8 (#33470) ([406dcc6](https://github.com/bitnami/charts/commit/406dcc6bcfa614950ff41cd0f22c1e72fc543f9b)), closes [#33470](https://github.com/bitnami/charts/issues/33470) ## 0.1.7 (2025-05-06) diff --git a/bitnami/clickhouse-operator/Chart.lock b/bitnami/clickhouse-operator/Chart.lock index 5ac319cc9e..39a6170f06 100644 --- a/bitnami/clickhouse-operator/Chart.lock +++ b/bitnami/clickhouse-operator/Chart.lock @@ -1,6 +1,6 @@ dependencies: - name: common repository: oci://registry-1.docker.io/bitnamicharts - version: 2.31.0 -digest: sha256:c4c9af4e0ca23cf2c549e403b2a2bba2c53a3557cee23da09fa4cdf710044c2c -generated: "2025-05-06T09:59:02.257782271+02:00" + version: 2.31.1 +digest: sha256:38d6de6fd62a10417ff51df8b2c5e0cf294de80fe393c4e9f3247ca6433718fa +generated: "2025-05-12T11:38:28.98991273+02:00" diff --git a/bitnami/clickhouse-operator/Chart.yaml b/bitnami/clickhouse-operator/Chart.yaml index 1d4f901f07..88c18f9dac 100644 --- a/bitnami/clickhouse-operator/Chart.yaml +++ b/bitnami/clickhouse-operator/Chart.yaml @@ -38,4 +38,4 @@ name: clickhouse-operator sources: - https://github.com/bitnami/charts/tree/main/bitnami/clickhouse-operator - https://github.com/bitnami/containers/tree/main/bitnami/clickhouse-operator -version: 0.1.8 +version: 0.2.0 diff --git a/bitnami/clickhouse-operator/README.md b/bitnami/clickhouse-operator/README.md index e44f0f3b82..0e12a88225 100644 --- a/bitnami/clickhouse-operator/README.md +++ b/bitnami/clickhouse-operator/README.md @@ -303,6 +303,8 @@ Check the [official quickstart guide](https://docs.altinity.com/altinitykubernet | `auth.existingSecret` | Name of a secret containing the Admin credentials | `""` | | `auth.existingSecretUsernameKey` | Name of the key inside the existing secret containing the Admin username | `""` | | `auth.existingSecretPasswordKey` | Name of the key inside the existing secret containing the Admin password | `""` | +| `ipFamily.enableIpv4` | Enable IPv4 addresses | `true` | +| `ipFamily.enableIpv6` | Enable IPv6 listening | `true` | | `replicaCount` | Number of ClickHouse Operator replicas to deploy | `1` | | `containerPorts.metrics` | ClickHouse Operator Metrics container port | `9999` | | `extraContainerPorts` | Optionally specify extra list of additional ports for ClickHouse Operator containers | `[]` | diff --git a/bitnami/clickhouse-operator/templates/_helpers.tpl b/bitnami/clickhouse-operator/templates/_helpers.tpl index 3edf79042d..9697125e38 100644 --- a/bitnami/clickhouse-operator/templates/_helpers.tpl +++ b/bitnami/clickhouse-operator/templates/_helpers.tpl @@ -175,6 +175,7 @@ Compile all warnings into a single message. {{- define "clickhouse-operator.validateValues" -}} {{- $messages := list -}} {{- $messages := append $messages (include "clickhouse-operator.validateValues.extraVolumes" .) -}} +{{- $messages := append $messages (include "clickhouse-operator.validateValues.ipFamily" .) -}} {{- $messages := without $messages "" -}} {{- $message := join "\n" $messages -}} @@ -193,3 +194,13 @@ clickhouse-operator: missing-extra-volume-mounts the extraVolumeMounts value {{- end -}} {{- end -}} + +{{/* +Validate values of ClickHouse Operator - Incorrect extra volume settings +*/}} +{{- define "clickhouse-operator.validateValues.ipFamily" -}} +{{- if not (or .Values.ipFamily.enableIpv4 .Values.ipFamily.enableIpv6) -}} +clickhouse-operator: missing-ip-families + You did not specify any allowed IP Family, please set at least one of ipFamily.enableIpv4=true or ipFamily.enableIpv6=true +{{- end -}} +{{- end -}} diff --git a/bitnami/clickhouse-operator/templates/chi-configd-configmap.yaml b/bitnami/clickhouse-operator/templates/chi-configd-configmap.yaml index f96a4bc595..2d227ae1e5 100644 --- a/bitnami/clickhouse-operator/templates/chi-configd-configmap.yaml +++ b/bitnami/clickhouse-operator/templates/chi-configd-configmap.yaml @@ -25,8 +25,12 @@ data: # Ref: https://github.com/Altinity/clickhouse-operator/tree/master/deploy/builder/templates-config/chi/config.d 01-clickhouse-01-listen.xml: | - :: + {{- if .Values.ipFamily.enableIpv4 }} 0.0.0.0 + {{- end }} + {{- if .Values.ipFamily.enableIpv6 }} + :: + {{- end }} 1 01-clickhouse-02-logger.xml: | diff --git a/bitnami/clickhouse-operator/templates/chk-configd-configmap.yaml b/bitnami/clickhouse-operator/templates/chk-configd-configmap.yaml index ee26d075ea..a84b329459 100644 --- a/bitnami/clickhouse-operator/templates/chk-configd-configmap.yaml +++ b/bitnami/clickhouse-operator/templates/chk-configd-configmap.yaml @@ -38,8 +38,14 @@ data: /bitnami/clickhouse-keeper 2181 - :: + {{- if .Values.ipFamily.enableIpv4 }} 0.0.0.0 + 0.0.0.0 + {{- end }} + {{- if .Values.ipFamily.enableIpv6 }} + :: + :: + {{- end }} 1 1 diff --git a/bitnami/clickhouse-operator/values.yaml b/bitnami/clickhouse-operator/values.yaml index 5479a38950..beec529888 100644 --- a/bitnami/clickhouse-operator/values.yaml +++ b/bitnami/clickhouse-operator/values.yaml @@ -164,6 +164,11 @@ auth: existingSecret: "" existingSecretUsernameKey: "" existingSecretPasswordKey: "" +## @param ipFamily.enableIpv4 Enable IPv4 addresses +## @param ipFamily.enableIpv6 Enable IPv6 listening +ipFamily: + enableIpv4: true + enableIpv6: true ## @param replicaCount Number of ClickHouse Operator replicas to deploy ## replicaCount: 1