Skip to content
Merged

0.26.2 #1947

Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
42 commits
Select commit Hold shift + click to select a range
6be60d1
0.26.2
sunsingerus Mar 13, 2026
937b904
env: manifests
sunsingerus Mar 13, 2026
6312bd4
env: helm
sunsingerus Mar 13, 2026
1ab7544
Test upgrade with a setting present only in newer version
alex-zaitsev Mar 16, 2026
3fcf51c
Merge remote-tracking branch 'altinity/0.26.1' into 0.26.2
sunsingerus Mar 16, 2026
bfc917e
Test for keeper configuration change
alex-zaitsev Mar 16, 2026
e2e8e16
dev: work on both config and image changes
sunsingerus Mar 16, 2026
9036646
test: robustness
sunsingerus Mar 16, 2026
74aa6cc
Merge remote-tracking branch 'altinity/0.26.1' into 0.26.2
sunsingerus Mar 16, 2026
1467c3d
dev: CHK nodes stuck at 0 replicas after configuration change
sunsingerus Mar 16, 2026
3fabe94
dev: chk upscaling
sunsingerus Mar 17, 2026
69c193f
dev: minor
sunsingerus Mar 17, 2026
660f6d4
dev: namespace lister
sunsingerus Mar 17, 2026
de685c0
dev: skip non-watchjed namespace
sunsingerus Mar 17, 2026
23222db
dev: cache propoer namespaces only
sunsingerus Mar 17, 2026
cf50304
dev: switch ot
sunsingerus Mar 17, 2026
6276b43
dev: cache libs
sunsingerus Mar 17, 2026
ad9bf84
dev: rewrite ot handler
sunsingerus Mar 17, 2026
81ee101
test: poll size
sunsingerus Mar 17, 2026
b1794a3
dev: rework cho deletion protocol
sunsingerus Mar 17, 2026
f0fbcc1
dev: read non-cached items
sunsingerus Mar 18, 2026
d7b6543
dev: cacher
sunsingerus Mar 18, 2026
8a6c552
dev: scale-down + scale-up issue
sunsingerus Mar 18, 2026
c501376
test: enhanse test repeatedness
sunsingerus Mar 18, 2026
21cc765
dev: stabilize labels
sunsingerus Mar 19, 2026
66e3e85
dev: introduce drift detection function
sunsingerus Mar 20, 2026
49ed161
dev: introduce reconciler checker
sunsingerus Mar 20, 2026
0aefe91
dev: use unifued reconciler checker
sunsingerus Mar 20, 2026
f7c15e8
dev: add reconciler checker for cgk
sunsingerus Mar 20, 2026
e9c7a79
dev: adjust chk reconciler
sunsingerus Mar 20, 2026
e5b9996
dev: introduce ci upgrade path
sunsingerus Mar 23, 2026
aaea770
dev: update builder to reflct ci upgrade path
sunsingerus Mar 23, 2026
7aec625
dev: add updated examples into hubs
sunsingerus Mar 23, 2026
cd93440
dev: bump hub kuber version in order to cover warnings
sunsingerus Mar 24, 2026
9ca8bc4
doc: bump min kuber version
sunsingerus Mar 24, 2026
09c6b43
Update keeper default configuration
alex-zaitsev Mar 24, 2026
2632514
dev: keeper options
sunsingerus Mar 24, 2026
6e43698
dev: manifests
sunsingerus Mar 24, 2026
a909ff6
dev: helm chart
sunsingerus Mar 24, 2026
06a8b63
dev: config
sunsingerus Mar 24, 2026
b4c07fb
env: hub manifests
sunsingerus Mar 24, 2026
166d8fa
dev: add commit in the hub builder
sunsingerus Mar 24, 2026
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
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ The Altinity Kubernetes Operator for ClickHouse is a community effort sponsored

## Requirements

* Kubernetes 1.19+
* Kubernetes 1.25+
* ClickHouse 21.11+. For older ClickHouse versions use operator 0.23.7 or earlier.

## Documentation
Expand Down
7 changes: 6 additions & 1 deletion cmd/operator/app/thread_keeper.go
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,11 @@ func initKeeper(ctx context.Context) error {
manager, err = ctrlRuntime.NewManager(ctrlRuntime.GetConfigOrDie(), ctrlRuntime.Options{
Scheme: scheme,
Cache: cache.Options{
Namespaces: []string{chop.Config().GetInformerNamespace()},
// GetCacheNamespaces returns exact namespace names when all configured watch namespaces are
// valid DNS labels, enabling per-namespace cache scoping. Falls back to NamespaceAll when
// any watch namespace is a regexp pattern (the controller's Reconcile guard handles filtering
// in that case).
Namespaces: chop.Config().GetCacheNamespaces(),
},
})
if err != nil {
Expand All @@ -71,6 +75,7 @@ func initKeeper(ctx context.Context) error {
Complete(
&controller.Controller{
Client: manager.GetClient(),
APIReader: manager.GetAPIReader(),
Scheme: manager.GetScheme(),
ExtClient: extClient,
},
Expand Down
1 change: 1 addition & 0 deletions config/chk/keeper_config.d/01-keeper-01-default-config.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
<!-- deploy/builder/templates-config -->
<!-- IMPORTANT -->
<clickhouse>
<asynchronous_metrics_keeper_metrics_only>1</asynchronous_metrics_keeper_metrics_only>
<keeper_server>
<coordination_settings>
<min_session_timeout_ms>10000</min_session_timeout_ms>
Expand Down
5 changes: 3 additions & 2 deletions deploy/builder/operatorhub.sh
Original file line number Diff line number Diff line change
Expand Up @@ -69,9 +69,10 @@ rm "${RBAC_ROLE_RULES_FILE}"
# Insert examples into CVV file
EXAMPLES_FILE="qwe.yaml"
F1="${SRC_ROOT}/docs/chi-examples/01-simple-layout-01-1shard-1repl.yaml"
F2="${SRC_ROOT}/docs/chi-examples/50-CHIT-10-useTemplates-and-use-templates-with-selector.yaml"
F2="${SRC_ROOT}/docs/chi-examples/50-CHIT-02-manual-template-with-selector.yaml"
F3="${SRC_ROOT}/docs/chi-examples/70-chop-config.yaml"
yq -n -I=2 -o=json ".[0] = load(\"${F1}\") | .[1] = load(\"${F2}\") | .[2] = load(\"${F3}\")" > "${EXAMPLES_FILE}"
F4="${SRC_ROOT}/docs/chk-examples/01-simple-1.yaml"
yq -n -I=2 -o=json ".[0] = load(\"${F1}\") | .[1] = load(\"${F2}\") | .[2] = load(\"${F3}\") | .[3] = load(\"${F4}\")" > "${EXAMPLES_FILE}"
yq -i ".metadata.annotations.alm-examples = strload(\"${EXAMPLES_FILE}\")" "${CVV_FILE_TEMPLATE}"
rm "${EXAMPLES_FILE}"

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
<clickhouse>
<asynchronous_metrics_keeper_metrics_only>1</asynchronous_metrics_keeper_metrics_only>
<keeper_server>
<coordination_settings>
<min_session_timeout_ms>10000</min_session_timeout_ms>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ metadata:
"{HERE WILL BE THE EXAMPLES}"
spec:
version: ${OPERATOR_VERSION}
minKubeVersion: 1.12.6
minKubeVersion: 1.25.0
maturity: alpha
replaces: clickhouse-operator.v${PREVIOUS_OPERATOR_VERSION}
maintainers:
Expand Down
4 changes: 2 additions & 2 deletions deploy/helm/clickhouse-operator/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@ description: |-
kubectl apply -f https://github.com/Altinity/clickhouse-operator/raw/master/deploy/helm/clickhouse-operator/crds/CustomResourceDefinition-clickhousekeeperinstallations.clickhouse-keeper.altinity.com.yaml
```
type: application
version: 0.26.1
appVersion: 0.26.1
version: 0.26.2
appVersion: 0.26.2
home: https://github.com/Altinity/clickhouse-operator
icon: https://logosandtypes.com/wp-content/uploads/2020/12/altinity.svg
maintainers:
Expand Down
2 changes: 1 addition & 1 deletion deploy/helm/clickhouse-operator/README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# altinity-clickhouse-operator

![Version: 0.26.1](https://img.shields.io/badge/Version-0.26.1-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square) ![AppVersion: 0.26.1](https://img.shields.io/badge/AppVersion-0.26.1-informational?style=flat-square)
![Version: 0.26.2](https://img.shields.io/badge/Version-0.26.2-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square) ![AppVersion: 0.26.2](https://img.shields.io/badge/AppVersion-0.26.2-informational?style=flat-square)

Helm chart to deploy [altinity-clickhouse-operator](https://github.com/Altinity/clickhouse-operator).

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,14 @@
# SINGULAR=clickhouseinstallation
# PLURAL=clickhouseinstallations
# SHORT=chi
# OPERATOR_VERSION=0.26.1
# OPERATOR_VERSION=0.26.2
#
apiVersion: apiextensions.k8s.io/v1
kind: CustomResourceDefinition
metadata:
name: clickhouseinstallations.clickhouse.altinity.com
labels:
clickhouse.altinity.com/chop: 0.26.1
clickhouse.altinity.com/chop: 0.26.2
spec:
group: clickhouse.altinity.com
scope: Namespaced
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,14 @@
# SINGULAR=clickhouseinstallationtemplate
# PLURAL=clickhouseinstallationtemplates
# SHORT=chit
# OPERATOR_VERSION=0.26.1
# OPERATOR_VERSION=0.26.2
#
apiVersion: apiextensions.k8s.io/v1
kind: CustomResourceDefinition
metadata:
name: clickhouseinstallationtemplates.clickhouse.altinity.com
labels:
clickhouse.altinity.com/chop: 0.26.1
clickhouse.altinity.com/chop: 0.26.2
spec:
group: clickhouse.altinity.com
scope: Namespaced
Expand Down
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
# Template Parameters:
#
# OPERATOR_VERSION=0.26.1
# OPERATOR_VERSION=0.26.2
#
apiVersion: apiextensions.k8s.io/v1
kind: CustomResourceDefinition
metadata:
name: clickhousekeeperinstallations.clickhouse-keeper.altinity.com
labels:
clickhouse-keeper.altinity.com/chop: 0.26.1
clickhouse-keeper.altinity.com/chop: 0.26.2
spec:
group: clickhouse-keeper.altinity.com
scope: Namespaced
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ kind: CustomResourceDefinition
metadata:
name: clickhouseoperatorconfigurations.clickhouse.altinity.com
labels:
clickhouse.altinity.com/chop: 0.26.1
clickhouse.altinity.com/chop: 0.26.2
spec:
group: clickhouse.altinity.com
scope: Namespaced
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@
#
# NAMESPACE=kube-system
# COMMENT=
# OPERATOR_IMAGE=altinity/clickhouse-operator:0.26.1
# OPERATOR_IMAGE=altinity/clickhouse-operator:0.26.2
# OPERATOR_IMAGE_PULL_POLICY=Always
# METRICS_EXPORTER_IMAGE=altinity/metrics-exporter:0.26.1
# METRICS_EXPORTER_IMAGE=altinity/metrics-exporter:0.26.2
# METRICS_EXPORTER_IMAGE_PULL_POLICY=Always
#
# Setup Deployment for clickhouse-operator
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
# Template parameters available:
# NAMESPACE=kube-system
# COMMENT=
# OPERATOR_VERSION=0.26.1
# OPERATOR_VERSION=0.26.2
# CH_USERNAME_SECRET_PLAIN=clickhouse_operator
# CH_PASSWORD_SECRET_PLAIN=clickhouse_operator_password
#
Expand Down
1 change: 1 addition & 0 deletions deploy/helm/clickhouse-operator/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -858,6 +858,7 @@ configs:
<!-- deploy/builder/templates-config -->
<!-- IMPORTANT -->
<clickhouse>
<asynchronous_metrics_keeper_metrics_only>1</asynchronous_metrics_keeper_metrics_only>
<keeper_server>
<coordination_settings>
<min_session_timeout_ms>10000</min_session_timeout_ms>
Expand Down
Loading
Loading