From 8799e7c31fe98ebff3f308f6dd6e432ee3f4b614 Mon Sep 17 00:00:00 2001 From: yandongxiao Date: Tue, 5 Mar 2024 10:54:13 +0800 Subject: [PATCH] [Chore] change related fields to release v1.9.3 (#460) Signed-off-by: yandongxiao --- CHANGELOG.md | 36 +++++- deploy/operator.yaml | 18 +-- doc/api.md | 19 ++- helm-charts/charts/kube-starrocks/Chart.yaml | 2 +- .../kube-starrocks/charts/operator/Chart.yaml | 4 +- .../charts/operator/values.yaml | 2 +- .../charts/starrocks/Chart.yaml | 2 +- .../charts/starrocks/values.yaml | 2 +- helm-charts/charts/kube-starrocks/values.yaml | 4 +- helm-charts/charts/warehouse/Chart.yaml | 2 +- index.yaml | 109 +++++++++++++++++- 11 files changed, 172 insertions(+), 28 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 926c2799..6951763c 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,38 @@ # CHANGELOG +## [v1.9.3](https://github.com/StarRocks/starrocks-kubernetes-operator/releases/tag/v1.9.3) + +Release Notes for starrocks-kubernetes-operator v1.9.3 + +We are excited to announce the release of StarRocks Kubernetes Operator v1.9.3. This version brings a mix of +enhancements and bug fixes to further improve the deployment and management of StarRocks clusters on Kubernetes +environments. + +### Enhancements + +- [Operator] Enhanced Lifecycle Management: Users can now define postStart and preStop lifecycle hooks for + StarRocksCluster, enabling more control over the cluster's lifecycle events. + PR [#456](https://github.com/StarRocks/starrocks-kubernetes-operator/pull/456) +- [Operator] HostPath Support: This version introduces support for hostPath, allowing users to mount local directories + to the StarRocksCluster. PR [#451](https://github.com/StarRocks/starrocks-kubernetes-operator/pull/451) +- [Chart] Scoped Permissions: The operator's permissions can now be restricted to a single namespace, enhancing security + by limiting the operator's scope to deploying StarRocks within a designated namespace. + PR [#446](https://github.com/StarRocks/starrocks-kubernetes-operator/pull/446) +- [Chart] Init-Password Job Enhancements: Support for annotations and specifying the image field for the init-password + job has been added, allowing for greater customization. + PR [#454](https://github.com/StarRocks/starrocks-kubernetes-operator/pull/454) +- [Operator] Configuration Flexibility: The operator now supports be_http_port and be_port in the configuration. + PR [#450](https://github.com/StarRocks/starrocks-kubernetes-operator/pull/450) + +### Bug Fixes + +- [Operator] HPA Deletion Issue Resolved: A bug where the Horizontal Pod Autoscaler (HPA) was not properly deleted when + the autoScalingPolicy field was removed has been fixed, ensuring clean and accurate scaling operations. + PR [#444](https://github.com/StarRocks/starrocks-kubernetes-operator/pull/444) +- [Chart] Init-Password Job Port Configuration: The query port can now be configured in the init-password job, + addressing previous limitations and enhancing setup flexibility. + PR [#455](https://github.com/StarRocks/starrocks-kubernetes-operator/pull/455) + ## [v1.9.2](https://github.com/StarRocks/starrocks-kubernetes-operator/releases/tag/v1.9.2) Release Notes for starrocks-kubernetes-operator v1.9.2 @@ -12,7 +45,8 @@ StarRocks clusters on Kubernetes environments. - **[chart]** Add Datadog profiling to SR Helm to enhance monitoring capabilities. [#437](https://github.com/StarRocks/starrocks-kubernetes-operator/pull/437) -- **[chart]** Add `starrocksCluster.componentValues` to define some values uniformly to streamline configurations. [#425](https://github.com/StarRocks/starrocks-kubernetes-operator/pull/425) +- **[chart]** Add `starrocksCluster.componentValues` to define some values uniformly to streamline + configurations. [#425](https://github.com/StarRocks/starrocks-kubernetes-operator/pull/425) - **[operator]** Add k8s event information during the Operator reconciliation for better debugging and operational insights. [#391](https://github.com/StarRocks/starrocks-kubernetes-operator/pull/391) diff --git a/deploy/operator.yaml b/deploy/operator.yaml index 444f6862..e7f9db4f 100644 --- a/deploy/operator.yaml +++ b/deploy/operator.yaml @@ -56,13 +56,6 @@ rules: - get - list - watch -- apiGroups: - - rbac.authorization.k8s.io - resources: - - clusterrolebindings - - rolebindings - verbs: - - '*' - apiGroups: - starrocks.com resources: @@ -70,13 +63,6 @@ rules: - starrockswarehouses verbs: - '*' -- apiGroups: - - starrocks.com - resources: - - starrocksclusters/finalizers - - starrockswarehouses/finalizers - verbs: - - update - apiGroups: - starrocks.com resources: @@ -174,7 +160,7 @@ spec: kubectl.kubernetes.io/default-container: manager labels: app: kube-starrocks-operator - version: 1.9.2 + version: 1.9.3 spec: automountServiceAccountToken: true containers: @@ -187,7 +173,7 @@ spec: env: - name: TZ value: Asia/Shanghai - image: "starrocks/operator:v1.9.2" + image: "starrocks/operator:v1.9.3" imagePullPolicy: Always name: manager securityContext: diff --git a/doc/api.md b/doc/api.md index 1952cc56..7d695918 100644 --- a/doc/api.md +++ b/doc/api.md @@ -1587,6 +1587,23 @@ the total time of seconds before pods becomes not ready. If ReadinessProbeFailur can’t be divided by defaultPeriodSeconds, the failureThreshold will be rounded up.

+ + +lifecycle
+ + +Kubernetes core/v1.Lifecycle + + + + +(Optional) +

Lifecycle describes actions that the management system should take in response to container lifecycle events. +By default, Operator will add corresponding preStop hooks for different components. For example, the preStop +script for the FE Component is /opt/starrocks/fe_prestop.sh, for the BE Component is /opt/starrocks/be_prestop.sh, +and for the CN Component is /opt/starrocks/cn_prestop.sh.

+ +

StarRocksProbe @@ -2116,5 +2133,5 @@ AutoScalingPolicy

Generated with gen-crd-api-reference-docs -on git commit 0157a02. +on git commit cd02ea3.

diff --git a/helm-charts/charts/kube-starrocks/Chart.yaml b/helm-charts/charts/kube-starrocks/Chart.yaml index 79e2969b..cb085f36 100644 --- a/helm-charts/charts/kube-starrocks/Chart.yaml +++ b/helm-charts/charts/kube-starrocks/Chart.yaml @@ -25,7 +25,7 @@ maintainers: # This is the chart version. This version number should be incremented each time you make changes # to the chart and its templates, including the app version. # Versions are expected to follow Semantic Versioning (https://semver.org/) -version: 1.9.2 +version: 1.9.3 # This is the version number of the application being deployed. This version number should be # incremented each time you make changes to the application. Versions are not expected to diff --git a/helm-charts/charts/kube-starrocks/charts/operator/Chart.yaml b/helm-charts/charts/kube-starrocks/charts/operator/Chart.yaml index df77c148..3ad30639 100644 --- a/helm-charts/charts/kube-starrocks/charts/operator/Chart.yaml +++ b/helm-charts/charts/kube-starrocks/charts/operator/Chart.yaml @@ -25,13 +25,13 @@ maintainers: # This is the chart version. This version number should be incremented each time you make changes # to the chart and its templates, including the app version. # Versions are expected to follow Semantic Versioning (https://semver.org/) -version: 1.9.2 +version: 1.9.3 # This is the version number of the application being deployed. This version number should be # incremented each time you make changes to the application. Versions are not expected to # follow Semantic Versioning. They should reflect the version the application is using. # It is recommended to use it with quotes. -appVersion: 1.9.2 +appVersion: 1.9.3 kubeVersion: ">=1.18.3-0" diff --git a/helm-charts/charts/kube-starrocks/charts/operator/values.yaml b/helm-charts/charts/kube-starrocks/charts/operator/values.yaml index 2025c204..caea6d1c 100644 --- a/helm-charts/charts/kube-starrocks/charts/operator/values.yaml +++ b/helm-charts/charts/kube-starrocks/charts/operator/values.yaml @@ -36,7 +36,7 @@ starrocksOperator: image: # image sliced by "repository:tag" repository: starrocks/operator - tag: v1.9.2 + tag: v1.9.3 imagePullPolicy: Always replicaCount: 1 resources: diff --git a/helm-charts/charts/kube-starrocks/charts/starrocks/Chart.yaml b/helm-charts/charts/kube-starrocks/charts/starrocks/Chart.yaml index 4ebd2420..ed8d7d8c 100644 --- a/helm-charts/charts/kube-starrocks/charts/starrocks/Chart.yaml +++ b/helm-charts/charts/kube-starrocks/charts/starrocks/Chart.yaml @@ -25,7 +25,7 @@ maintainers: # This is the chart version. This version number should be incremented each time you make changes # to the chart and its templates, including the app version. # Versions are expected to follow Semantic Versioning (https://semver.org/) -version: 1.9.2 +version: 1.9.3 # This is the version number of the application being deployed. This version number should be # incremented each time you make changes to the application. Versions are not expected to diff --git a/helm-charts/charts/kube-starrocks/charts/starrocks/values.yaml b/helm-charts/charts/kube-starrocks/charts/starrocks/values.yaml index 9767e1dc..8f0760e6 100644 --- a/helm-charts/charts/kube-starrocks/charts/starrocks/values.yaml +++ b/helm-charts/charts/kube-starrocks/charts/starrocks/values.yaml @@ -20,7 +20,7 @@ initPassword: # The image of the initPassword job, if it is not set, the FE image will be used. # see https://github.com/StarRocks/starrocks-kubernetes-operator/issues/453 for why we need to set the image. image: "" - # The annotations for the initPassword job. + # The annotations for the Job, not including the annotations for the pod. annotations: {} # TimeZone is used to set the environment variable TZ for pod, with Asia/Shanghai as the default. diff --git a/helm-charts/charts/kube-starrocks/values.yaml b/helm-charts/charts/kube-starrocks/values.yaml index df1f121f..807092fc 100644 --- a/helm-charts/charts/kube-starrocks/values.yaml +++ b/helm-charts/charts/kube-starrocks/values.yaml @@ -43,7 +43,7 @@ operator: image: # image sliced by "repository:tag" repository: starrocks/operator - tag: v1.9.2 + tag: v1.9.3 imagePullPolicy: Always replicaCount: 1 resources: @@ -117,7 +117,7 @@ starrocks: # The image of the initPassword job, if it is not set, the FE image will be used. # see https://github.com/StarRocks/starrocks-kubernetes-operator/issues/453 for why we need to set the image. image: "" - # The annotations for the initPassword job. + # The annotations for the Job, not including the annotations for the pod. annotations: {} # TimeZone is used to set the environment variable TZ for pod, with Asia/Shanghai as the default. diff --git a/helm-charts/charts/warehouse/Chart.yaml b/helm-charts/charts/warehouse/Chart.yaml index 1e89fb3f..414d9b1e 100644 --- a/helm-charts/charts/warehouse/Chart.yaml +++ b/helm-charts/charts/warehouse/Chart.yaml @@ -23,7 +23,7 @@ maintainers: # This is the chart version. This version number should be incremented each time you make changes # to the chart and its templates, including the app version. # Versions are expected to follow Semantic Versioning (https://semver.org/) -version: 1.9.2 +version: 1.9.3 # This is the version number of the application being deployed. This version number should be # incremented each time you make changes to the application. Versions are not expected to diff --git a/index.yaml b/index.yaml index f4ecfa8c..6405de99 100644 --- a/index.yaml +++ b/index.yaml @@ -1,6 +1,33 @@ apiVersion: v1 entries: kube-starrocks: + - apiVersion: v2 + appVersion: 3.2-latest + created: "2024-03-05T10:39:15.238071+08:00" + description: kube-starrocks includes two subcharts, operator and starrocks + digest: 954cc0adddd4798b8f79d5b8a593268b2a12f5e8ae110bd04e730362a92bd697 + home: https://github.com/StarRocks/starrocks-kubernetes-operator + icon: https://avatars.githubusercontent.com/u/88238841 + keywords: + - operator + - starrocks + - database + - olap + kubeVersion: '>=1.18.3-0' + maintainers: + - email: caixiaohua@starrocks.com + name: Kevin Cai + - email: shensida@starrocks.com + name: SidaShen + - email: yandongxiao@starrocks.com + name: Dongxiao Yan + name: kube-starrocks + sources: + - https://github.com/StarRocks/starrocks + type: application + urls: + - https://github.com/StarRocks/starrocks-kubernetes-operator/releases/download/v1.9.3/kube-starrocks-1.9.3.tgz + version: 1.9.3 - apiVersion: v2 appVersion: 3.2-latest created: "2024-02-04T19:56:45.368703+08:00" @@ -355,6 +382,33 @@ entries: - https://github.com/StarRocks/starrocks-kubernetes-operator/releases/download/v1.7.1/kube-starrocks-1.7.1.tgz version: 1.7.1 operator: + - apiVersion: v2 + appVersion: 1.9.3 + created: "2024-03-05T10:39:17.670481+08:00" + description: A Helm chart for StarRocks operator + digest: 5e3501d81114350ed9f7962f1b1de3f90bfce45df1192b85b5dd490a0dd65370 + home: https://github.com/StarRocks/starrocks-kubernetes-operator + icon: https://avatars.githubusercontent.com/u/88238841 + keywords: + - operator + - starrocks + - database + - olap + kubeVersion: '>=1.18.3-0' + maintainers: + - email: caixiaohua@starrocks.com + name: Kevin Cai + - email: shensida@starrocks.com + name: SidaShen + - email: yandongxiao@starrocks.com + name: Dongxiao Yan + name: operator + sources: + - https://github.com/StarRocks/starrocks + type: application + urls: + - https://github.com/StarRocks/starrocks-kubernetes-operator/releases/download/v1.9.3/operator-1.9.3.tgz + version: 1.9.3 - apiVersion: v2 appVersion: 1.9.2 created: "2024-02-04T19:56:47.632264+08:00" @@ -680,6 +734,33 @@ entries: - https://github.com/StarRocks/starrocks-kubernetes-operator/releases/download/v1.8.0/operator-1.8.0.tgz version: 1.8.0 starrocks: + - apiVersion: v2 + appVersion: 3.2-latest + created: "2024-03-05T10:39:20.079366+08:00" + description: A Helm chart for StarRocks cluster + digest: 9380deaa431316c0be313dac5a3efe0d358139e0a1dad6e3fed51cd0ae32ed6b + home: https://github.com/StarRocks/starrocks-kubernetes-operator + icon: https://avatars.githubusercontent.com/u/88238841 + keywords: + - operator + - starrocks + - database + - olap + kubeVersion: '>=1.18.3-0' + maintainers: + - email: caixiaohua@starrocks.com + name: Kevin Cai + - email: shensida@starrocks.com + name: SidaShen + - email: yandongxiao@starrocks.com + name: Dongxiao Yan + name: starrocks + sources: + - https://github.com/StarRocks/starrocks + type: application + urls: + - https://github.com/StarRocks/starrocks-kubernetes-operator/releases/download/v1.9.3/starrocks-1.9.3.tgz + version: 1.9.3 - apiVersion: v2 appVersion: 3.2-latest created: "2024-02-04T19:56:49.792546+08:00" @@ -1005,6 +1086,32 @@ entries: - https://github.com/StarRocks/starrocks-kubernetes-operator/releases/download/v1.8.0/starrocks-1.8.0.tgz version: 1.8.0 warehouse: + - apiVersion: v2 + appVersion: 3.2-latest + created: "2024-03-05T10:39:22.492565+08:00" + description: Warehouse is currently a feature of the StarRocks Enterprise Edition. + digest: 8342b3ddf2f88dfe5645d1f5940fef85bcdb64a2ade98aedc58aab92f60b9f5f + home: https://github.com/StarRocks/starrocks-kubernetes-operator + icon: https://avatars.githubusercontent.com/u/88238841 + keywords: + - operator + - starrocks + - database + - olap + - multi-warehouse + kubeVersion: '>=1.18.3-0' + maintainers: + - email: caixiaohua@starrocks.com + name: Kevin Cai + - email: yandongxiao@starrocks.com + name: Dongxiao Yan + name: warehouse + sources: + - https://github.com/StarRocks/starrocks + type: application + urls: + - https://github.com/StarRocks/starrocks-kubernetes-operator/releases/download/v1.9.3/warehouse-1.9.3.tgz + version: 1.9.3 - apiVersion: v2 appVersion: 3.2-latest created: "2024-02-04T19:56:52.067362+08:00" @@ -1083,4 +1190,4 @@ entries: urls: - https://github.com/StarRocks/starrocks-kubernetes-operator/releases/download/v1.9.0/warehouse-1.9.0.tgz version: 1.9.0 -generated: "2024-02-04T19:56:52.066872+08:00" +generated: "2024-03-05T10:39:22.491873+08:00"