diff --git a/CHANGELOG.md b/CHANGELOG.md index 5c9afb1a..254eab5b 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,29 @@ # CHANGELOG +## [v1.9.8](https://github.com/StarRocks/starrocks-kubernetes-operator/releases/tag/v1.9.8) + +Release Notes for starrocks-kubernetes-operator v1.9.8 + +We are excited to announce the release of StarRocks Kubernetes Operator v1.9.8. This version has the following +enhancements: + +1. [Helm Chart] Support multiple data volumes on helm chart. + [#578](https://github.com/StarRocks/starrocks-kubernetes-operator/pull/578). +2. [Helm Chart] Use a reasonable volume size for logging for BE/CN. Because the logStorageSize field of the Helm Chart + is modified. If the user uses the default value, the Operator will try to update the PVC part of the component's + Statefulset. Statefulset does not allow this part of the configuration to be updated, so there is a case of tuning + failure. The solution is to set it to the original default value, 1GB. + [#579](https://github.com/StarRocks/starrocks-kubernetes-operator/pull/579). +3. [Helm Chart] Support config override. + [#580](https://github.com/StarRocks/starrocks-kubernetes-operator/pull/580). +4. [Operator] Add update permission for starrocksclusters/finalizers resource for OpenShift. + [#484](https://github.com/StarRocks/starrocks-kubernetes-operator/pull/484) +5. [Operator] Support to disable probe. + [#569](https://github.com/StarRocks/starrocks-kubernetes-operator/pull/569) + +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.7](https://github.com/StarRocks/starrocks-kubernetes-operator/releases/tag/v1.9.7) Release Notes for starrocks-kubernetes-operator v1.9.7 diff --git a/config/crd/bases/starrocks.com_starrocksclusters.yaml b/config/crd/bases/starrocks.com_starrocksclusters.yaml index bc344230..a8247b56 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.7 + version: v1.9.8 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 4c7754df..f779fe4b 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.7 + version: v1.9.8 name: starrockswarehouses.starrocks.com spec: group: starrocks.com diff --git a/deploy/operator.yaml b/deploy/operator.yaml index 5f315275..f2646c59 100644 --- a/deploy/operator.yaml +++ b/deploy/operator.yaml @@ -168,7 +168,7 @@ spec: kubectl.kubernetes.io/default-container: manager labels: app: kube-starrocks-operator - version: 1.9.7 + version: 1.9.8 spec: automountServiceAccountToken: true containers: @@ -181,7 +181,7 @@ spec: env: - name: TZ value: Asia/Shanghai - image: "starrocks/operator:v1.9.7" + image: "starrocks/operator:v1.9.8" imagePullPolicy: Always name: manager securityContext: diff --git a/deploy/starrocks.com_starrocksclusters.yaml b/deploy/starrocks.com_starrocksclusters.yaml index e2952701..df1a45af 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.7 + version: v1.9.8 name: starrocksclusters.starrocks.com spec: group: starrocks.com diff --git a/deploy/starrocks.com_starrockswarehouses.yaml b/deploy/starrocks.com_starrockswarehouses.yaml index 6e7ad4d8..1e0cb216 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.7 + version: v1.9.8 name: starrockswarehouses.starrocks.com spec: group: starrocks.com diff --git a/doc/api.md b/doc/api.md index 820dfb1d..8a8efa48 100644 --- a/doc/api.md +++ b/doc/api.md @@ -1677,7 +1677,8 @@ Default failureThreshold is 60 and the periodSeconds is 5, this means the startu will fail if the pod can’t start in 300 seconds. Your StartupProbeFailureSeconds is the total time of seconds before startupProbe give up and fail the container start. If startupProbeFailureSeconds can’t be divided by defaultPeriodSeconds, the failureThreshold -will be rounded up.

+will be rounded up. +Note: you can set it to 0 to disable the startup probe.

@@ -1693,7 +1694,8 @@ int32 Default failureThreshold is 3 and the periodSeconds is 5, this means the liveness will fail if the pod can’t respond in 15 seconds. Your LivenessProbeFailureSeconds is the total time of seconds before the container restart. If LivenessProbeFailureSeconds -can’t be divided by defaultPeriodSeconds, the failureThreshold will be rounded up.

+can’t be divided by defaultPeriodSeconds, the failureThreshold will be rounded up. +Note: you can set it to 0 to disable the liveness probe.

@@ -1709,7 +1711,8 @@ int32 Default failureThreshold is 3 and the periodSeconds is 5, this means the readiness will fail if the pod can’t respond in 15 seconds. Your ReadinessProbeFailureSeconds is the total time of seconds before pods becomes not ready. If ReadinessProbeFailureSeconds -can’t be divided by defaultPeriodSeconds, the failureThreshold will be rounded up.

+can’t be divided by defaultPeriodSeconds, the failureThreshold will be rounded up. +Note: you can set it to 0 to disable the readiness probe.

@@ -2273,5 +2276,5 @@ AutoScalingPolicy

Generated with gen-crd-api-reference-docs -on git commit 35451e5. +on git commit 354d3f8.

diff --git a/doc/automatic_scaling_for_cn_nodes_howto.md b/doc/automatic_scaling_for_cn_nodes_howto.md index 0b4d76b9..f8b777aa 100644 --- a/doc/automatic_scaling_for_cn_nodes_howto.md +++ b/doc/automatic_scaling_for_cn_nodes_howto.md @@ -91,7 +91,7 @@ Add the following snippets to `values.yaml` to configure the automatic scaling p starrocksCnSpec: image: repository: starrocks/cn-ubuntu - tag: 3.2-latest + tag: 3.3-latest resources: requests: cpu: 4 diff --git a/doc/build_your_own_container_image_howto.md b/doc/build_your_own_container_image_howto.md index 67799dda..379c9bf1 100644 --- a/doc/build_your_own_container_image_howto.md +++ b/doc/build_your_own_container_image_howto.md @@ -50,8 +50,8 @@ of [this PR](https://github.com/StarRocks/starrocks-kubernetes-operator/pull/288 # clone the repository git clone https://github.com/StarRocks/starrocks-kubernetes-operator.git -# checkout the latest released version, e.g., v1.9.7 -git checkout v1.9.7 +# checkout the latest released version, e.g., v1.9.8 +git checkout v1.9.8 # revert the commit git revert 66e2f2c @@ -78,9 +78,9 @@ make generate ```bash # replace the image name with your own, e.g. replace meaglekey to the username of the Docker Hub account -docker build -t meaglekey/operator:v1.9.7-remove-appProtocol . +docker build -t meaglekey/operator:v1.9.8-remove-appProtocol . # push the image to the Docker Hub # Note: you have to log in to the Docker Hub by `docker login` First. -docker push meaglekey/operator:v1.9.7-remove-appProtocol +docker push meaglekey/operator:v1.9.8-remove-appProtocol ``` diff --git a/doc/integration/integration-prometheus-grafana.md b/doc/integration/integration-prometheus-grafana.md index 01e141a2..95bcb31b 100644 --- a/doc/integration/integration-prometheus-grafana.md +++ b/doc/integration/integration-prometheus-grafana.md @@ -111,7 +111,7 @@ spec: configMapInfo: configMapName: kube-starrocks-be-cm resolveKey: be.conf - image: starrocks/be-ubuntu:3.2-latest + image: starrocks/be-ubuntu:3.3-latest limits: cpu: 4 memory: 4Gi @@ -128,7 +128,7 @@ spec: configMapInfo: configMapName: kube-starrocks-fe-cm resolveKey: fe.conf - image: starrocks/fe-ubuntu:3.2-latest + image: starrocks/fe-ubuntu:3.3-latest limits: cpu: 4 memory: 4Gi diff --git a/doc/mount_persistent_volume_howto.md b/doc/mount_persistent_volume_howto.md index 2550ebd6..ad4a23b7 100644 --- a/doc/mount_persistent_volume_howto.md +++ b/doc/mount_persistent_volume_howto.md @@ -28,7 +28,7 @@ metadata: cluster: kube-starrocks spec: starRocksFeSpec: - image: "starrocks/fe-ubuntu:3.2-latest" + image: "starrocks/fe-ubuntu:3.3-latest" replicas: 1 storageVolumes: - name: fe-storage-meta @@ -41,7 +41,7 @@ spec: storageSize: 5Gi mountPath: /opt/starrocks/fe/log starRocksBeSpec: - image: "starrocks/be-ubuntu:3.2-latest" + image: "starrocks/be-ubuntu:3.3-latest" replicas: 3 storageVolumes: - name: be-storage-data @@ -107,7 +107,7 @@ starrocks: starrocksFESpec: image: repository: starrocks/fe-ubuntu - tag: 3.2-latest + tag: 3.3-latest storageSpec: name: fe-storage storageClassName: standard-rwo # standard-rwo is the default storageClassName in GKE. @@ -116,7 +116,7 @@ starrocks: starrocksBeSpec: image: repository: starrocks/be-ubuntu - tag: 3.2-latest + tag: 3.3-latest replicas: 3 storageSpec: name: be-storage diff --git a/examples/starrocks/deploy_a_starrocks_cluster_with_be_capabilities.yaml b/examples/starrocks/deploy_a_starrocks_cluster_with_be_capabilities.yaml index b1f7c3ab..e56209a2 100644 --- a/examples/starrocks/deploy_a_starrocks_cluster_with_be_capabilities.yaml +++ b/examples/starrocks/deploy_a_starrocks_cluster_with_be_capabilities.yaml @@ -9,7 +9,7 @@ metadata: app.kubernetes.io/managed-by: Helm spec: starRocksFeSpec: - image: "starrocks/fe-ubuntu:3.2-latest" + image: "starrocks/fe-ubuntu:3.3-latest" replicas: 1 limits: cpu: 8 @@ -30,7 +30,7 @@ spec: configMapName: kube-starrocks-fe-cm resolveKey: fe.conf starRocksBeSpec: - image: "starrocks/be-ubuntu:3.2-latest" + image: "starrocks/be-ubuntu:3.3-latest" replicas: 1 limits: cpu: 8 diff --git a/helm-charts/charts/kube-starrocks/Chart.yaml b/helm-charts/charts/kube-starrocks/Chart.yaml index 32a14674..3370127a 100644 --- a/helm-charts/charts/kube-starrocks/Chart.yaml +++ b/helm-charts/charts/kube-starrocks/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.7 +version: 1.9.8 # 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: 3.2-latest +appVersion: 3.3-latest kubeVersion: ">=1.18.3-0" @@ -43,10 +43,10 @@ keywords: dependencies: - name: operator - version: 1.9.7 + version: 1.9.8 repository: "file://charts/operator" - name: starrocks - version: 1.9.7 + version: 1.9.8 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 5e6ac2e8..3c6fff79 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.7 +version: 1.9.8 # 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.7 +appVersion: 1.9.8 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 0a0e79fe..ed433d2e 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.7 + tag: v1.9.8 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 f50ad97e..79a83c6d 100644 --- a/helm-charts/charts/kube-starrocks/charts/starrocks/Chart.yaml +++ b/helm-charts/charts/kube-starrocks/charts/starrocks/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.7 +version: 1.9.8 # 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: 3.2-latest +appVersion: 3.3-latest kubeVersion: ">=1.18.3-0" diff --git a/helm-charts/charts/kube-starrocks/charts/starrocks/values.yaml b/helm-charts/charts/kube-starrocks/charts/starrocks/values.yaml index 476a4d47..483b4664 100644 --- a/helm-charts/charts/kube-starrocks/charts/starrocks/values.yaml +++ b/helm-charts/charts/kube-starrocks/charts/starrocks/values.yaml @@ -77,7 +77,7 @@ starrocksCluster: # 2. the values in their own spec will replace all the values in this field, not merge. componentValues: image: - tag: "3.2-latest" + tag: "3.3-latest" # hostAliases allows adding entries to /etc/hosts inside the containers. hostAliases: [] # - ip: "127.0.0.1" diff --git a/helm-charts/charts/kube-starrocks/values.yaml b/helm-charts/charts/kube-starrocks/values.yaml index 6bfd23a5..86146cea 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.7 + tag: v1.9.8 imagePullPolicy: Always replicaCount: 1 resources: @@ -185,7 +185,7 @@ starrocks: # 2. the values in their own spec will replace all the values in this field, not merge. componentValues: image: - tag: "3.2-latest" + tag: "3.3-latest" # hostAliases allows adding entries to /etc/hosts inside the containers. hostAliases: [] # - ip: "127.0.0.1" diff --git a/helm-charts/charts/warehouse/Chart.yaml b/helm-charts/charts/warehouse/Chart.yaml index b626dd5a..2629923e 100644 --- a/helm-charts/charts/warehouse/Chart.yaml +++ b/helm-charts/charts/warehouse/Chart.yaml @@ -23,13 +23,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.7 +version: 1.9.8 # 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: 3.2-latest +appVersion: 3.3-latest kubeVersion: ">=1.18.3-0" diff --git a/helm-charts/charts/warehouse/values.yaml b/helm-charts/charts/warehouse/values.yaml index 7413a1bc..eb2f56c2 100644 --- a/helm-charts/charts/warehouse/values.yaml +++ b/helm-charts/charts/warehouse/values.yaml @@ -35,7 +35,7 @@ spec: # image sliced by "repository:tag" repository: starrocks/cn-ubuntu # Note: the image tag must be greater than or equal to 3.2.0 - tag: 3.2-latest + tag: 3.3-latest # serviceAccount for pod access cloud service. serviceAccount: "" # add annotations for pods. example, if you want to config monitor for datadog, you can config the annotations. diff --git a/index.yaml b/index.yaml index a18496a6..59c96ea0 100644 --- a/index.yaml +++ b/index.yaml @@ -1,6 +1,40 @@ apiVersion: v1 entries: kube-starrocks: + - apiVersion: v2 + appVersion: 3.3-latest + created: "2024-08-29T16:29:12.754611+08:00" + dependencies: + - name: operator + repository: file://charts/operator + version: 1.9.8 + - name: starrocks + repository: file://charts/starrocks + version: 1.9.8 + description: kube-starrocks includes two subcharts, operator and starrocks + digest: 9b767cc5a30208f7512bc1c56556168535528cc5a532991a540a447ad02b55c0 + 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.8/kube-starrocks-1.9.8.tgz + version: 1.9.8 - apiVersion: v2 appVersion: 3.2-latest created: "2024-06-26T16:56:34.430338+08:00" @@ -511,6 +545,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.8 + created: "2024-08-29T16:29:14.889342+08:00" + description: A Helm chart for StarRocks operator + digest: aeeaf5689a078aef1a5e763019d4817c12590b326f3b902f03b7e9d8876ce670 + 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.8/operator-1.9.8.tgz + version: 1.9.8 - apiVersion: v2 appVersion: 1.9.7 created: "2024-06-26T16:56:36.60748+08:00" @@ -971,6 +1032,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.3-latest + created: "2024-08-29T16:29:17.003917+08:00" + description: A Helm chart for StarRocks cluster + digest: 2773a9c2279df4748cc29bf433283e7c9032392c810acb64bee9db3d8c3e9b6d + 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.8/starrocks-1.9.8.tgz + version: 1.9.8 - apiVersion: v2 appVersion: 3.2-latest created: "2024-06-26T16:56:38.849992+08:00" @@ -1431,6 +1519,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.3-latest + created: "2024-08-29T16:29:19.338593+08:00" + description: Warehouse is currently a feature of the StarRocks Enterprise Edition. + digest: 7b13b8b323530ecca8dec77c8cec3b6571f07718df5e56b253f8b67512865d9d + 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.8/warehouse-1.9.8.tgz + version: 1.9.8 - apiVersion: v2 appVersion: 3.2-latest created: "2024-06-26T16:56:41.380023+08:00" @@ -1639,4 +1753,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-06-26T16:56:41.379353+08:00" +generated: "2024-08-29T16:29:19.335834+08:00" diff --git a/pkg/apis/starrocks/v1/starrockscluster_types.go b/pkg/apis/starrocks/v1/starrockscluster_types.go index 3b5d5443..cb5fe1a7 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.7" +// +kubebuilder:metadata:annotations="version=v1.9.8" // +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 c50db53f..5d37d656 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.7" +// +kubebuilder:metadata:annotations="version=v1.9.8" // +kubebuilder:resource:shortName=warehouse // +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object // +kubebuilder:subresource:status diff --git a/scripts/change-version.sh b/scripts/change-version.sh new file mode 100644 index 00000000..5c1506d8 --- /dev/null +++ b/scripts/change-version.sh @@ -0,0 +1,17 @@ +#! /bin/bash + +# You should use it like this: bash ./scripts/change-version.sh 1.9.7 1.9.8 + +find . -type f | while read -r file; do + # ignore files or directories starting with a dot + [[ $file == *"/."* ]] && continue + + # ignore vendor directory + [[ $file == *"/vendor/"* ]] && continue + + # ignore CHANGELOG file + [[ $file == *"/CHANGELOG.md" ]] && continue + + echo $file + sed -i '' "s/$1/$2/g" "$file" +done