diff --git a/CHANGELOG.md b/CHANGELOG.md index 0f08e970..a280c701 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,23 @@ # CHANGELOG +## [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: + +1. Support command and args(#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: + script: | + #! /bin/bash + 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). + ## [v1.9.5](https://github.com/StarRocks/starrocks-kubernetes-operator/releases/tag/v1.9.5) Release Notes for starrocks-kubernetes-operator v1.9.5 diff --git a/deploy/operator.yaml b/deploy/operator.yaml index 0e3ef002..92e3e3bf 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.5 + version: 1.9.6 spec: automountServiceAccountToken: true containers: @@ -173,7 +173,7 @@ spec: env: - name: TZ value: Asia/Shanghai - image: "starrocks/operator:v1.9.5" + image: "starrocks/operator:v1.9.6" imagePullPolicy: Always name: manager securityContext: diff --git a/doc/api.md b/doc/api.md index 04eafbe6..a38b3132 100644 --- a/doc/api.md +++ b/doc/api.md @@ -224,6 +224,7 @@ string +(Optional)

SubPath within the volume from which the container’s volume should be mounted. Defaults to “” (volume’s root).

@@ -325,6 +326,14 @@ AutoScalerVersion

MountInfo

+

MountInfo +The reason why we do not support defaultMode is that we use hash.HashObject to +calculate the actual volume name. This volume name is used in pod template of statefulset, +and if this MountInfo type has been changed, the volume name will be changed too, and +that will make pods restart. +The default mode is 0644, and in order to support to set permission information for a configMap +or secret, we add should specify the subPath and specify a command or args in the container. +And It will be set 0755.

@@ -366,6 +375,7 @@ string @@ -448,6 +458,7 @@ string @@ -1109,6 +1120,42 @@ You can use this field to launch helper containers that run before the main cont See https://kubernetes.io/docs/reference/kubernetes-api/workload-resources/pod-v1/#Container for how to configure a container.

+ + + + + + + +
+(Optional)

SubPath within the volume from which the container’s volume should be mounted. Defaults to “” (volume’s root).

+(Optional)

SubPath within the volume from which the container’s volume should be mounted. Defaults to “” (volume’s root).

+command
+ +[]string + +
+(Optional) +

Entrypoint array. Not executed within a shell. +If this is not provided, it will use default entrypoint for different components: +1. For FE, it will use /opt/starrocks/fe_entrypoint.sh as the entrypoint. +2. For BE, it will use /opt/starrocks/be_entrypoint.sh as the entrypoint. +3. For CN, it will use /opt/starrocks/cn_entrypoint.sh as the entrypoint. +More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell

+
+args
+ +[]string + +
+(Optional) +

Arguments to the entrypoint. +If this is not provided, it will use $(FE_SERVICE_NAME) for all components. +Variable references $(VAR_NAME) are expanded using the container’s environment. If a variable +cannot be resolved, the reference in the input string will be unchanged. Double $$ are reduced +to a single $, which allows for escaping the $(VAR_NAME) syntax: i.e. “$$(VAR_NAME)” will +produce the string literal “$(VAR_NAME)”. Escaped references will never be expanded, regardless +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

+

StarRocksComponentStatus @@ -1449,6 +1496,23 @@ string +imagePullPolicy
+ + +Kubernetes core/v1.PullPolicy + + + + +(Optional) +

Image pull policy. +One of Always, Never, IfNotPresent. +Defaults to IfNotPresent for compatibility. +More info: https://kubernetes.io/docs/concepts/containers/images#updating-images

+ + + + imagePullSecrets
@@ -2179,5 +2243,5 @@ AutoScalingPolicy

Generated with gen-crd-api-reference-docs -on git commit 53f728f. +on git commit 78759be.

diff --git a/helm-charts/charts/kube-starrocks/Chart.yaml b/helm-charts/charts/kube-starrocks/Chart.yaml index 0cc5cc21..2c68cac0 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.5 +version: 1.9.6 # 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.5 + version: 1.9.6 repository: "file://charts/operator" - name: starrocks - version: 1.9.5 + version: 1.9.6 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 4cd26b8f..1edd0bae 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.5 +version: 1.9.6 # 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.5 +appVersion: 1.9.6 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 7dcafb14..d38f0121 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.5 + tag: v1.9.6 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 b572dbff..65e0121e 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.5 +version: 1.9.6 # 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 2b7e89df..b1a5e12e 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.5 + tag: v1.9.6 imagePullPolicy: Always replicaCount: 1 resources: diff --git a/helm-charts/charts/warehouse/Chart.yaml b/helm-charts/charts/warehouse/Chart.yaml index 219ed27d..269a624a 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.5 +version: 1.9.6 # 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 7c8f6b8b..60765464 100644 --- a/index.yaml +++ b/index.yaml @@ -1,6 +1,40 @@ apiVersion: v1 entries: kube-starrocks: + - apiVersion: v2 + appVersion: 3.2-latest + created: "2024-05-09T14:53:18.143934+08:00" + dependencies: + - name: operator + repository: file://charts/operator + version: 1.9.6 + - name: starrocks + repository: file://charts/starrocks + version: 1.9.6 + description: kube-starrocks includes two subcharts, operator and starrocks + digest: 0bd2b63b7c07b504c68bd912274fbc767b9c3476345ab4c3fbc6af83444ad93a + 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.6/kube-starrocks-1.9.6.tgz + version: 1.9.6 - apiVersion: v2 appVersion: 3.2-latest created: "2024-04-12T14:43:02.644054+08:00" @@ -443,6 +477,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.6 + created: "2024-05-09T14:53:20.362296+08:00" + description: A Helm chart for StarRocks operator + digest: 8ab5056f43c096947ff5f3d6cda41429d3845559e3e72e4b29c84ffadb0d24fe + 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.6/operator-1.9.6.tgz + version: 1.9.6 - apiVersion: v2 appVersion: 1.9.5 created: "2024-04-12T14:43:05.141454+08:00" @@ -849,6 +910,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-05-09T14:53:22.513653+08:00" + description: A Helm chart for StarRocks cluster + digest: ab92b9384a4420eeaa8d97434bf805912bba2d7f2351a45979667289e5f57bb2 + 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.6/starrocks-1.9.6.tgz + version: 1.9.6 - apiVersion: v2 appVersion: 3.2-latest created: "2024-03-25T11:43:12.770477+08:00" @@ -1255,6 +1343,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-05-09T14:53:24.956584+08:00" + description: Warehouse is currently a feature of the StarRocks Enterprise Edition. + digest: ebe96692c98c3be4f15ee1e9879fe6718ca5b1f74caeaa9885c87e9aa1dbd2e3 + 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.6/warehouse-1.9.6.tgz + version: 1.9.6 - apiVersion: v2 appVersion: 3.2-latest created: "2024-04-12T14:43:10.120059+08:00" @@ -1411,4 +1525,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-04-12T14:43:10.119534+08:00" +generated: "2024-05-09T14:53:24.955265+08:00"