Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[bitnami/clickhouse] Allow change ClickHouse cluster name #29939

Open
wants to merge 4 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 6 additions & 2 deletions bitnami/clickhouse/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,12 @@
# Changelog

## 6.2.29 (2024-10-18)
## 6.3.0 (2024-10-18)

* [bitnami/clickhouse] Release 6.2.29 ([#29983](https://github.com/bitnami/charts/pull/29983))
* [bitnami/clickhouse] Allow change ClickHouse cluster name ([#29939](https://github.com/bitnami/charts/pull/29939))

## <small>6.2.29 (2024-10-18)</small>

* [bitnami/clickhouse] Release 6.2.29 (#29983) ([18b931a](https://github.com/bitnami/charts/commit/18b931a3de20a84725be0fa01d282e8bb2344bc1)), closes [#29983](https://github.com/bitnami/charts/issues/29983)

## <small>6.2.28 (2024-10-17)</small>

Expand Down
2 changes: 1 addition & 1 deletion bitnami/clickhouse/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -35,4 +35,4 @@ maintainers:
name: clickhouse
sources:
- https://github.com/bitnami/charts/tree/main/bitnami/clickhouse
version: 6.2.29
version: 6.3.0
1 change: 1 addition & 0 deletions bitnami/clickhouse/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -284,6 +284,7 @@ The [Bitnami ClickHouse](https://github.com/bitnami/containers/tree/main/bitnami
| `image.pullPolicy` | ClickHouse image pull policy | `IfNotPresent` |
| `image.pullSecrets` | ClickHouse image pull secrets | `[]` |
| `image.debug` | Enable ClickHouse image debug mode | `false` |
| `clusterName` | ClickHouse cluster name | `default` |
| `shards` | Number of ClickHouse shards to deploy | `2` |
| `replicaCount` | Number of ClickHouse replicas per shard to deploy | `3` |
| `distributeReplicasByZone` | Schedules replicas of the same shard to different availability zones | `false` |
Expand Down
7 changes: 5 additions & 2 deletions bitnami/clickhouse/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -105,6 +105,9 @@ image:
## Enable debug mode
##
debug: false
## @param clusterName ClickHouse cluster name
##
clusterName: default
## @param shards Number of ClickHouse shards to deploy
##
shards: 2
Expand Down Expand Up @@ -286,7 +289,7 @@ defaultConfigurationOverrides: |
{{- if or (ne (int .Values.shards) 1) (ne (int .Values.replicaCount) 1)}}
<!-- Cluster configuration - Any update of the shards and replicas requires helm upgrade -->
<remote_servers>
<default>
<{{ .Values.clusterName }}>
{{- $shards := $.Values.shards | int }}
{{- range $shard, $e := until $shards }}
<shard>
Expand All @@ -301,7 +304,7 @@ defaultConfigurationOverrides: |
{{- end }}
</shard>
{{- end }}
</default>
</{{ .Values.clusterName }}>
</remote_servers>
{{- end }}
{{- if .Values.keeper.enabled }}
Expand Down
Loading