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
SubPath within the volume from which the container’s volume should be mounted. Defaults to “” (volume’s root).
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.
+(Optional)
SubPath within the volume from which the container’s volume should be mounted. Defaults to “” (volume’s root). |
@@ -448,6 +458,7 @@ string
+(Optional)
SubPath within the volume from which the container’s volume should be mounted. Defaults to “” (volume’s root). |
@@ -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.
+
+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 + |
+
imagePullPolicy
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
Generated with gen-crd-api-reference-docs
-on git commit 53f728f
.
+on git commit 78759be
.