Skip to content

Commit a5bdabc

Browse files
authored
Merge pull request #1947 from Altinity/0.26.2
0.26.2
2 parents 8292064 + 166d8fa commit a5bdabc

File tree

54 files changed

+6809
-249
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

54 files changed

+6809
-249
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ The Altinity Kubernetes Operator for ClickHouse is a community effort sponsored
3434

3535
## Requirements
3636

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

4040
## Documentation

cmd/operator/app/thread_keeper.go

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,11 @@ func initKeeper(ctx context.Context) error {
4949
manager, err = ctrlRuntime.NewManager(ctrlRuntime.GetConfigOrDie(), ctrlRuntime.Options{
5050
Scheme: scheme,
5151
Cache: cache.Options{
52-
Namespaces: []string{chop.Config().GetInformerNamespace()},
52+
// GetCacheNamespaces returns exact namespace names when all configured watch namespaces are
53+
// valid DNS labels, enabling per-namespace cache scoping. Falls back to NamespaceAll when
54+
// any watch namespace is a regexp pattern (the controller's Reconcile guard handles filtering
55+
// in that case).
56+
Namespaces: chop.Config().GetCacheNamespaces(),
5357
},
5458
})
5559
if err != nil {
@@ -71,6 +75,7 @@ func initKeeper(ctx context.Context) error {
7175
Complete(
7276
&controller.Controller{
7377
Client: manager.GetClient(),
78+
APIReader: manager.GetAPIReader(),
7479
Scheme: manager.GetScheme(),
7580
ExtClient: extClient,
7681
},

config/chk/keeper_config.d/01-keeper-01-default-config.xml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
<!-- deploy/builder/templates-config -->
66
<!-- IMPORTANT -->
77
<clickhouse>
8+
<asynchronous_metrics_keeper_metrics_only>1</asynchronous_metrics_keeper_metrics_only>
89
<keeper_server>
910
<coordination_settings>
1011
<min_session_timeout_ms>10000</min_session_timeout_ms>

deploy/builder/operatorhub.sh

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -69,9 +69,10 @@ rm "${RBAC_ROLE_RULES_FILE}"
6969
# Insert examples into CVV file
7070
EXAMPLES_FILE="qwe.yaml"
7171
F1="${SRC_ROOT}/docs/chi-examples/01-simple-layout-01-1shard-1repl.yaml"
72-
F2="${SRC_ROOT}/docs/chi-examples/50-CHIT-10-useTemplates-and-use-templates-with-selector.yaml"
72+
F2="${SRC_ROOT}/docs/chi-examples/50-CHIT-02-manual-template-with-selector.yaml"
7373
F3="${SRC_ROOT}/docs/chi-examples/70-chop-config.yaml"
74-
yq -n -I=2 -o=json ".[0] = load(\"${F1}\") | .[1] = load(\"${F2}\") | .[2] = load(\"${F3}\")" > "${EXAMPLES_FILE}"
74+
F4="${SRC_ROOT}/docs/chk-examples/01-simple-1.yaml"
75+
yq -n -I=2 -o=json ".[0] = load(\"${F1}\") | .[1] = load(\"${F2}\") | .[2] = load(\"${F3}\") | .[3] = load(\"${F4}\")" > "${EXAMPLES_FILE}"
7576
yq -i ".metadata.annotations.alm-examples = strload(\"${EXAMPLES_FILE}\")" "${CVV_FILE_TEMPLATE}"
7677
rm "${EXAMPLES_FILE}"
7778

deploy/builder/templates-config/chk/keeper_config.d/01-keeper-01-default-config.xml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
<clickhouse>
2+
<asynchronous_metrics_keeper_metrics_only>1</asynchronous_metrics_keeper_metrics_only>
23
<keeper_server>
34
<coordination_settings>
45
<min_session_timeout_ms>10000</min_session_timeout_ms>

deploy/builder/templates-operatorhub/clickhouse-operator.vVERSION.clusterserviceversion-template.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ metadata:
2323
"{HERE WILL BE THE EXAMPLES}"
2424
spec:
2525
version: ${OPERATOR_VERSION}
26-
minKubeVersion: 1.12.6
26+
minKubeVersion: 1.25.0
2727
maturity: alpha
2828
replaces: clickhouse-operator.v${PREVIOUS_OPERATOR_VERSION}
2929
maintainers:

deploy/helm/clickhouse-operator/Chart.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,8 @@ description: |-
1717
kubectl apply -f https://github.com/Altinity/clickhouse-operator/raw/master/deploy/helm/clickhouse-operator/crds/CustomResourceDefinition-clickhousekeeperinstallations.clickhouse-keeper.altinity.com.yaml
1818
```
1919
type: application
20-
version: 0.26.1
21-
appVersion: 0.26.1
20+
version: 0.26.2
21+
appVersion: 0.26.2
2222
home: https://github.com/Altinity/clickhouse-operator
2323
icon: https://logosandtypes.com/wp-content/uploads/2020/12/altinity.svg
2424
maintainers:

deploy/helm/clickhouse-operator/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# altinity-clickhouse-operator
22

3-
![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)
3+
![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)
44

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

deploy/helm/clickhouse-operator/crds/CustomResourceDefinition-clickhouseinstallations.clickhouse.altinity.com.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,14 +4,14 @@
44
# SINGULAR=clickhouseinstallation
55
# PLURAL=clickhouseinstallations
66
# SHORT=chi
7-
# OPERATOR_VERSION=0.26.1
7+
# OPERATOR_VERSION=0.26.2
88
#
99
apiVersion: apiextensions.k8s.io/v1
1010
kind: CustomResourceDefinition
1111
metadata:
1212
name: clickhouseinstallations.clickhouse.altinity.com
1313
labels:
14-
clickhouse.altinity.com/chop: 0.26.1
14+
clickhouse.altinity.com/chop: 0.26.2
1515
spec:
1616
group: clickhouse.altinity.com
1717
scope: Namespaced

deploy/helm/clickhouse-operator/crds/CustomResourceDefinition-clickhouseinstallationtemplates.clickhouse.altinity.com.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,14 +4,14 @@
44
# SINGULAR=clickhouseinstallationtemplate
55
# PLURAL=clickhouseinstallationtemplates
66
# SHORT=chit
7-
# OPERATOR_VERSION=0.26.1
7+
# OPERATOR_VERSION=0.26.2
88
#
99
apiVersion: apiextensions.k8s.io/v1
1010
kind: CustomResourceDefinition
1111
metadata:
1212
name: clickhouseinstallationtemplates.clickhouse.altinity.com
1313
labels:
14-
clickhouse.altinity.com/chop: 0.26.1
14+
clickhouse.altinity.com/chop: 0.26.2
1515
spec:
1616
group: clickhouse.altinity.com
1717
scope: Namespaced

0 commit comments

Comments
 (0)