Skip to content

Commit

Permalink
[Chore] Prepare for v1.9.6 (#519)
Browse files Browse the repository at this point in the history
Signed-off-by: yandongxiao <[email protected]>
  • Loading branch information
yandongxiao authored May 9, 2024
1 parent 83bab97 commit 3d1e402
Show file tree
Hide file tree
Showing 10 changed files with 209 additions and 13 deletions.
18 changes: 18 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -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
Expand Down
4 changes: 2 additions & 2 deletions deploy/operator.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand All @@ -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:
Expand Down
66 changes: 65 additions & 1 deletion doc/api.md
Original file line number Diff line number Diff line change
Expand Up @@ -224,6 +224,7 @@ string
</em>
</td>
<td>
<em>(Optional)</em>
<p>SubPath within the volume from which the container&rsquo;s volume should be mounted.
Defaults to &ldquo;&rdquo; (volume&rsquo;s root).</p>
</td>
Expand Down Expand Up @@ -325,6 +326,14 @@ AutoScalerVersion
<h3 id="starrocks.com/v1.MountInfo">MountInfo
</h3>
<div>
<p>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.</p>
</div>
<table>
<thead>
Expand Down Expand Up @@ -366,6 +375,7 @@ string
</em>
</td>
<td>
<em>(Optional)</em>
<p>SubPath within the volume from which the container&rsquo;s volume should be mounted.
Defaults to &ldquo;&rdquo; (volume&rsquo;s root).</p>
</td>
Expand Down Expand Up @@ -448,6 +458,7 @@ string
</em>
</td>
<td>
<em>(Optional)</em>
<p>SubPath within the volume from which the container&rsquo;s volume should be mounted.
Defaults to &ldquo;&rdquo; (volume&rsquo;s root).</p>
</td>
Expand Down Expand Up @@ -1109,6 +1120,42 @@ You can use this field to launch helper containers that run before the main cont
See <a href="https://kubernetes.io/docs/reference/kubernetes-api/workload-resources/pod-v1/#Container">https://kubernetes.io/docs/reference/kubernetes-api/workload-resources/pod-v1/#Container</a> for how to configure a container.</p>
</td>
</tr>
<tr>
<td>
<code>command</code><br/>
<em>
[]string
</em>
</td>
<td>
<em>(Optional)</em>
<p>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: <a href="https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell">https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell</a></p>
</td>
</tr>
<tr>
<td>
<code>args</code><br/>
<em>
[]string
</em>
</td>
<td>
<em>(Optional)</em>
<p>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&rsquo;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. &ldquo;$$(VAR_NAME)&rdquo; will
produce the string literal &ldquo;$(VAR_NAME)&rdquo;. Escaped references will never be expanded, regardless
of whether the variable exists or not. Cannot be updated.
More info: <a href="https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell">https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell</a></p>
</td>
</tr>
</tbody>
</table>
<h3 id="starrocks.com/v1.StarRocksComponentStatus">StarRocksComponentStatus
Expand Down Expand Up @@ -1449,6 +1496,23 @@ string
</tr>
<tr>
<td>
<code>imagePullPolicy</code><br/>
<em>
<a href="https://kubernetes.io/docs/reference/generated/kubernetes-api/v1.24/#pullpolicy-v1-core">
Kubernetes core/v1.PullPolicy
</a>
</em>
</td>
<td>
<em>(Optional)</em>
<p>Image pull policy.
One of Always, Never, IfNotPresent.
Defaults to IfNotPresent for compatibility.
More info: <a href="https://kubernetes.io/docs/concepts/containers/images#updating-images">https://kubernetes.io/docs/concepts/containers/images#updating-images</a></p>
</td>
</tr>
<tr>
<td>
<code>imagePullSecrets</code><br/>
<em>
<a href="https://kubernetes.io/docs/reference/generated/kubernetes-api/v1.24/#localobjectreference-v1-core">
Expand Down Expand Up @@ -2179,5 +2243,5 @@ AutoScalingPolicy
<hr/>
<p><em>
Generated with <code>gen-crd-api-reference-docs</code>
on git commit <code>53f728f</code>.
on git commit <code>78759be</code>.
</em></p>
6 changes: 3 additions & 3 deletions helm-charts/charts/kube-starrocks/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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:
Expand Down
4 changes: 2 additions & 2 deletions helm-charts/charts/kube-starrocks/charts/operator/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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"

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion helm-charts/charts/kube-starrocks/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
2 changes: 1 addition & 1 deletion helm-charts/charts/warehouse/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
116 changes: 115 additions & 1 deletion index.yaml
Original file line number Diff line number Diff line change
@@ -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: [email protected]
name: Kevin Cai
- email: [email protected]
name: SidaShen
- email: [email protected]
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"
Expand Down Expand Up @@ -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: [email protected]
name: Kevin Cai
- email: [email protected]
name: SidaShen
- email: [email protected]
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"
Expand Down Expand Up @@ -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: [email protected]
name: Kevin Cai
- email: [email protected]
name: SidaShen
- email: [email protected]
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"
Expand Down Expand Up @@ -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: [email protected]
name: Kevin Cai
- email: [email protected]
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"
Expand Down Expand Up @@ -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"

0 comments on commit 3d1e402

Please sign in to comment.