Skip to content

Commit fab308f

Browse files
committed
Merge branch 'main' into support/hscale-in-its
2 parents 2cdd2e0 + c80aa6e commit fab308f

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

42 files changed

+413
-2406
lines changed

.github/workflows/code-assistant.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ permissions:
1919

2020
jobs:
2121
code-assistant:
22-
uses: All-Hands-AI/OpenHands/.github/workflows/openhands-resolver.yml@main
22+
uses: OpenHands/OpenHands/.github/workflows/openhands-resolver.yml@main
2323
with:
2424
macro: ${{ vars.MACRO || '@openhands-agent' }}
2525
target_branch: ${{ vars.TARGET_BRANCH || 'main' }}

.github/workflows/release-helm-chart.yml

Lines changed: 139 additions & 52 deletions
Original file line numberDiff line numberDiff line change
@@ -129,6 +129,62 @@ jobs:
129129
APECD_REF: "v0.1.86"
130130
secrets: inherit
131131

132+
release-result:
133+
if: github.event.action == 'published'
134+
needs: [ release-message ]
135+
runs-on: ubuntu-latest
136+
strategy:
137+
matrix:
138+
type: [image, chart]
139+
steps:
140+
- name: Restore ${{ matrix.type }} Artifact
141+
id: cache-artifact-restore
142+
uses: actions/cache/restore@v3
143+
with:
144+
path: |
145+
${{ env.RELEASE_VERSION }}-${{ matrix.type }}
146+
key: ${{ env.RELEASE_VERSION }}-${{ matrix.type }}
147+
148+
- name: check release result
149+
run: |
150+
release_result=$( cat ${{ env.RELEASE_VERSION }}-${{ matrix.type }} )
151+
if [[ "$release_result" != "success" ]]; then
152+
exit 1
153+
fi
154+
155+
e2e-kbcli:
156+
needs: [ release-message, release-result ]
157+
uses: apecloud/apecloud-cd/.github/workflows/[email protected]
158+
strategy:
159+
fail-fast: false
160+
matrix:
161+
test-type: [ apecloud-mysql|asmysql|asmysql-proxy|asmysql-orc|asmysql-orc-proxy|kafka|mongodb|mongodb-shard|postgresql|postgresql-etcd|redis|redis-cluster,
162+
damengdb|gaussdb|goldendb|greatdb|kingbase|mssql|oceanbase-ent|oracle|starrocks-ent|tdsql|vastbase|oceanbase-proxy,
163+
clickhouse|elasticsearch|etcd|nebula|qdrant|rocketmqe|greptimedb|polardbx|starrocks|vanilla-pg,
164+
mariadb|mogdb|oceanbase|opensearch|orioledb|orchestrator|risingwave|weaviate|yashandb|doris,
165+
influxdb|loki|minio|milvus|rabbitmq|tdengine|tidb|victoria-metrics|zookeeper|hadoop|hive ]
166+
with:
167+
GITHUB_REPO: "apecloud/kubeblocks"
168+
BRANCH_NAME: "main"
169+
WORKFLOW_ID: "e2e-kbcli.yml"
170+
APECD_REF: "v0.1.35"
171+
VERSION: "${{ needs.release-message.outputs.release-version }}"
172+
EXTRA_ARGS: "TEST_TYPE=${{ matrix.test-type }}#CLOUD_PROVIDER=${{ vars.CLOUD_PROVIDER }}"
173+
secrets: inherit
174+
175+
delete-cache:
176+
needs: [ e2e-kbcli ]
177+
runs-on: ubuntu-latest
178+
strategy:
179+
matrix:
180+
type: [image, chart]
181+
steps:
182+
- uses: actions/checkout@v4
183+
- name: delete ${{ matrix.type }} cache
184+
continue-on-error: true
185+
run: |
186+
bash .github/utils/utils.sh --type 17 --tag-name "${{ env.RELEASE_VERSION }}-${{ matrix.type }}"
187+
132188
get-addons-chart-dir:
133189
runs-on: ubuntu-latest
134190
outputs:
@@ -169,55 +225,86 @@ jobs:
169225
APECD_REF: "v0.1.96"
170226
secrets: inherit
171227

172-
# release-addons-chart-ent:
173-
# needs: [ release-chart ]
174-
# uses: apecloud/apecloud-cd/.github/workflows/[email protected]
175-
# with:
176-
# GITHUB_REPO: "apecloud/apecloud-addons"
177-
# GITHUB_REF: "${{ github.ref_name }}"
178-
# CHART_DIR: "addons"
179-
# APECD_REF: "v0.1.96"
180-
# ENABLE_JIHU: false
181-
# secrets: inherit
182-
#
183-
# get-addons-chart-dir-ent:
184-
# runs-on: ubuntu-latest
185-
# outputs:
186-
# matrix: ${{ steps.get_addons_chart_dir.outputs.matrix }}
187-
# steps:
188-
# - name: Checkout apecloud-addons Code
189-
# uses: actions/checkout@v4
190-
# with:
191-
# repository: apecloud/apecloud-addons
192-
# path: apecloud-addons
193-
# ref: "${{ github.ref_name }}"
194-
# token: ${{ env.GITHUB_TOKEN }}
195-
#
196-
# - name: get addons chart dir
197-
# id: get_addons_chart_dir
198-
# run: |
199-
# addons_list=$(ls apecloud-addons/addons)
200-
# ADDONS_DIR=""
201-
# for addons_name in $( echo "$addons_list" ); do
202-
# if [[ -z "$ADDONS_DIR" ]]; then
203-
# ADDONS_DIR="{\"addon-name\":\"$addons_name\"}"
204-
# else
205-
# ADDONS_DIR="$ADDONS_DIR,{\"addon-name\":\"$addons_name\"}"
206-
# fi
207-
# done
208-
# echo "$ADDONS_DIR"
209-
# echo "matrix={\"include\":[$ADDONS_DIR]}" >> $GITHUB_OUTPUT
210-
#
211-
# release-addons-chart-jihu-ent:
212-
# needs: [ get-addons-chart-dir-ent ]
213-
# strategy:
214-
# fail-fast: false
215-
# matrix: ${{ fromJSON(needs.get-addons-chart-dir-ent.outputs.matrix) }}
216-
# uses: apecloud/apecloud-cd/.github/workflows/[email protected]
217-
# with:
218-
# GITHUB_REPO: "apecloud/apecloud-addons"
219-
# GITHUB_REF: "${{ github.ref_name }}"
220-
# CHART_DIR: "addons"
221-
# SPECIFY_CHART: "${{ matrix.addon-name }}"
222-
# APECD_REF: "v0.1.96"
223-
# secrets: inherit
228+
release-addons-chart-ent:
229+
needs: [ release-chart ]
230+
uses: apecloud/apecloud-cd/.github/workflows/[email protected]
231+
with:
232+
GITHUB_REPO: "apecloud/apecloud-addons"
233+
GITHUB_REF: "${{ github.ref_name }}"
234+
CHART_DIR: "addons"
235+
APECD_REF: "v0.1.96"
236+
ENABLE_JIHU: false
237+
secrets: inherit
238+
239+
get-addons-chart-dir-ent:
240+
runs-on: ubuntu-latest
241+
outputs:
242+
matrix: ${{ steps.get_addons_chart_dir.outputs.matrix }}
243+
steps:
244+
- name: Checkout apecloud-addons Code
245+
uses: actions/checkout@v4
246+
with:
247+
repository: apecloud/apecloud-addons
248+
path: apecloud-addons
249+
ref: "${{ github.ref_name }}"
250+
token: ${{ env.GITHUB_TOKEN }}
251+
252+
- name: get addons chart dir
253+
id: get_addons_chart_dir
254+
run: |
255+
addons_list=$(ls apecloud-addons/addons)
256+
ADDONS_DIR=""
257+
for addons_name in $( echo "$addons_list" ); do
258+
if [[ -z "$ADDONS_DIR" ]]; then
259+
ADDONS_DIR="{\"addon-name\":\"$addons_name\"}"
260+
else
261+
ADDONS_DIR="$ADDONS_DIR,{\"addon-name\":\"$addons_name\"}"
262+
fi
263+
done
264+
echo "$ADDONS_DIR"
265+
echo "matrix={\"include\":[$ADDONS_DIR]}" >> $GITHUB_OUTPUT
266+
267+
release-addons-chart-jihu-ent:
268+
needs: [ get-addons-chart-dir-ent ]
269+
strategy:
270+
fail-fast: false
271+
matrix: ${{ fromJSON(needs.get-addons-chart-dir-ent.outputs.matrix) }}
272+
uses: apecloud/apecloud-cd/.github/workflows/[email protected]
273+
with:
274+
GITHUB_REPO: "apecloud/apecloud-addons"
275+
GITHUB_REF: "${{ github.ref_name }}"
276+
CHART_DIR: "addons"
277+
SPECIFY_CHART: "${{ matrix.addon-name }}"
278+
APECD_REF: "v0.1.96"
279+
secrets: inherit
280+
281+
release-branch:
282+
needs: [ release-message, release-result ]
283+
uses: apecloud/apecloud-cd/.github/workflows/[email protected]
284+
with:
285+
RELEASE_VERSION: "${{ needs.release-message.outputs.release-version }}"
286+
RELEASE_BRANCH: "default"
287+
APECD_REF: "v0.1.96"
288+
secrets: inherit
289+
290+
update-addons-release-notes:
291+
needs: [ release-message, release-branch ]
292+
uses: apecloud/apecloud-cd/.github/workflows/[email protected]
293+
with:
294+
GITHUB_REPO: "apecloud/kubeblocks-addons"
295+
BRANCH_NAME: "${{ needs.release-branch.outputs.release-branch }}"
296+
WORKFLOW_ID: "update-release-notes.yml"
297+
APECD_REF: "v0.1.96"
298+
VERSION: "${{ needs.release-message.outputs.release-version }}"
299+
secrets: inherit
300+
301+
update-addons-release-notes-ent:
302+
needs: [ release-message, release-branch ]
303+
uses: apecloud/apecloud-cd/.github/workflows/[email protected]
304+
with:
305+
GITHUB_REPO: "apecloud/apecloud-addons"
306+
BRANCH_NAME: "${{ needs.release-branch.outputs.release-branch }}"
307+
WORKFLOW_ID: "update-release-notes.yml"
308+
APECD_REF: "v0.1.96"
309+
VERSION: "${{ needs.release-message.outputs.release-version }}"
310+
secrets: inherit

.github/workflows/release-image.yml

Lines changed: 19 additions & 88 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ on:
2121
- Dockerfile-dataprotection
2222
- Dockerfile-dev
2323
- Dockerfile-tools
24+
- Dockerfile-redhat
2425
release:
2526
types:
2627
- published
@@ -104,7 +105,7 @@ jobs:
104105
secrets: inherit
105106

106107
release-charts-image:
107-
if: ${{ inputs.dockerfile == '' || inputs.dockerfile == 'Dockerfile-charts' }}
108+
if: ${{ github.event_name == 'workflow_dispatch' && (inputs.dockerfile == '' || inputs.dockerfile == 'Dockerfile-charts') }}
108109
needs: release-version
109110
uses: apecloud/apecloud-cd/.github/workflows/[email protected]
110111
with:
@@ -128,6 +129,23 @@ jobs:
128129
CONTEXT: "./docker"
129130
secrets: inherit
130131

132+
release-redhat-image:
133+
if: ${{ github.event_name == 'workflow_dispatch' && (inputs.dockerfile == '' || inputs.dockerfile == 'Dockerfile-redhat') }}
134+
needs: release-version
135+
uses: apecloud/apecloud-cd/.github/workflows/[email protected]
136+
with:
137+
MAKE_OPS_PRE: "generate"
138+
IMG: "apecloud/kubeblocks"
139+
VERSION: "${{ needs.release-version.outputs.release-version }}-certified"
140+
GO_VERSION: "1.23"
141+
APECD_REF: "v0.1.64"
142+
DOCKERFILE_PATH: "./docker/Dockerfile-redhat"
143+
BUILDX_ARGS: |
144+
VERSION=${{ needs.release-version.outputs.release-version }}
145+
GIT_COMMIT=${{ needs.release-version.outputs.git-commit }}
146+
GIT_VERSION=${{ needs.release-version.outputs.git-version }}
147+
secrets: inherit
148+
131149
release-message:
132150
runs-on: ubuntu-latest
133151
needs: [ release-image, release-tools-image, release-dataprotection-image ]
@@ -176,90 +194,3 @@ jobs:
176194
CONTENT: "release image ${{ needs.release-message.outputs.release-version }} ${{ needs.release-message.outputs.content-result }}"
177195
APECD_REF: "v0.1.38"
178196
secrets: inherit
179-
180-
release-result:
181-
if: github.event.action == 'published'
182-
needs: [ release-message ]
183-
runs-on: ubuntu-latest
184-
strategy:
185-
matrix:
186-
type: [image, chart]
187-
steps:
188-
- name: Restore ${{ matrix.type }} Artifact
189-
id: cache-artifact-restore
190-
uses: actions/cache/restore@v3
191-
with:
192-
path: |
193-
${{ env.RELEASE_VERSION }}-${{ matrix.type }}
194-
key: ${{ env.RELEASE_VERSION }}-${{ matrix.type }}
195-
196-
- name: check release result
197-
run: |
198-
release_result=$( cat ${{ env.RELEASE_VERSION }}-${{ matrix.type }} )
199-
if [[ "$release_result" != "success" ]]; then
200-
exit 1
201-
fi
202-
203-
e2e-kbcli:
204-
needs: [ release-message, release-result ]
205-
uses: apecloud/apecloud-cd/.github/workflows/[email protected]
206-
strategy:
207-
fail-fast: false
208-
matrix:
209-
test-type: [ apecloud-mysql|postgresql|redis|mongodb|kafka|asmysql|asmysql-proxy|asmysql-orc|asmysql-orc-proxy,
210-
elasticsearch|oceanbase|starrocks|mysqlscale|weaviate|qdrant|smartengine|greptimedb|nebula|risingwave,
211-
zookeeper|etcd|orioledb|vanilla-pg|polardbx|opensearch|tdengine|milvus|clickhouse,
212-
mariadb|tidb|influxdb|mogdb|yashandb|redis-cluster|minio|orchestrator|rabbitmq ]
213-
with:
214-
GITHUB_REPO: "apecloud/kubeblocks"
215-
BRANCH_NAME: "main"
216-
WORKFLOW_ID: "e2e-kbcli.yml"
217-
APECD_REF: "v0.1.35"
218-
VERSION: "${{ needs.release-message.outputs.release-version }}"
219-
EXTRA_ARGS: "TEST_TYPE=${{ matrix.test-type }}#CLOUD_PROVIDER=${{ vars.CLOUD_PROVIDER }}"
220-
secrets: inherit
221-
222-
release-branch:
223-
needs: [ release-message, release-result ]
224-
uses: apecloud/apecloud-cd/.github/workflows/[email protected]
225-
with:
226-
RELEASE_VERSION: "${{ needs.release-message.outputs.release-version }}"
227-
RELEASE_BRANCH: "default"
228-
APECD_REF: "v0.1.96"
229-
secrets: inherit
230-
231-
update-addons-release-notes:
232-
needs: [ release-message, release-branch ]
233-
uses: apecloud/apecloud-cd/.github/workflows/[email protected]
234-
with:
235-
GITHUB_REPO: "apecloud/kubeblocks-addons"
236-
BRANCH_NAME: "${{ needs.release-branch.outputs.release-branch }}"
237-
WORKFLOW_ID: "update-release-notes.yml"
238-
APECD_REF: "v0.1.96"
239-
VERSION: "${{ needs.release-message.outputs.release-version }}"
240-
secrets: inherit
241-
242-
update-addons-release-notes-ent:
243-
needs: [ release-message, release-branch ]
244-
uses: apecloud/apecloud-cd/.github/workflows/[email protected]
245-
with:
246-
GITHUB_REPO: "apecloud/apecloud-addons"
247-
BRANCH_NAME: "${{ needs.release-branch.outputs.release-branch }}"
248-
WORKFLOW_ID: "update-release-notes.yml"
249-
APECD_REF: "v0.1.96"
250-
VERSION: "${{ needs.release-message.outputs.release-version }}"
251-
secrets: inherit
252-
253-
delete-cache:
254-
needs: e2e-kbcli
255-
runs-on: ubuntu-latest
256-
strategy:
257-
matrix:
258-
type: [image, chart]
259-
steps:
260-
- uses: actions/checkout@v4
261-
- name: delete ${{ matrix.type }} cache
262-
continue-on-error: true
263-
run: |
264-
bash .github/utils/utils.sh --type 17 --tag-name "${{ env.RELEASE_VERSION }}-${{ matrix.type }}"
265-

.gitignore

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44
# ignore go generate code files
55
pkg/testutil/k8s/mocks/*_mocks.go
66
pkg/configuration/proto/mocks/*_mocks.go
7-
pkg/configuration/container/mocks/*_mocks.go
87
# pkg/configuration/proto/*.pb.go
98

109
# ignore go mock temporary files

Makefile

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,6 @@ endif
134134
.PHONY: test-go-generate
135135
test-go-generate: ## Run go generate against test code.
136136
$(GO) generate -x ./pkg/testutil/k8s/mocks/...
137-
$(GO) generate -x ./pkg/configuration/container/mocks/...
138137
$(GO) generate -x ./pkg/configuration/proto/mocks/...
139138

140139
.PHONY: fmt

apis/parameters/v1alpha1/types.go

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -173,8 +173,6 @@ type ReloadPolicy string
173173
const (
174174
NonePolicy ReloadPolicy = "none"
175175
RestartPolicy ReloadPolicy = "restart"
176-
RestartContainerPolicy ReloadPolicy = "restartContainer"
177-
RollingPolicy ReloadPolicy = "rolling"
178176
AsyncDynamicReloadPolicy ReloadPolicy = "asyncReload"
179177
SyncDynamicReloadPolicy ReloadPolicy = "syncReload"
180178
DynamicReloadAndRestartPolicy ReloadPolicy = "dynamicReloadBeginRestart"

cmd/reloader/README.md

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -33,24 +33,21 @@ Usage:
3333
reloader [flags]
3434

3535
Flags:
36-
--container-runtime string the config set cri runtime type. (default "auto")
3736
--debug the config set debug.
38-
--disable-runtime the config set disable runtime.
3937
-h, --help help for reloader
4038
--log-level string the config set log level. enum: [error, info, debug] (default "info")
4139
--notify-type notifyType the config describe how to process notification messages. (default signal)
4240
--pod-ip string the config set pod ip address. (default "127.0.0.1")
4341
--process string the config describe what is db program.
4442
--regex string the config set filter config file.
45-
--runtime-endpoint string the config set cri runtime endpoint.
4643
--signal string the config describe reload unix signal. (default "SIGHUP")
4744
--tcp int the config set service port. (default 9901)
4845
--volume-dir stringArray the config map volume directory to watch for updates; may be used multiple times.
4946

5047
```
5148

5249
```shell
53-
./bin/reloader --disable-runtime --log-level debug --process mysqld --signal SIGHUP --volume-dir /opt/mysql --volume-dir /etc/mysql
50+
./bin/reloader --log-level debug --process mysqld --signal SIGHUP --volume-dir /opt/mysql --volume-dir /etc/mysql
5451

5552
```
5653

0 commit comments

Comments
 (0)