diff --git a/config/crd/bases/starrocks.com_starrocksclusters.yaml b/config/crd/bases/starrocks.com_starrocksclusters.yaml index 0c2e8b57..afd31f19 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.9 + version: v1.9.10 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 97da6cbd..5824b78d 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.9 + version: v1.9.10 name: starrockswarehouses.starrocks.com spec: group: starrocks.com diff --git a/deploy/operator.yaml b/deploy/operator.yaml index 4e9606c9..ff022717 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.9 + version: 1.9.10 spec: automountServiceAccountToken: true containers: @@ -181,7 +181,7 @@ spec: env: - name: TZ value: Asia/Shanghai - image: "starrocks/operator:v1.9.9" + image: "starrocks/operator:v1.9.10" imagePullPolicy: Always name: manager securityContext: diff --git a/deploy/starrocks.com_starrocksclusters.yaml b/deploy/starrocks.com_starrocksclusters.yaml index a80032ec..e7de6762 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.9 + version: v1.9.10 name: starrocksclusters.starrocks.com spec: group: starrocks.com diff --git a/deploy/starrocks.com_starrockswarehouses.yaml b/deploy/starrocks.com_starrockswarehouses.yaml index f0faaa8a..8a5641d1 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.9 + version: v1.9.10 name: starrockswarehouses.starrocks.com spec: group: starrocks.com diff --git a/doc/api.md b/doc/api.md index 8a8efa48..ad1e694e 100644 --- a/doc/api.md +++ b/doc/api.md @@ -1156,6 +1156,42 @@ of whether the variable exists or not. Cannot be updated. More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell

+ + +updateStrategy
+ + +Kubernetes apps/v1.StatefulSetUpdateStrategy + + + + +(Optional) +

StarRocksCluster use StatefulSet to deploy FE/BE/CN components. +UpdateStrategy indicates the StatefulSetUpdateStrategy that will be +employed to update Pods in the StatefulSet when a revision is made to +Template. See https://kubernetes.io/docs/concepts/workloads/controllers/statefulset/#rolling-updates for more details. +Note: The maxUnavailable field is in Alpha stage and it is honored only by API servers that are running with the +MaxUnavailableStatefulSet feature gate enabled.

+ + + + +readOnlyRootFilesystem
+ +bool + + + +(Optional) +

Whether this container has a read-only root filesystem. +Default is false. +Note that: +1. This field cannot be set when spec.os.name is windows. +2. The FE/BE/CN container should support read-only root filesystem. The newest version of FE/BE/CN is 3.3.6, +and does not support read-only root filesystem

+ +

StarRocksComponentStatus @@ -1732,6 +1768,21 @@ script for the FE Component is /opt/starrocks/fe_prestop.sh, for the BE Componen and for the CN Component is /opt/starrocks/cn_prestop.sh.

+ + +shareProcessNamespace
+ +bool + + + +(Optional) +

Share a single process namespace between all of the containers in a pod. +When this is set containers will be able to view and signal processes from other containers +in the same pod, and the first process in each container will not be assigned PID 1. +Optional: Default to false.

+ +

StarRocksProbe @@ -2276,5 +2327,5 @@ AutoScalingPolicy

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

diff --git a/helm-charts/charts/kube-starrocks/Chart.yaml b/helm-charts/charts/kube-starrocks/Chart.yaml index 978983f2..f57f6338 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.9 +version: 1.9.10 # 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.9 + version: 1.9.10 repository: "file://charts/operator" - name: starrocks - version: 1.9.9 + version: 1.9.10 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 ea4c4294..55c226b2 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.9 +version: 1.9.10 # 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.9 +appVersion: 1.9.10 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 9c0457d9..b73599b2 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.9 + tag: v1.9.10 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 ca354bf1..146945e5 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.9 +version: 1.9.10 # 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/templates/_helpers.tpl b/helm-charts/charts/kube-starrocks/charts/starrocks/templates/_helpers.tpl index 4b53adcf..b152d327 100644 --- a/helm-charts/charts/kube-starrocks/charts/starrocks/templates/_helpers.tpl +++ b/helm-charts/charts/kube-starrocks/charts/starrocks/templates/_helpers.tpl @@ -76,7 +76,7 @@ cn.conf: | {{- end }} {{- end }} -{{- define "starrocksclster.be.config" -}} +{{- define "starrockscluster.be.config" -}} be.conf: | {{- if and .Values.starrocksBeSpec.configyaml (kindIs "map" .Values.starrocksBeSpec.configyaml) }} {{- range $key, $value := .Values.starrocksBeSpec.configyaml }} diff --git a/helm-charts/charts/kube-starrocks/charts/starrocks/templates/beconfigmap.yaml b/helm-charts/charts/kube-starrocks/charts/starrocks/templates/beconfigmap.yaml index cc54de86..f00c39d7 100644 --- a/helm-charts/charts/kube-starrocks/charts/starrocks/templates/beconfigmap.yaml +++ b/helm-charts/charts/kube-starrocks/charts/starrocks/templates/beconfigmap.yaml @@ -8,7 +8,7 @@ metadata: cluster: {{ template "starrockscluster.name" . }} app: "be" data: - {{- include "starrocksclster.be.config" . | nindent 2 }} + {{- include "starrockscluster.be.config" . | nindent 2 }} {{- end }} diff --git a/helm-charts/charts/kube-starrocks/charts/starrocks/values.yaml b/helm-charts/charts/kube-starrocks/charts/starrocks/values.yaml index 7587f5b3..eba62d1c 100644 --- a/helm-charts/charts/kube-starrocks/charts/starrocks/values.yaml +++ b/helm-charts/charts/kube-starrocks/charts/starrocks/values.yaml @@ -627,7 +627,7 @@ starrocksCnSpec: spillStorageClassName: "" # Setting this parameter can persist spill storage, and the mount path is /opt/starrocks/cn/spill. # If you set it to 0Gi, the related PVC will not be created, and the spill will not be persisted. - # You need to add in be.conf spill_local_storage_dir=/opt/starrocks/cn/spill. + # You need to add spill_local_storage_dir=/opt/starrocks/cn/spill in cn.conf. spillStorageSize: 0Gi # If spillMountPath is empty, the spillMountPath will be set to /opt/starrocks/cn/spill. # If spillMountPath is not /opt/starrocks/cn/spill, you must add in config the following configuration: spill_local_storage_dir = xxx. @@ -922,7 +922,7 @@ starrocksBeSpec: spillStorageClassName: "" # Setting this parameter can persist spill storage, and the mount path is /opt/starrocks/be/spill. # If you set it to 0Gi, the related PVC will not be created, and the spill will not be persisted. - # You need to add in be.conf spill_local_storage_dir=/opt/starrocks/be/spill. + # You need to add spill_local_storage_dir=/opt/starrocks/be/spill in be.conf. spillStorageSize: 0Gi # If spillMountPath is empty, the spillMountPath will be set to /opt/starrocks/be/spill. # If spillMountPath is not /opt/starrocks/be/spill, you must add in config the following configuration: spill_local_storage_dir = xxx. diff --git a/helm-charts/charts/kube-starrocks/values.yaml b/helm-charts/charts/kube-starrocks/values.yaml index a7f3289a..4ffdff3f 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.9 + tag: v1.9.10 imagePullPolicy: Always replicaCount: 1 resources: @@ -739,7 +739,7 @@ starrocks: spillStorageClassName: "" # Setting this parameter can persist spill storage, and the mount path is /opt/starrocks/cn/spill. # If you set it to 0Gi, the related PVC will not be created, and the spill will not be persisted. - # You need to add in be.conf spill_local_storage_dir=/opt/starrocks/cn/spill. + # You need to add spill_local_storage_dir=/opt/starrocks/cn/spill in cn.conf. spillStorageSize: 0Gi # If spillMountPath is empty, the spillMountPath will be set to /opt/starrocks/cn/spill. # If spillMountPath is not /opt/starrocks/cn/spill, you must add in config the following configuration: spill_local_storage_dir = xxx. @@ -1034,7 +1034,7 @@ starrocks: spillStorageClassName: "" # Setting this parameter can persist spill storage, and the mount path is /opt/starrocks/be/spill. # If you set it to 0Gi, the related PVC will not be created, and the spill will not be persisted. - # You need to add in be.conf spill_local_storage_dir=/opt/starrocks/be/spill. + # You need to add spill_local_storage_dir=/opt/starrocks/be/spill in be.conf. spillStorageSize: 0Gi # If spillMountPath is empty, the spillMountPath will be set to /opt/starrocks/be/spill. # If spillMountPath is not /opt/starrocks/be/spill, you must add in config the following configuration: spill_local_storage_dir = xxx. diff --git a/helm-charts/charts/warehouse/Chart.yaml b/helm-charts/charts/warehouse/Chart.yaml index 1d743403..208417ac 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.9 +version: 1.9.10 # 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 01530f67..1e74fbd3 100644 --- a/index.yaml +++ b/index.yaml @@ -1,6 +1,40 @@ apiVersion: v1 entries: kube-starrocks: + - apiVersion: v2 + appVersion: 3.3-latest + created: "2025-01-08T13:55:03.590356+08:00" + dependencies: + - name: operator + repository: file://charts/operator + version: 1.9.10 + - name: starrocks + repository: file://charts/starrocks + version: 1.9.10 + description: kube-starrocks includes two subcharts, operator and starrocks + digest: 250620f2f78a086e3ace18af5d894c756584c86535836ab0f30e2b1098e4ff4e + 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.10/kube-starrocks-1.9.10.tgz + version: 1.9.10 - apiVersion: v2 appVersion: 3.3-latest created: "2024-11-20T00:06:45.669506+08:00" @@ -579,6 +613,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.10 + created: "2025-01-08T13:55:05.92+08:00" + description: A Helm chart for StarRocks operator + digest: 52009607ca07a778be1895cc10c468a264d9c9ce9375b09db8872ed187d95c4b + 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.10/operator-1.9.10.tgz + version: 1.9.10 - apiVersion: v2 appVersion: 1.9.9 created: "2024-11-20T00:06:47.992017+08:00" @@ -1093,6 +1154,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: "2025-01-08T13:55:08.267076+08:00" + description: A Helm chart for StarRocks cluster + digest: 240dd1bdfef1384b3661b4db1e76d454fb7b38f871b717e1292494fd524016aa + 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.10/starrocks-1.9.10.tgz + version: 1.9.10 - apiVersion: v2 appVersion: 3.3-latest created: "2024-11-20T00:06:50.294574+08:00" @@ -1607,6 +1695,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: "2025-01-08T13:55:10.838963+08:00" + description: Warehouse is currently a feature of the StarRocks Enterprise Edition. + digest: bf1443d30f14905ea3e12dc99a982f4731fbf758cdf831958cd7560df6043c2b + 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.10/warehouse-1.9.10.tgz + version: 1.9.10 - apiVersion: v2 appVersion: 3.3-latest created: "2024-11-20T00:06:52.524915+08:00" @@ -1867,4 +1981,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-11-20T00:06:52.524326+08:00" +generated: "2025-01-08T13:55:10.838216+08:00" diff --git a/pkg/apis/starrocks/v1/starrockscluster_types.go b/pkg/apis/starrocks/v1/starrockscluster_types.go index a74aa894..56c4abfc 100644 --- a/pkg/apis/starrocks/v1/starrockscluster_types.go +++ b/pkg/apis/starrocks/v1/starrockscluster_types.go @@ -291,7 +291,7 @@ type HorizontalScaler struct { // StarRocksCluster defines a starrocks cluster deployment. // +kubebuilder:object:root=true -// +kubebuilder:metadata:annotations="version=v1.9.9" +// +kubebuilder:metadata:annotations="version=v1.9.10" // +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 13db3fea..46240096 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.9" +// +kubebuilder:metadata:annotations="version=v1.9.10" // +kubebuilder:resource:shortName=warehouse // +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object // +kubebuilder:subresource:status