From 036fdd502ee78b091b3ff18a0dcbbd083baaedc7 Mon Sep 17 00:00:00 2001 From: yandongxiao Date: Wed, 26 Jun 2024 17:01:12 +0800 Subject: [PATCH] [Chore] Prepare for v1.9.7 (#553) Signed-off-by: yandongxiao --- CHANGELOG.md | 41 ++++++- .../starrocks.com_starrocksclusters.yaml | 2 +- .../starrocks.com_starrockswarehouses.yaml | 2 +- deploy/operator.yaml | 4 +- deploy/starrocks.com_starrocksclusters.yaml | 2 +- deploy/starrocks.com_starrockswarehouses.yaml | 2 +- doc/api.md | 32 ++++- helm-charts/charts/kube-starrocks/Chart.yaml | 6 +- .../kube-starrocks/charts/operator/Chart.yaml | 4 +- .../charts/operator/values.yaml | 2 +- .../charts/starrocks/Chart.yaml | 2 +- helm-charts/charts/kube-starrocks/values.yaml | 2 +- helm-charts/charts/warehouse/Chart.yaml | 2 +- index.yaml | 116 +++++++++++++++++- .../starrocks/v1/starrockscluster_types.go | 2 +- .../starrocks/v1/starrockswarehouse_types.go | 2 +- 16 files changed, 200 insertions(+), 23 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index a280c701..5689f64b 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,12 +1,43 @@ # CHANGELOG +## [v1.9.7](https://github.com/StarRocks/starrocks-kubernetes-operator/releases/tag/v1.9.7) + +Release Notes for starrocks-kubernetes-operator v1.9.7 + +We are excited to announce the release of StarRocks Kubernetes Operator v1.9.7. This version has the following +enhancements and bug fixes: + +1. [Operator] Fix the problem that FE proxy will fail when FE external service is + recreated [#557](https://github.com/StarRocks/starrocks-kubernetes-operator/pull/557). +2. [Operator] Add loadBalancerSourceRanges field to support setting the source IP range for the load + balancer [#551](https://github.com/StarRocks/starrocks-kubernetes-operator/pull/551). +3. [Operator] Add topologySpreadConstraints field to support setting the topology spread constraints for + pods [#546](https://github.com/StarRocks/starrocks-kubernetes-operator/pull/546). +4. [Operator] Add CRD version information to CRD + annotations [#544](https://github.com/StarRocks/starrocks-kubernetes-operator/pull/544) +5. [Operator] Make it easy to configure the hostPath + volume [#552](https://github.com/StarRocks/starrocks-kubernetes-operator/pull/552) +6. [Chart] Add spill storage volume for BE and + CN [#547](https://github.com/StarRocks/starrocks-kubernetes-operator/pull/547) +7. [Chart] Remove JAVA_OPTS_FOR_JDK_9 and JAVA_OPTS_FOR_JDK_11 env from fe config, **this will cause the pods of FE to + restart if you are using the default config of FE in values.yaml** + [#542](https://github.com/StarRocks/starrocks-kubernetes-operator/pull/542) +8. [Documentation] We have added or updated some documents to help users deploy and manage StarRocks clusters on + Kubernetes. [#524](https://github.com/StarRocks/starrocks-kubernetes-operator/pull/524) [#525](https://github.com/StarRocks/starrocks-kubernetes-operator/pull/525) [#527](https://github.com/StarRocks/starrocks-kubernetes-operator/pull/527) [#530](https://github.com/StarRocks/starrocks-kubernetes-operator/pull/530) [#531](https://github.com/StarRocks/starrocks-kubernetes-operator/pull/531) [#532](https://github.com/StarRocks/starrocks-kubernetes-operator/pull/532) [#536](https://github.com/StarRocks/starrocks-kubernetes-operator/pull/536) [#538](https://github.com/StarRocks/starrocks-kubernetes-operator/pull/538). + +We thank our community for their contributions and feedback. For a detailed list of changes and updates, please refer to +the GitHub repository. Happy deploying! + ## [v1.9.6](https://github.com/StarRocks/starrocks-kubernetes-operator/releases/tag/v1.9.6) Release Notes for starrocks-kubernetes-operator v1.9.6 -We are excited to announce the release of StarRocks Kubernetes Operator v1.9.6. This version has the following enhancements: +We are excited to announce the release of StarRocks Kubernetes Operator v1.9.6. This version has the following +enhancements: -1. Support command and args(#516) in StarRocksCluster spec. You can easily customize the command and args if you are using helm chart. +1. Support command and args[#516](https://github.com/StarRocks/starrocks-kubernetes-operator/pull/516) in + StarRocksCluster spec. You can easily customize the command and args if you are + using helm chart. Below is a code snippet from values.yaml for your reference: ```yaml entrypoint: @@ -15,8 +46,10 @@ We are excited to announce the release of StarRocks Kubernetes Operator v1.9.6. echo "do something before start cn" exec /opt/starrocks/cn_entrypoint.sh $FE_SERVICE_NAME ``` -2. Support ImagePullPolicy in StarRocksCluster spec(#514). -3. Support to use namespaced scope permission to deploy warehouses(#513). +2. Support ImagePullPolicy in StarRocksCluster + spec[#514](https://github.com/StarRocks/starrocks-kubernetes-operator/pull/514). +3. Support to use namespaced scope permission to deploy + warehouses[#513](https://github.com/StarRocks/starrocks-kubernetes-operator/pull/513). ## [v1.9.5](https://github.com/StarRocks/starrocks-kubernetes-operator/releases/tag/v1.9.5) diff --git a/config/crd/bases/starrocks.com_starrocksclusters.yaml b/config/crd/bases/starrocks.com_starrocksclusters.yaml index 64386eee..16926827 100644 --- a/config/crd/bases/starrocks.com_starrocksclusters.yaml +++ b/config/crd/bases/starrocks.com_starrocksclusters.yaml @@ -4,7 +4,7 @@ kind: CustomResourceDefinition metadata: annotations: controller-gen.kubebuilder.io/version: v0.14.0 - version: v1.9.6 + version: v1.9.7 name: starrocksclusters.starrocks.com spec: group: starrocks.com diff --git a/config/crd/bases/starrocks.com_starrockswarehouses.yaml b/config/crd/bases/starrocks.com_starrockswarehouses.yaml index 7b07c0a4..d7de8c30 100644 --- a/config/crd/bases/starrocks.com_starrockswarehouses.yaml +++ b/config/crd/bases/starrocks.com_starrockswarehouses.yaml @@ -4,7 +4,7 @@ kind: CustomResourceDefinition metadata: annotations: controller-gen.kubebuilder.io/version: v0.14.0 - version: v1.9.6 + version: v1.9.7 name: starrockswarehouses.starrocks.com spec: group: starrocks.com diff --git a/deploy/operator.yaml b/deploy/operator.yaml index 92e3e3bf..89c01594 100644 --- a/deploy/operator.yaml +++ b/deploy/operator.yaml @@ -160,7 +160,7 @@ spec: kubectl.kubernetes.io/default-container: manager labels: app: kube-starrocks-operator - version: 1.9.6 + version: 1.9.7 spec: automountServiceAccountToken: true containers: @@ -173,7 +173,7 @@ spec: env: - name: TZ value: Asia/Shanghai - image: "starrocks/operator:v1.9.6" + image: "starrocks/operator:v1.9.7" imagePullPolicy: Always name: manager securityContext: diff --git a/deploy/starrocks.com_starrocksclusters.yaml b/deploy/starrocks.com_starrocksclusters.yaml index 94937d2b..e2952701 100644 --- a/deploy/starrocks.com_starrocksclusters.yaml +++ b/deploy/starrocks.com_starrocksclusters.yaml @@ -4,7 +4,7 @@ kind: CustomResourceDefinition metadata: annotations: controller-gen.kubebuilder.io/version: v0.14.0 - version: v1.9.6 + version: v1.9.7 name: starrocksclusters.starrocks.com spec: group: starrocks.com diff --git a/deploy/starrocks.com_starrockswarehouses.yaml b/deploy/starrocks.com_starrockswarehouses.yaml index 91982008..6e7ad4d8 100644 --- a/deploy/starrocks.com_starrockswarehouses.yaml +++ b/deploy/starrocks.com_starrockswarehouses.yaml @@ -4,7 +4,7 @@ kind: CustomResourceDefinition metadata: annotations: controller-gen.kubebuilder.io/version: v0.14.0 - version: v1.9.6 + version: v1.9.7 name: starrockswarehouses.starrocks.com spec: group: starrocks.com diff --git a/doc/api.md b/doc/api.md index a38b3132..820dfb1d 100644 --- a/doc/api.md +++ b/doc/api.md @@ -1582,6 +1582,21 @@ Kubernetes core/v1.Affinity +topologySpreadConstraints
+ + +[]Kubernetes core/v1.TopologySpreadConstraint + + + + +(Optional) +

(Optional) TopologySpreadConstraints for spreading pods across failure-domains +More info: https://kubernetes.io/docs/concepts/scheduling-eviction/topology-spread-constraints/

+ + + + service
@@ -1847,6 +1862,21 @@ e.g. if you want to use a dedicated node port, you can just specify the StarRock StarRocksServicePort.NodePort field.

+ + +loadBalancerSourceRanges
+ +[]string + + + +(Optional) +

If specified and supported by the platform, this will restrict traffic through the cloud-provider +load-balancer will be restricted to the specified client IPs. This field will be ignored if the +cloud-provider does not support the feature. +More info: https://kubernetes.io/docs/tasks/access-application-cluster/create-external-load-balancer/

+ +

StarRocksServicePort @@ -2243,5 +2273,5 @@ AutoScalingPolicy

Generated with gen-crd-api-reference-docs -on git commit 78759be. +on git commit 35451e5.

diff --git a/helm-charts/charts/kube-starrocks/Chart.yaml b/helm-charts/charts/kube-starrocks/Chart.yaml index 2c68cac0..32a14674 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.6 +version: 1.9.7 # 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 @@ -43,10 +43,10 @@ keywords: dependencies: - name: operator - version: 1.9.6 + version: 1.9.7 repository: "file://charts/operator" - name: starrocks - version: 1.9.6 + version: 1.9.7 repository: "file://charts/starrocks" sources: diff --git a/helm-charts/charts/kube-starrocks/charts/operator/Chart.yaml b/helm-charts/charts/kube-starrocks/charts/operator/Chart.yaml index 1edd0bae..5e6ac2e8 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.6 +version: 1.9.7 # 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.6 +appVersion: 1.9.7 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 d38f0121..0a0e79fe 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.6 + tag: v1.9.7 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 65e0121e..f50ad97e 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.6 +version: 1.9.7 # 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/values.yaml b/helm-charts/charts/kube-starrocks/values.yaml index e247eea2..2d8d45a9 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.6 + tag: v1.9.7 imagePullPolicy: Always replicaCount: 1 resources: diff --git a/helm-charts/charts/warehouse/Chart.yaml b/helm-charts/charts/warehouse/Chart.yaml index 269a624a..b626dd5a 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.6 +version: 1.9.7 # 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 60765464..a18496a6 100644 --- a/index.yaml +++ b/index.yaml @@ -1,6 +1,40 @@ apiVersion: v1 entries: kube-starrocks: + - apiVersion: v2 + appVersion: 3.2-latest + created: "2024-06-26T16:56:34.430338+08:00" + dependencies: + - name: operator + repository: file://charts/operator + version: 1.9.7 + - name: starrocks + repository: file://charts/starrocks + version: 1.9.7 + description: kube-starrocks includes two subcharts, operator and starrocks + digest: 8dfe1841b1d788d69d8ce6fc63896ccc63506be0ca38017e9629bd0a8947449f + 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.7/kube-starrocks-1.9.7.tgz + version: 1.9.7 - apiVersion: v2 appVersion: 3.2-latest created: "2024-05-09T14:53:18.143934+08:00" @@ -477,6 +511,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.7 + created: "2024-06-26T16:56:36.60748+08:00" + description: A Helm chart for StarRocks operator + digest: c721e7ed8755e1cb1c582f303b9c038262a9fdb9f7f571942f2d5de43024b73b + 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.7/operator-1.9.7.tgz + version: 1.9.7 - apiVersion: v2 appVersion: 1.9.6 created: "2024-05-09T14:53:20.362296+08:00" @@ -910,6 +971,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-06-26T16:56:38.849992+08:00" + description: A Helm chart for StarRocks cluster + digest: ca042c0885124edf84e5977d69e0ea7cc4de6ab2902102e26cd6256c7d5ef242 + 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.7/starrocks-1.9.7.tgz + version: 1.9.7 - apiVersion: v2 appVersion: 3.2-latest created: "2024-05-09T14:53:22.513653+08:00" @@ -1343,6 +1431,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-06-26T16:56:41.380023+08:00" + description: Warehouse is currently a feature of the StarRocks Enterprise Edition. + digest: 7278a444cc8a51c4627e4f2ee995cd41abc4921243f7e88f2cb8e89afd293b25 + 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.7/warehouse-1.9.7.tgz + version: 1.9.7 - apiVersion: v2 appVersion: 3.2-latest created: "2024-05-09T14:53:24.956584+08:00" @@ -1525,4 +1639,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-05-09T14:53:24.955265+08:00" +generated: "2024-06-26T16:56:41.379353+08:00" diff --git a/pkg/apis/starrocks/v1/starrockscluster_types.go b/pkg/apis/starrocks/v1/starrockscluster_types.go index ccd8183d..3b5d5443 100644 --- a/pkg/apis/starrocks/v1/starrockscluster_types.go +++ b/pkg/apis/starrocks/v1/starrockscluster_types.go @@ -276,7 +276,7 @@ type HorizontalScaler struct { // StarRocksCluster defines a starrocks cluster deployment. // +kubebuilder:object:root=true -// +kubebuilder:metadata:annotations="version=v1.9.6" +// +kubebuilder:metadata:annotations="version=v1.9.7" // +kubebuilder:resource:shortName=src // +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object // +kubebuilder:subresource:status diff --git a/pkg/apis/starrocks/v1/starrockswarehouse_types.go b/pkg/apis/starrocks/v1/starrockswarehouse_types.go index 59b73db5..c50db53f 100644 --- a/pkg/apis/starrocks/v1/starrockswarehouse_types.go +++ b/pkg/apis/starrocks/v1/starrockswarehouse_types.go @@ -64,7 +64,7 @@ type StarRocksWarehouseStatus struct { // StarRocksWarehouse defines a starrocks warehouse. // +kubebuilder:object:root=true -// +kubebuilder:metadata:annotations="version=v1.9.6" +// +kubebuilder:metadata:annotations="version=v1.9.7" // +kubebuilder:resource:shortName=warehouse // +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object // +kubebuilder:subresource:status