Skip to content

Commit 2ed803c

Browse files
authored
Merge pull request #1787 from Altinity/0.25.3
0.25.3
2 parents 4df607e + 0f6f28f commit 2ed803c

File tree

120 files changed

+15323
-1697
lines changed

Some content is hidden

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

120 files changed

+15323
-1697
lines changed

.github/workflows/release_chart.yaml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,13 @@ jobs:
2828
- name: Package Chart
2929
run: cr package deploy/helm/clickhouse-operator
3030

31+
- name: Install Helm
32+
run: |
33+
curl https://raw.githubusercontent.com/helm/helm/main/scripts/get-helm-3 | bash
34+
35+
- name: Login to GitHub Container Registry
36+
run: echo "${{ secrets.GITHUB_TOKEN }}" | helm registry login ghcr.io -u ${{ github.actor }} --password-stdin
37+
3138
- name: Get Release Assets
3239
id: get_assets
3340
run: |
@@ -55,10 +62,12 @@ jobs:
5562
-H "Content-Type: application/gzip" \
5663
-T "${CHART_PATH}" \
5764
"https://uploads.github.com/repos/${GITHUB_REPOSITORY}/releases/${{ github.event.release.id }}/assets?name=$(basename ${CHART_PATH})"
65+
5866
- name: Configure Git
5967
run: |
6068
git config user.name "$GITHUB_ACTOR"
6169
git config user.email "[email protected]"
70+
6271
- name: Release Chart
6372
run: |
6473
git remote add httpsorigin "https://github.com/${GITHUB_REPOSITORY}.git"
@@ -71,3 +80,8 @@ jobs:
7180
--index-path=index.yaml \
7281
--remote=httpsorigin \
7382
--push
83+
84+
- name: Push Helm Chart to OCI Registry
85+
run: |
86+
CHART_PATH=$(ls .cr-release-packages/altinity-clickhouse-operator-*.tgz)
87+
helm push "${CHART_PATH}" oci://ghcr.io/altinity/clickhouse-operator-helm-chart

config/config.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -276,8 +276,8 @@ template:
276276
chi:
277277
# CHI template updates handling policy
278278
# Possible policy values:
279-
# - ReadOnStart. Accept CHIT updates on the operators start only.
280-
# - ApplyOnNextReconcile. Accept CHIT updates at all time. Apply news CHITs on next regular reconcile of the CHI
279+
# - ReadOnStart. Accept CHIT updates on the operator's start only.
280+
# - ApplyOnNextReconcile. Accept CHIT updates at all time. Apply new CHITs on next regular reconcile of the CHI
281281
policy: ApplyOnNextReconcile
282282

283283
# Path to the folder where ClickHouseInstallation templates .yaml manifests are located.
@@ -288,7 +288,7 @@ template:
288288
# CHK template updates handling policy
289289
# Possible policy values:
290290
# - ReadOnStart. Accept CHIT updates on the operators start only.
291-
# - ApplyOnNextReconcile. Accept CHIT updates at all time. Apply news CHITs on next regular reconcile of the CHI
291+
# - ApplyOnNextReconcile. Accept CHIT updates at all time. Apply new CHITs on next regular reconcile of the CHI
292292
policy: ApplyOnNextReconcile
293293

294294
# Path to the folder where ClickHouseInstallation templates .yaml manifests are located.

deploy/builder/templates-config/config.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -270,8 +270,8 @@ template:
270270
chi:
271271
# CHI template updates handling policy
272272
# Possible policy values:
273-
# - ReadOnStart. Accept CHIT updates on the operators start only.
274-
# - ApplyOnNextReconcile. Accept CHIT updates at all time. Apply news CHITs on next regular reconcile of the CHI
273+
# - ReadOnStart. Accept CHIT updates on the operator's start only.
274+
# - ApplyOnNextReconcile. Accept CHIT updates at all time. Apply new CHITs on next regular reconcile of the CHI
275275
policy: ApplyOnNextReconcile
276276

277277
# Path to the folder where ClickHouseInstallation templates .yaml manifests are located.
@@ -282,7 +282,7 @@ template:
282282
# CHK template updates handling policy
283283
# Possible policy values:
284284
# - ReadOnStart. Accept CHIT updates on the operators start only.
285-
# - ApplyOnNextReconcile. Accept CHIT updates at all time. Apply news CHITs on next regular reconcile of the CHI
285+
# - ApplyOnNextReconcile. Accept CHIT updates at all time. Apply new CHITs on next regular reconcile of the CHI
286286
policy: ApplyOnNextReconcile
287287

288288
# Path to the folder where ClickHouseInstallation templates .yaml manifests are located.

deploy/builder/templates-install-bundle/clickhouse-operator-install-yaml-template-01-section-crd-01-chi-chit.yaml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -799,6 +799,15 @@ spec:
799799
required:
800800
- name
801801
- key
802+
pdbManaged:
803+
<<: *TypeStringBool
804+
description: |
805+
Specifies whether the Pod Disruption Budget (PDB) should be managed.
806+
During the next installation, if PDB management is enabled, the operator will
807+
attempt to retrieve any existing PDB. If none is found, it will create a new one
808+
and initiate a reconciliation loop. If PDB management is disabled, the existing PDB
809+
will remain intact, and the reconciliation loop will not be executed. By default,
810+
PDB management is enabled.
802811
pdbMaxUnavailable:
803812
type: integer
804813
description: |

deploy/builder/templates-install-bundle/clickhouse-operator-install-yaml-template-01-section-crd-03-chk.yaml

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -528,6 +528,23 @@ spec:
528528
description: |
529529
optional, allows define content of any setting file inside each `Pod` on current cluster during generate `ConfigMap` which will mount in `/etc/clickhouse-server/config.d/` or `/etc/clickhouse-server/conf.d/` or `/etc/clickhouse-server/users.d/`
530530
override top-level `chi.spec.configuration.files`
531+
pdbManaged:
532+
<<: *TypeStringBool
533+
description: |
534+
Specifies whether the Pod Disruption Budget (PDB) should be managed.
535+
During the next installation, if PDB management is enabled, the operator will
536+
attempt to retrieve any existing PDB. If none is found, it will create a new one
537+
and initiate a reconciliation loop. If PDB management is disabled, the existing PDB
538+
will remain intact, and the reconciliation loop will not be executed. By default,
539+
PDB management is enabled.
540+
pdbMaxUnavailable:
541+
type: integer
542+
description: |
543+
Pod eviction is allowed if at most "pdbMaxUnavailable" pods are unavailable after the eviction,
544+
i.e. even in absence of the evicted pod. For example, one can prevent all voluntary evictions
545+
by specifying 0. This is a mutually exclusive setting with "minAvailable".
546+
minimum: 0
547+
maximum: 65535
531548
templates:
532549
<<: *TypeTemplateNames
533550
description: |

deploy/builder/templates-install-bundle/clickhouse-operator-install-yaml-template-04-section-deployment-01-no-configmap.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ spec:
8989
resource: limits.memory
9090
ports:
9191
- containerPort: 9999
92-
name: metrics
92+
name: op-metrics
9393

9494
- name: metrics-exporter
9595
image: ${METRICS_EXPORTER_IMAGE}
@@ -146,4 +146,4 @@ spec:
146146
resource: limits.memory
147147
ports:
148148
- containerPort: 8888
149-
name: metrics
149+
name: ch-metrics

deploy/builder/templates-install-bundle/clickhouse-operator-install-yaml-template-04-section-deployment-01-with-configmap.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,7 @@ spec:
136136
resource: limits.memory
137137
ports:
138138
- containerPort: 9999
139-
name: metrics
139+
name: op-metrics
140140

141141
- name: metrics-exporter
142142
image: ${METRICS_EXPORTER_IMAGE}
@@ -212,4 +212,4 @@ spec:
212212
resource: limits.memory
213213
ports:
214214
- containerPort: 8888
215-
name: metrics
215+
name: ch-metrics

deploy/builder/templates-install-bundle/clickhouse-operator-install-yaml-template-05-section-service-metrics.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,8 @@ metadata:
1919
spec:
2020
ports:
2121
- port: 8888
22-
name: clickhouse-metrics
22+
name: ch-metrics
2323
- port: 9999
24-
name: operator-metrics
24+
name: op-metrics
2525
selector:
2626
app: clickhouse-operator

deploy/helm/clickhouse-operator/Chart.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,8 @@ description: |-
1313
kubectl apply -f https://github.com/Altinity/clickhouse-operator/raw/master/deploy/helm/clickhouse-operator/crds/CustomResourceDefinition-clickhousekeeperinstallations.clickhouse-keeper.altinity.com.yaml
1414
```
1515
type: application
16-
version: 0.25.2
17-
appVersion: 0.25.2
16+
version: 0.25.3
17+
appVersion: 0.25.3
1818
home: https://github.com/Altinity/clickhouse-operator
1919
icon: https://logosandtypes.com/wp-content/uploads/2020/12/altinity.svg
2020
maintainers:

deploy/helm/clickhouse-operator/README.md

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

3-
![Version: 0.25.2](https://img.shields.io/badge/Version-0.25.2-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square) ![AppVersion: 0.25.2](https://img.shields.io/badge/AppVersion-0.25.2-informational?style=flat-square)
3+
![Version: 0.25.3](https://img.shields.io/badge/Version-0.25.3-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square) ![AppVersion: 0.25.3](https://img.shields.io/badge/AppVersion-0.25.3-informational?style=flat-square)
44

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

@@ -52,6 +52,7 @@ For upgrade please install CRDs separately:
5252
| operator.image.pullPolicy | string | `"IfNotPresent"` | image pull policy |
5353
| operator.image.repository | string | `"altinity/clickhouse-operator"` | image repository |
5454
| operator.image.tag | string | `""` | image tag (chart's appVersion value will be used if not set) |
55+
| operator.priorityClassName | string | "" | priority class name for the clickhouse-operator deployment, check `kubectl explain pod.spec.priorityClassName` for details |
5556
| operator.resources | object | `{}` | custom resource configuration, check `kubectl explain pod.spec.containers.resources` for details |
5657
| podAnnotations | object | check the `values.yaml` file | annotations to add to the clickhouse-operator pod, check `kubectl explain pod.spec.annotations` for details |
5758
| podLabels | object | `{}` | labels to add to the clickhouse-operator pod |

0 commit comments

Comments
 (0)