Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: separate k3s and k8s #6163

Merged
merged 1 commit into from
Dec 20, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
75 changes: 75 additions & 0 deletions .github/workflows/e2e-kbcli-k3s.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,75 @@
name: E2E Test KBCLI K3S

on:
workflow_dispatch:
inputs:
VERSION:
description: 'kubeblocks release version'
required: true
default: ''
PRE_VERSION:
description: 'kubeblocks previous version of upgrade'
required: false
default: ''
TEST_TYPE:
description: 'test type (e.g. apecloud-mysql|postgresql|redis|mongodb|kafka|pulsar|weaviate|qdrant|
smartengine|mysqlscale|greptimedb|nebula|risingwave|starrocks|etcd|foxlake|oracle-mysql|asmysql|
openldap|milvus|clickhouse|pika|opensearch|elasticsearch|tdengine|vllm|orioledb|official-pg|ggml|
zookeeper|mariadb|tidb|xinference|oracle|opengauss|influxdb)'
required: false
default: ''
CLUSTER_VERSION:
description: 'k8s cluster version (e.g. 1.26)'
required: false
default: '1.26'
type: choice
options:
- 1.27
- 1.26
- 1.25
- 1.24
BRANCH_NAME:
description: 'testinfra branch name'
required: false
default: 'main'
ARGS:
description: 'kbcli test args'
required: false
default: ''

run-name: kbcli:${{ inputs.PRE_VERSION }} to ${{ inputs.VERSION }} K3S:${{ inputs.CLUSTER_VERSION }} ${{ inputs.TEST_TYPE }}

env:
GH_TOKEN: ${{ github.token }}

jobs:
check:
runs-on: ubuntu-latest
outputs:
release-version: ${{ steps.get_release_version.outputs.release-version }}
steps:
- uses: actions/checkout@v4
- name: check release version
id: get_release_version
run: |
RELEASE_VERSION=`bash .github/utils/utils.sh --type 18 \
--tag-name "${{ inputs.VERSION }}"`
if [[ -z "$RELEASE_VERSION" ]]; then
echo "release version ${{ inputs.VERSION }} not exists"
exit 1
else
echo $RELEASE_VERSION
echo release-version=$RELEASE_VERSION >> $GITHUB_OUTPUT
fi

k3s:
needs: check
uses: apecloud/apecloud-cd/.github/workflows/kbcli-test-k3s.yml@main
with:
KB_VERSION: "${{ needs.check.outputs.release-version }}"
KB_PRE_VERSION: "${{ inputs.PRE_VERSION }}"
CLUSTER_VERSION: "${{ inputs.CLUSTER_VERSION }}"
BRANCH_NAME: "${{ inputs.BRANCH_NAME }}"
ARGS: "${{ inputs.ARGS }}"
TEST_TYPE: "${{ inputs.TEST_TYPE }}"
secrets: inherit
20 changes: 4 additions & 16 deletions .github/workflows/e2e-kbcli.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,10 @@ on:
required: false
default: ''
TEST_TYPE:
description: 'test type (e.g. apecloud-mysql|postgresql|redis|mongodb|kafka|pulsar|weaviate|qdrant|smartengine|mysqlscale|greptimedb|nebula|risingwave|starrocks|etcd|oceanbase|foxlake|oracle-mysql|asmysql|openldap|polardbx|milvus|clickhouse|pika|opensearch|elasticsearch|tdengine|vllm|orioledb|official-pg|ggml|zookeeper|mariadb|tidb|xinference)'
description: 'test type (e.g. apecloud-mysql|postgresql|redis|mongodb|kafka|pulsar|weaviate|qdrant|
smartengine|mysqlscale|greptimedb|nebula|risingwave|starrocks|etcd|oceanbase|foxlake|oracle-mysql|
asmysql|openldap|polardbx|milvus|clickhouse|pika|opensearch|elasticsearch|tdengine|vllm|orioledb|
official-pg|ggml|zookeeper|mariadb|tidb|xinference|oracle|opengauss|influxdb)'
required: false
default: ''
CLOUD_PROVIDER:
Expand All @@ -23,7 +26,6 @@ on:
options:
- gke
- eks
- k3s
CLUSTER_VERSION:
description: 'k8s cluster version (e.g. 1.26)'
required: false
Expand Down Expand Up @@ -88,7 +90,6 @@ jobs:
e2e:
name: ${{ inputs.CLOUD_PROVIDER }}
needs: check
if: ${{ inputs.CLOUD_PROVIDER != 'k3s' }}
uses: apecloud/apecloud-cd/.github/workflows/kbcli-test-k8s.yml@main
with:
CLOUD_PROVIDER: "${{ inputs.CLOUD_PROVIDER }}"
Expand All @@ -101,16 +102,3 @@ jobs:
ARGS: "${{ inputs.ARGS }}"
TEST_TYPE: "${{ inputs.TEST_TYPE }}"
secrets: inherit

k3s:
needs: check
if: ${{ inputs.CLOUD_PROVIDER == 'k3s' }}
uses: apecloud/apecloud-cd/.github/workflows/kbcli-test-k3s.yml@main
with:
KB_VERSION: "${{ needs.check.outputs.release-version }}"
KB_PRE_VERSION: "${{ inputs.PRE_VERSION }}"
CLUSTER_VERSION: "${{ inputs.CLUSTER_VERSION }}"
BRANCH_NAME: "${{ inputs.BRANCH_NAME }}"
ARGS: "${{ inputs.ARGS }}"
TEST_TYPE: "${{ inputs.TEST_TYPE }}"
secrets: inherit
4 changes: 3 additions & 1 deletion .github/workflows/release-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,9 @@ jobs:
strategy:
fail-fast: false
matrix:
test-type: [ apecloud-mysql|postgresql|redis|mongodb|kafka|pulsar|weaviate|qdrant|smartengine|mysqlscale|tidb|xinference , greptimedb|nebula|risingwave|starrocks|etcd|oceanbase|foxlake|oracle-mysql|asmysql|openldap|milvus|clickhouse , polardbx|pika|opensearch|elasticsearch|tdengine|vllm|orioledb|official-pg|ggml|zookeeper|mariadb ]
test-type: [ apecloud-mysql|postgresql|redis|mongodb|kafka|pulsar|weaviate|qdrant|smartengine|mysqlscale|tidb|xinference ,
greptimedb|nebula|risingwave|starrocks|etcd|oceanbase|foxlake|oracle-mysql|asmysql|openldap|milvus|clickhouse|opengauss ,
polardbx|pika|opensearch|elasticsearch|tdengine|vllm|orioledb|official-pg|ggml|zookeeper|mariadb|oracle ]
with:
GITHUB_REPO: "apecloud/kubeblocks"
BRANCH_NAME: "main"
Expand Down