Skip to content

Commit

Permalink
Merge pull request #1292 from Altinity/0.22.2
Browse files Browse the repository at this point in the history
0.22.2 to master
  • Loading branch information
sunsingerus committed Dec 14, 2023
2 parents 111d7ef + c02531f commit b0dc549
Show file tree
Hide file tree
Showing 27 changed files with 4,626 additions and 139 deletions.
1 change: 1 addition & 0 deletions config/config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,7 @@ clickhouse:

- zookeeper/*: "yes"

- files/*.xml: "yes"
- files/config.d/*.xml: "yes"
- files/config.d/*dict*.xml: "no"

Expand Down
2 changes: 2 additions & 0 deletions config/users.d/02-clickhouse-default-profile.xml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@
<parallel_view_processing>1</parallel_view_processing>
<do_not_merge_across_partitions_select_final>1</do_not_merge_across_partitions_select_final>
<load_balancing>nearest_hostname</load_balancing>
<prefer_localhost_replica>0</prefer_localhost_replica>
<!-- materialize_ttl_recalculate_only>1</materialize_ttl_recalculate_only> 21.10 and above -->
</default>
</profiles>
</yandex>
1 change: 1 addition & 0 deletions deploy/builder/templates-config/config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,7 @@ clickhouse:

- zookeeper/*: "yes"

- files/*.xml: "yes"
- files/config.d/*.xml: "yes"
- files/config.d/*dict*.xml: "no"

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@
<parallel_view_processing>1</parallel_view_processing>
<do_not_merge_across_partitions_select_final>1</do_not_merge_across_partitions_select_final>
<load_balancing>nearest_hostname</load_balancing>
<prefer_localhost_replica>0</prefer_localhost_replica>
<!-- materialize_ttl_recalculate_only>1</materialize_ttl_recalculate_only> 21.10 and above -->
</default>
</profiles>
</yandex>
4 changes: 2 additions & 2 deletions deploy/helm/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@ description: |-
kubectl apply -f https://github.com/Altinity/clickhouse-operator/raw/master/deploy/helm/crds/CustomResourceDefinition-clickhouseoperatorconfigurations.clickhouse.altinity.com.yaml
```
type: application
version: 0.22.1
appVersion: 0.22.1
version: 0.22.2
appVersion: 0.22.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/README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# altinity-clickhouse-operator

![Version: 0.22.1](https://img.shields.io/badge/Version-0.22.1-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square) ![AppVersion: 0.22.1](https://img.shields.io/badge/AppVersion-0.22.1-informational?style=flat-square)
![Version: 0.22.2](https://img.shields.io/badge/Version-0.22.2-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square) ![AppVersion: 0.22.2](https://img.shields.io/badge/AppVersion-0.22.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.22.1
# OPERATOR_VERSION=0.22.2
#
apiVersion: apiextensions.k8s.io/v1
kind: CustomResourceDefinition
metadata:
name: clickhouseinstallations.clickhouse.altinity.com
labels:
clickhouse.altinity.com/chop: 0.22.1
clickhouse.altinity.com/chop: 0.22.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.22.1
# OPERATOR_VERSION=0.22.2
#
apiVersion: apiextensions.k8s.io/v1
kind: CustomResourceDefinition
metadata:
name: clickhouseinstallationtemplates.clickhouse.altinity.com
labels:
clickhouse.altinity.com/chop: 0.22.1
clickhouse.altinity.com/chop: 0.22.2
spec:
group: clickhouse.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.22.1
clickhouse.altinity.com/chop: 0.22.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.22.1
# OPERATOR_IMAGE=altinity/clickhouse-operator:0.22.2
# OPERATOR_IMAGE_PULL_POLICY=Always
# METRICS_EXPORTER_IMAGE=altinity/metrics-exporter:0.22.1
# METRICS_EXPORTER_IMAGE=altinity/metrics-exporter:0.22.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.22.1
# OPERATOR_VERSION=0.22.2
# CH_USERNAME_SECRET_PLAIN=clickhouse_operator
# CH_PASSWORD_SECRET_PLAIN=clickhouse_operator_password
#
Expand Down
5 changes: 3 additions & 2 deletions deploy/helm/templates/servicemonitor.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
apiVersion: monitoring.coreos.com/v1
kind: ServiceMonitor
metadata:
name: {{ include "altinity-clickhouse-operator.fullname" . }}
name: {{ printf "%s-clickhouse-metrics" (include "altinity-clickhouse-operator.fullname" .) }}
namespace: {{ .Release.Namespace }}
labels:
{{- include "altinity-clickhouse-operator.labels" . | nindent 4 }}
Expand All @@ -11,7 +11,8 @@ metadata:
{{- end }}
spec:
endpoints:
- port: clickhouse-operator-metrics
- port: clickhouse-metrics # 8888
- port: operator-metrics # 9999
selector:
matchLabels:
{{- include "altinity-clickhouse-operator.selectorLabels" . | nindent 6 }}
Expand Down
45 changes: 24 additions & 21 deletions deploy/operator/clickhouse-operator-install-ansible.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,14 +11,14 @@
# SINGULAR=clickhouseinstallation
# PLURAL=clickhouseinstallations
# SHORT=chi
# OPERATOR_VERSION=0.22.1
# OPERATOR_VERSION=0.22.2
#
apiVersion: apiextensions.k8s.io/v1
kind: CustomResourceDefinition
metadata:
name: clickhouseinstallations.clickhouse.altinity.com
labels:
clickhouse.altinity.com/chop: 0.22.1
clickhouse.altinity.com/chop: 0.22.2
spec:
group: clickhouse.altinity.com
scope: Namespaced
Expand Down Expand Up @@ -1211,14 +1211,14 @@ spec:
# SINGULAR=clickhouseinstallationtemplate
# PLURAL=clickhouseinstallationtemplates
# SHORT=chit
# OPERATOR_VERSION=0.22.1
# OPERATOR_VERSION=0.22.2
#
apiVersion: apiextensions.k8s.io/v1
kind: CustomResourceDefinition
metadata:
name: clickhouseinstallationtemplates.clickhouse.altinity.com
labels:
clickhouse.altinity.com/chop: 0.22.1
clickhouse.altinity.com/chop: 0.22.2
spec:
group: clickhouse.altinity.com
scope: Namespaced
Expand Down Expand Up @@ -2414,7 +2414,7 @@ kind: CustomResourceDefinition
metadata:
name: clickhouseoperatorconfigurations.clickhouse.altinity.com
labels:
clickhouse.altinity.com/chop: 0.22.1
clickhouse.altinity.com/chop: 0.22.2
spec:
group: clickhouse.altinity.com
scope: Namespaced
Expand Down Expand Up @@ -2829,7 +2829,7 @@ metadata:
name: clickhouse-operator
namespace: {{ namespace }}
labels:
clickhouse.altinity.com/chop: 0.22.1
clickhouse.altinity.com/chop: 0.22.2
---
# Template Parameters:
#
Expand All @@ -2846,7 +2846,7 @@ metadata:
name: clickhouse-operator
namespace: {{ namespace }}
labels:
clickhouse.altinity.com/chop: 0.22.1
clickhouse.altinity.com/chop: 0.22.2
rules:
- apiGroups:
- ""
Expand Down Expand Up @@ -3004,7 +3004,7 @@ metadata:
name: clickhouse-operator
namespace: {{ namespace }}
labels:
clickhouse.altinity.com/chop: 0.22.1
clickhouse.altinity.com/chop: 0.22.2
roleRef:
apiGroup: rbac.authorization.k8s.io
kind: Role
Expand All @@ -3026,7 +3026,7 @@ metadata:
name: etc-clickhouse-operator-files
namespace: {{ namespace }}
labels:
clickhouse.altinity.com/chop: 0.22.1
clickhouse.altinity.com/chop: 0.22.2
app: clickhouse-operator
data:
config.yaml: |
Expand Down Expand Up @@ -3138,6 +3138,7 @@ data:
- zookeeper/*: "yes"
- files/*.xml: "yes"
- files/config.d/*.xml: "yes"
- files/config.d/*dict*.xml: "no"
Expand Down Expand Up @@ -3381,7 +3382,7 @@ metadata:
name: etc-clickhouse-operator-confd-files
namespace: {{ namespace }}
labels:
clickhouse.altinity.com/chop: 0.22.1
clickhouse.altinity.com/chop: 0.22.2
app: clickhouse-operator
data:
---
Expand All @@ -3397,7 +3398,7 @@ metadata:
name: etc-clickhouse-operator-configd-files
namespace: {{ namespace }}
labels:
clickhouse.altinity.com/chop: 0.22.1
clickhouse.altinity.com/chop: 0.22.2
app: clickhouse-operator
data:
01-clickhouse-01-listen.xml: |
Expand Down Expand Up @@ -3496,7 +3497,7 @@ metadata:
name: etc-clickhouse-operator-templatesd-files
namespace: {{ namespace }}
labels:
clickhouse.altinity.com/chop: 0.22.1
clickhouse.altinity.com/chop: 0.22.2
app: clickhouse-operator
data:
001-templates.json.example: |
Expand Down Expand Up @@ -3596,7 +3597,7 @@ metadata:
name: etc-clickhouse-operator-usersd-files
namespace: {{ namespace }}
labels:
clickhouse.altinity.com/chop: 0.22.1
clickhouse.altinity.com/chop: 0.22.2
app: clickhouse-operator
data:
01-clickhouse-operator-profile.xml: |
Expand Down Expand Up @@ -3641,6 +3642,8 @@ data:
<parallel_view_processing>1</parallel_view_processing>
<do_not_merge_across_partitions_select_final>1</do_not_merge_across_partitions_select_final>
<load_balancing>nearest_hostname</load_balancing>
<prefer_localhost_replica>0</prefer_localhost_replica>
<!-- materialize_ttl_recalculate_only>1</materialize_ttl_recalculate_only> 21.10 and above -->
</default>
</profiles>
</yandex>
Expand All @@ -3649,7 +3652,7 @@ data:
# Template parameters available:
# NAMESPACE={{ namespace }}
# COMMENT=
# OPERATOR_VERSION=0.22.1
# OPERATOR_VERSION=0.22.2
# CH_USERNAME_SECRET_PLAIN=clickhouse_operator
# CH_PASSWORD_SECRET_PLAIN={{ password }}
#
Expand All @@ -3659,7 +3662,7 @@ metadata:
name: clickhouse-operator
namespace: {{ namespace }}
labels:
clickhouse.altinity.com/chop: 0.22.1
clickhouse.altinity.com/chop: 0.22.2
app: clickhouse-operator
type: Opaque
stringData:
Expand All @@ -3670,9 +3673,9 @@ stringData:
#
# NAMESPACE={{ namespace }}
# COMMENT=
# OPERATOR_IMAGE=altinity/clickhouse-operator:0.22.1
# OPERATOR_IMAGE=altinity/clickhouse-operator:0.22.2
# OPERATOR_IMAGE_PULL_POLICY=Always
# METRICS_EXPORTER_IMAGE=altinity/metrics-exporter:0.22.1
# METRICS_EXPORTER_IMAGE=altinity/metrics-exporter:0.22.2
# METRICS_EXPORTER_IMAGE_PULL_POLICY=Always
#
# Setup Deployment for clickhouse-operator
Expand All @@ -3683,7 +3686,7 @@ metadata:
name: clickhouse-operator
namespace: {{ namespace }}
labels:
clickhouse.altinity.com/chop: 0.22.1
clickhouse.altinity.com/chop: 0.22.2
app: clickhouse-operator
spec:
replicas: 1
Expand Down Expand Up @@ -3719,7 +3722,7 @@ spec:
name: etc-clickhouse-operator-usersd-files
containers:
- name: clickhouse-operator
image: altinity/clickhouse-operator:0.22.1
image: altinity/clickhouse-operator:0.22.2
imagePullPolicy: Always
volumeMounts:
- name: etc-clickhouse-operator-folder
Expand Down Expand Up @@ -3787,7 +3790,7 @@ spec:
name: metrics

- name: metrics-exporter
image: altinity/metrics-exporter:0.22.1
image: altinity/metrics-exporter:0.22.2
imagePullPolicy: Always
volumeMounts:
- name: etc-clickhouse-operator-folder
Expand Down Expand Up @@ -3870,7 +3873,7 @@ metadata:
name: clickhouse-operator-metrics
namespace: {{ namespace }}
labels:
clickhouse.altinity.com/chop: 0.22.1
clickhouse.altinity.com/chop: 0.22.2
app: clickhouse-operator
spec:
ports:
Expand Down
Loading

0 comments on commit b0dc549

Please sign in to comment.