diff --git a/.github/workflows/kbcli-pre-test-k8s.yml b/.github/workflows/kbcli-pre-test-k8s.yml index 9e84089..1a5f42a 100644 --- a/.github/workflows/kbcli-pre-test-k8s.yml +++ b/.github/workflows/kbcli-pre-test-k8s.yml @@ -47,8 +47,8 @@ on: type: string required: false default: '' - k8s-cluster-kubeconfig: - description: 'k8s cluster kubeconfig' + artifact-name: + description: 'terraform artifact name' type: string required: false default: '' @@ -80,7 +80,7 @@ jobs: test-type-name: "install-kubeblocks-pre" test-args: "--enable-addon kubebench ${{ inputs.test-args }}" k8s-cluster-name: ${{ inputs.k8s-cluster-name }} - k8s-cluster-kubeconfig: ${{ inputs.k8s-cluster-kubeconfig }} + artifact-name: ${{ inputs.artifact-name }} branch-name: ${{ inputs.branch-name }} secrets: inherit @@ -96,7 +96,7 @@ jobs: test-type-name: "apecloud-mysql-pre" test-args: "${{ inputs.test-args }}" k8s-cluster-name: ${{ inputs.k8s-cluster-name }} - k8s-cluster-kubeconfig: ${{ inputs.k8s-cluster-kubeconfig }} + artifact-name: ${{ inputs.artifact-name }} branch-name: ${{ inputs.branch-name }} random-suffix: ${{ needs.install-kubeblocks-pre.outputs.random-suffix }} secrets: inherit @@ -113,7 +113,7 @@ jobs: test-type-name: "smartengine-pre" test-args: "--smartengine true ${{ inputs.test-args }}" k8s-cluster-name: ${{ inputs.k8s-cluster-name }} - k8s-cluster-kubeconfig: ${{ inputs.k8s-cluster-kubeconfig }} + artifact-name: ${{ inputs.artifact-name }} branch-name: ${{ inputs.branch-name }} random-suffix: ${{ needs.install-kubeblocks-pre.outputs.random-suffix }} secrets: inherit @@ -130,7 +130,7 @@ jobs: test-type-name: "mysqlscale-pre" test-args: "--enable-proxy true ${{ inputs.test-args }}" k8s-cluster-name: ${{ inputs.k8s-cluster-name }} - k8s-cluster-kubeconfig: ${{ inputs.k8s-cluster-kubeconfig }} + artifact-name: ${{ inputs.artifact-name }} branch-name: ${{ inputs.branch-name }} random-suffix: ${{ needs.install-kubeblocks-pre.outputs.random-suffix }} secrets: inherit @@ -147,7 +147,7 @@ jobs: test-type-name: "postgresql-pre" test-args: "${{ inputs.test-args }}" k8s-cluster-name: ${{ inputs.k8s-cluster-name }} - k8s-cluster-kubeconfig: ${{ inputs.k8s-cluster-kubeconfig }} + artifact-name: ${{ inputs.artifact-name }} branch-name: ${{ inputs.branch-name }} random-suffix: ${{ needs.install-kubeblocks-pre.outputs.random-suffix }} secrets: inherit @@ -164,7 +164,7 @@ jobs: test-type-name: "redis-pre" test-args: "${{ inputs.test-args }}" k8s-cluster-name: ${{ inputs.k8s-cluster-name }} - k8s-cluster-kubeconfig: ${{ inputs.k8s-cluster-kubeconfig }} + artifact-name: ${{ inputs.artifact-name }} branch-name: ${{ inputs.branch-name }} random-suffix: ${{ needs.install-kubeblocks-pre.outputs.random-suffix }} secrets: inherit @@ -181,7 +181,7 @@ jobs: test-type-name: "mongodb-pre" test-args: "${{ inputs.test-args }}" k8s-cluster-name: ${{ inputs.k8s-cluster-name }} - k8s-cluster-kubeconfig: ${{ inputs.k8s-cluster-kubeconfig }} + artifact-name: ${{ inputs.artifact-name }} branch-name: ${{ inputs.branch-name }} random-suffix: ${{ needs.install-kubeblocks-pre.outputs.random-suffix }} secrets: inherit @@ -198,7 +198,7 @@ jobs: test-type-name: "kafka-pre" test-args: "${{ inputs.test-args }}" k8s-cluster-name: ${{ inputs.k8s-cluster-name }} - k8s-cluster-kubeconfig: ${{ inputs.k8s-cluster-kubeconfig }} + artifact-name: ${{ inputs.artifact-name }} branch-name: ${{ inputs.branch-name }} random-suffix: ${{ needs.install-kubeblocks-pre.outputs.random-suffix }} secrets: inherit @@ -215,7 +215,7 @@ jobs: test-type-name: "pulsar-pre" test-args: "${{ inputs.test-args }}" k8s-cluster-name: ${{ inputs.k8s-cluster-name }} - k8s-cluster-kubeconfig: ${{ inputs.k8s-cluster-kubeconfig }} + artifact-name: ${{ inputs.artifact-name }} branch-name: ${{ inputs.branch-name }} random-suffix: ${{ needs.install-kubeblocks-pre.outputs.random-suffix }} secrets: inherit @@ -232,7 +232,7 @@ jobs: test-type-name: "weaviate-pre" test-args: "${{ inputs.test-args }}" k8s-cluster-name: ${{ inputs.k8s-cluster-name }} - k8s-cluster-kubeconfig: ${{ inputs.k8s-cluster-kubeconfig }} + artifact-name: ${{ inputs.artifact-name }} branch-name: ${{ inputs.branch-name }} random-suffix: ${{ needs.install-kubeblocks-pre.outputs.random-suffix }} secrets: inherit @@ -249,7 +249,7 @@ jobs: test-type-name: "qdrant-pre" test-args: "${{ inputs.test-args }}" k8s-cluster-name: ${{ inputs.k8s-cluster-name }} - k8s-cluster-kubeconfig: ${{ inputs.k8s-cluster-kubeconfig }} + artifact-name: ${{ inputs.artifact-name }} branch-name: ${{ inputs.branch-name }} random-suffix: ${{ needs.install-kubeblocks-pre.outputs.random-suffix }} secrets: inherit @@ -266,7 +266,7 @@ jobs: test-type-name: "greptimedb-pre" test-args: "${{ inputs.test-args }}" k8s-cluster-name: ${{ inputs.k8s-cluster-name }} - k8s-cluster-kubeconfig: ${{ inputs.k8s-cluster-kubeconfig }} + artifact-name: ${{ inputs.artifact-name }} branch-name: ${{ inputs.branch-name }} random-suffix: ${{ needs.install-kubeblocks-pre.outputs.random-suffix }} secrets: inherit @@ -283,7 +283,7 @@ jobs: test-type-name: "nebula-pre" test-args: "${{ inputs.test-args }}" k8s-cluster-name: ${{ inputs.k8s-cluster-name }} - k8s-cluster-kubeconfig: ${{ inputs.k8s-cluster-kubeconfig }} + artifact-name: ${{ inputs.artifact-name }} branch-name: ${{ inputs.branch-name }} random-suffix: ${{ needs.install-kubeblocks-pre.outputs.random-suffix }} secrets: inherit @@ -300,7 +300,7 @@ jobs: test-type-name: "risingwave-pre" test-args: "${{ inputs.test-args }}" k8s-cluster-name: ${{ inputs.k8s-cluster-name }} - k8s-cluster-kubeconfig: ${{ inputs.k8s-cluster-kubeconfig }} + artifact-name: ${{ inputs.artifact-name }} branch-name: ${{ inputs.branch-name }} random-suffix: ${{ needs.install-kubeblocks-pre.outputs.random-suffix }} secrets: inherit @@ -317,7 +317,7 @@ jobs: test-type-name: "starrocks-pre" test-args: "${{ inputs.test-args }}" k8s-cluster-name: ${{ inputs.k8s-cluster-name }} - k8s-cluster-kubeconfig: ${{ inputs.k8s-cluster-kubeconfig }} + artifact-name: ${{ inputs.artifact-name }} branch-name: ${{ inputs.branch-name }} random-suffix: ${{ needs.install-kubeblocks-pre.outputs.random-suffix }} secrets: inherit @@ -334,7 +334,7 @@ jobs: test-type-name: "etcd-pre" test-args: "${{ inputs.test-args }}" k8s-cluster-name: ${{ inputs.k8s-cluster-name }} - k8s-cluster-kubeconfig: ${{ inputs.k8s-cluster-kubeconfig }} + artifact-name: ${{ inputs.artifact-name }} branch-name: ${{ inputs.branch-name }} random-suffix: ${{ needs.install-kubeblocks-pre.outputs.random-suffix }} secrets: inherit @@ -351,7 +351,7 @@ jobs: test-type-name: "oceanbase-pre" test-args: "${{ inputs.test-args }}" k8s-cluster-name: ${{ inputs.k8s-cluster-name }} - k8s-cluster-kubeconfig: ${{ inputs.k8s-cluster-kubeconfig }} + artifact-name: ${{ inputs.artifact-name }} branch-name: ${{ inputs.branch-name }} random-suffix: ${{ needs.install-kubeblocks-pre.outputs.random-suffix }} secrets: inherit @@ -368,7 +368,7 @@ jobs: test-type-name: "foxlake-pre" test-args: "${{ inputs.test-args }}" k8s-cluster-name: ${{ inputs.k8s-cluster-name }} - k8s-cluster-kubeconfig: ${{ inputs.k8s-cluster-kubeconfig }} + artifact-name: ${{ inputs.artifact-name }} branch-name: ${{ inputs.branch-name }} random-suffix: ${{ needs.install-kubeblocks-pre.outputs.random-suffix }} secrets: inherit @@ -385,7 +385,7 @@ jobs: test-type-name: "orioledb-pre" test-args: "${{ inputs.test-args }}" k8s-cluster-name: ${{ inputs.k8s-cluster-name }} - k8s-cluster-kubeconfig: ${{ inputs.k8s-cluster-kubeconfig }} + artifact-name: ${{ inputs.artifact-name }} branch-name: ${{ inputs.branch-name }} random-suffix: ${{ needs.install-kubeblocks-pre.outputs.random-suffix }} secrets: inherit @@ -402,7 +402,7 @@ jobs: test-type-name: "official-pg-pre" test-args: "${{ inputs.test-args }}" k8s-cluster-name: ${{ inputs.k8s-cluster-name }} - k8s-cluster-kubeconfig: ${{ inputs.k8s-cluster-kubeconfig }} + artifact-name: ${{ inputs.artifact-name }} branch-name: ${{ inputs.branch-name }} random-suffix: ${{ needs.install-kubeblocks-pre.outputs.random-suffix }} secrets: inherit @@ -419,7 +419,7 @@ jobs: test-type-name: "asmysql-pre" test-args: "${{ inputs.test-args }}" k8s-cluster-name: ${{ inputs.k8s-cluster-name }} - k8s-cluster-kubeconfig: ${{ inputs.k8s-cluster-kubeconfig }} + artifact-name: ${{ inputs.artifact-name }} branch-name: ${{ inputs.branch-name }} random-suffix: ${{ needs.install-kubeblocks-pre.outputs.random-suffix }} secrets: inherit @@ -436,7 +436,7 @@ jobs: test-type-name: "openldap-pre" test-args: "${{ inputs.test-args }}" k8s-cluster-name: ${{ inputs.k8s-cluster-name }} - k8s-cluster-kubeconfig: ${{ inputs.k8s-cluster-kubeconfig }} + artifact-name: ${{ inputs.artifact-name }} branch-name: ${{ inputs.branch-name }} random-suffix: ${{ needs.install-kubeblocks-pre.outputs.random-suffix }} secrets: inherit @@ -453,7 +453,7 @@ jobs: test-type-name: "polardbx-pre" test-args: "${{ inputs.test-args }}" k8s-cluster-name: ${{ inputs.k8s-cluster-name }} - k8s-cluster-kubeconfig: ${{ inputs.k8s-cluster-kubeconfig }} + artifact-name: ${{ inputs.artifact-name }} branch-name: ${{ inputs.branch-name }} random-suffix: ${{ needs.install-kubeblocks-pre.outputs.random-suffix }} secrets: inherit @@ -470,7 +470,7 @@ jobs: test-type-name: "opensearch-pre" test-args: "${{ inputs.test-args }}" k8s-cluster-name: ${{ inputs.k8s-cluster-name }} - k8s-cluster-kubeconfig: ${{ inputs.k8s-cluster-kubeconfig }} + artifact-name: ${{ inputs.artifact-name }} branch-name: ${{ inputs.branch-name }} random-suffix: ${{ needs.install-kubeblocks-pre.outputs.random-suffix }} secrets: inherit @@ -487,7 +487,7 @@ jobs: test-type-name: "elasticsearch-pre" test-args: "${{ inputs.test-args }}" k8s-cluster-name: ${{ inputs.k8s-cluster-name }} - k8s-cluster-kubeconfig: ${{ inputs.k8s-cluster-kubeconfig }} + artifact-name: ${{ inputs.artifact-name }} branch-name: ${{ inputs.branch-name }} random-suffix: ${{ needs.install-kubeblocks-pre.outputs.random-suffix }} secrets: inherit @@ -504,7 +504,7 @@ jobs: test-type-name: "vllm-pre" test-args: "${{ inputs.test-args }}" k8s-cluster-name: ${{ inputs.k8s-cluster-name }} - k8s-cluster-kubeconfig: ${{ inputs.k8s-cluster-kubeconfig }} + artifact-name: ${{ inputs.artifact-name }} branch-name: ${{ inputs.branch-name }} random-suffix: ${{ needs.install-kubeblocks-pre.outputs.random-suffix }} secrets: inherit @@ -521,7 +521,7 @@ jobs: test-type-name: "tdengine-pre" test-args: "${{ inputs.test-args }}" k8s-cluster-name: ${{ inputs.k8s-cluster-name }} - k8s-cluster-kubeconfig: ${{ inputs.k8s-cluster-kubeconfig }} + artifact-name: ${{ inputs.artifact-name }} branch-name: ${{ inputs.branch-name }} random-suffix: ${{ needs.install-kubeblocks-pre.outputs.random-suffix }} secrets: inherit @@ -538,7 +538,7 @@ jobs: test-type-name: "milvus-pre" test-args: "${{ inputs.test-args }}" k8s-cluster-name: ${{ inputs.k8s-cluster-name }} - k8s-cluster-kubeconfig: ${{ inputs.k8s-cluster-kubeconfig }} + artifact-name: ${{ inputs.artifact-name }} branch-name: ${{ inputs.branch-name }} random-suffix: ${{ needs.install-kubeblocks-pre.outputs.random-suffix }} secrets: inherit @@ -555,7 +555,7 @@ jobs: test-type-name: "clickhouse-pre" test-args: "${{ inputs.test-args }}" k8s-cluster-name: ${{ inputs.k8s-cluster-name }} - k8s-cluster-kubeconfig: ${{ inputs.k8s-cluster-kubeconfig }} + artifact-name: ${{ inputs.artifact-name }} branch-name: ${{ inputs.branch-name }} random-suffix: ${{ needs.install-kubeblocks-pre.outputs.random-suffix }} secrets: inherit @@ -572,7 +572,7 @@ jobs: test-type-name: "pika-pre" test-args: "${{ inputs.test-args }}" k8s-cluster-name: ${{ inputs.k8s-cluster-name }} - k8s-cluster-kubeconfig: ${{ inputs.k8s-cluster-kubeconfig }} + artifact-name: ${{ inputs.artifact-name }} branch-name: ${{ inputs.branch-name }} random-suffix: ${{ needs.install-kubeblocks-pre.outputs.random-suffix }} secrets: inherit @@ -589,7 +589,7 @@ jobs: test-type-name: "ggml-pre" test-args: "${{ inputs.test-args }}" k8s-cluster-name: ${{ inputs.k8s-cluster-name }} - k8s-cluster-kubeconfig: ${{ inputs.k8s-cluster-kubeconfig }} + artifact-name: ${{ inputs.artifact-name }} branch-name: ${{ inputs.branch-name }} random-suffix: ${{ needs.install-kubeblocks-pre.outputs.random-suffix }} secrets: inherit @@ -606,7 +606,7 @@ jobs: test-type-name: "zookeeper-pre" test-args: "${{ inputs.test-args }}" k8s-cluster-name: ${{ inputs.k8s-cluster-name }} - k8s-cluster-kubeconfig: ${{ inputs.k8s-cluster-kubeconfig }} + artifact-name: ${{ inputs.artifact-name }} branch-name: ${{ inputs.branch-name }} random-suffix: ${{ needs.install-kubeblocks-pre.outputs.random-suffix }} secrets: inherit @@ -623,7 +623,7 @@ jobs: test-type-name: "mariadb-pre" test-args: "${{ inputs.test-args }}" k8s-cluster-name: ${{ inputs.k8s-cluster-name }} - k8s-cluster-kubeconfig: ${{ inputs.k8s-cluster-kubeconfig }} + artifact-name: ${{ inputs.artifact-name }} branch-name: ${{ inputs.branch-name }} random-suffix: ${{ needs.install-kubeblocks-pre.outputs.random-suffix }} secrets: inherit @@ -640,7 +640,7 @@ jobs: test-type-name: "tidb-pre" test-args: "${{ inputs.test-args }}" k8s-cluster-name: ${{ inputs.k8s-cluster-name }} - k8s-cluster-kubeconfig: ${{ inputs.k8s-cluster-kubeconfig }} + artifact-name: ${{ inputs.artifact-name }} branch-name: ${{ inputs.branch-name }} random-suffix: ${{ needs.install-kubeblocks-pre.outputs.random-suffix }} secrets: inherit @@ -657,7 +657,7 @@ jobs: test-type-name: "xinference-pre" test-args: "${{ inputs.test-args }}" k8s-cluster-name: ${{ inputs.k8s-cluster-name }} - k8s-cluster-kubeconfig: ${{ inputs.k8s-cluster-kubeconfig }} + artifact-name: ${{ inputs.artifact-name }} branch-name: ${{ inputs.branch-name }} random-suffix: ${{ needs.install-kubeblocks-pre.outputs.random-suffix }} secrets: inherit @@ -674,7 +674,7 @@ jobs: test-type-name: "oracle" test-args: "${{ inputs.test-args }}" k8s-cluster-name: ${{ inputs.k8s-cluster-name }} - k8s-cluster-kubeconfig: ${{ inputs.k8s-cluster-kubeconfig }} + artifact-name: ${{ inputs.artifact-name }} branch-name: ${{ inputs.branch-name }} random-suffix: ${{ needs.install-kubeblocks-pre.outputs.random-suffix }} secrets: inherit @@ -691,7 +691,7 @@ jobs: test-type-name: "opengauss-pre" test-args: "${{ inputs.test-args }}" k8s-cluster-name: ${{ inputs.k8s-cluster-name }} - k8s-cluster-kubeconfig: ${{ inputs.k8s-cluster-kubeconfig }} + artifact-name: ${{ inputs.artifact-name }} branch-name: ${{ inputs.branch-name }} random-suffix: ${{ needs.install-kubeblocks-pre.outputs.random-suffix }} secrets: inherit @@ -708,7 +708,7 @@ jobs: test-type-name: "influxdb-pre" test-args: "${{ inputs.test-args }}" k8s-cluster-name: ${{ inputs.k8s-cluster-name }} - k8s-cluster-kubeconfig: ${{ inputs.k8s-cluster-kubeconfig }} + artifact-name: ${{ inputs.artifact-name }} branch-name: ${{ inputs.branch-name }} random-suffix: ${{ needs.install-kubeblocks-pre.outputs.random-suffix }} secrets: inherit @@ -725,7 +725,7 @@ jobs: test-type-name: "flink-pre" test-args: "${{ inputs.test-args }}" k8s-cluster-name: ${{ inputs.k8s-cluster-name }} - k8s-cluster-kubeconfig: ${{ inputs.k8s-cluster-kubeconfig }} + artifact-name: ${{ inputs.artifact-name }} branch-name: ${{ inputs.branch-name }} random-suffix: ${{ needs.install-kubeblocks-pre.outputs.random-suffix }} secrets: inherit @@ -742,7 +742,7 @@ jobs: test-type-name: "solr-pre" test-args: "${{ inputs.test-args }}" k8s-cluster-name: ${{ inputs.k8s-cluster-name }} - k8s-cluster-kubeconfig: ${{ inputs.k8s-cluster-kubeconfig }} + artifact-name: ${{ inputs.artifact-name }} branch-name: ${{ inputs.branch-name }} random-suffix: ${{ needs.install-kubeblocks-pre.outputs.random-suffix }} secrets: inherit @@ -759,7 +759,7 @@ jobs: test-type-name: "halo-pre" test-args: "${{ inputs.test-args }}" k8s-cluster-name: ${{ inputs.k8s-cluster-name }} - k8s-cluster-kubeconfig: ${{ inputs.k8s-cluster-kubeconfig }} + artifact-name: ${{ inputs.artifact-name }} branch-name: ${{ inputs.branch-name }} random-suffix: ${{ needs.install-kubeblocks-pre.outputs.random-suffix }} secrets: inherit @@ -776,7 +776,7 @@ jobs: test-type-name: "mogdb-pre" test-args: "${{ inputs.test-args }}" k8s-cluster-name: ${{ inputs.k8s-cluster-name }} - k8s-cluster-kubeconfig: ${{ inputs.k8s-cluster-kubeconfig }} + artifact-name: ${{ inputs.artifact-name }} branch-name: ${{ inputs.branch-name }} random-suffix: ${{ needs.install-kubeblocks-pre.outputs.random-suffix }} secrets: inherit @@ -793,7 +793,7 @@ jobs: test-type-name: "oceanbase-ent-pre" test-args: "${{ inputs.test-args }}" k8s-cluster-name: ${{ inputs.k8s-cluster-name }} - k8s-cluster-kubeconfig: ${{ inputs.k8s-cluster-kubeconfig }} + artifact-name: ${{ inputs.artifact-name }} branch-name: ${{ inputs.branch-name }} random-suffix: ${{ needs.install-kubeblocks-pre.outputs.random-suffix }} secrets: inherit @@ -810,7 +810,7 @@ jobs: test-type-name: "starrocks-ent-pre" test-args: "${{ inputs.test-args }}" k8s-cluster-name: ${{ inputs.k8s-cluster-name }} - k8s-cluster-kubeconfig: ${{ inputs.k8s-cluster-kubeconfig }} + artifact-name: ${{ inputs.artifact-name }} branch-name: ${{ inputs.branch-name }} random-suffix: ${{ needs.install-kubeblocks-pre.outputs.random-suffix }} secrets: inherit @@ -827,7 +827,7 @@ jobs: test-type-name: "apecloud-postgresql-pre" test-args: "${{ inputs.test-args }}" k8s-cluster-name: ${{ inputs.k8s-cluster-name }} - k8s-cluster-kubeconfig: ${{ inputs.k8s-cluster-kubeconfig }} + artifact-name: ${{ inputs.artifact-name }} branch-name: ${{ inputs.branch-name }} random-suffix: ${{ needs.install-kubeblocks-pre.outputs.random-suffix }} secrets: inherit @@ -844,7 +844,7 @@ jobs: test-type-name: "yashandb-pre" test-args: "${{ inputs.test-args }}" k8s-cluster-name: ${{ inputs.k8s-cluster-name }} - k8s-cluster-kubeconfig: ${{ inputs.k8s-cluster-kubeconfig }} + artifact-name: ${{ inputs.artifact-name }} branch-name: ${{ inputs.branch-name }} random-suffix: ${{ needs.install-kubeblocks-pre.outputs.random-suffix }} secrets: inherit @@ -861,7 +861,7 @@ jobs: test-type-name: "redis-cluster-pre" test-args: "${{ inputs.test-args }}" k8s-cluster-name: ${{ inputs.k8s-cluster-name }} - k8s-cluster-kubeconfig: ${{ inputs.k8s-cluster-kubeconfig }} + artifact-name: ${{ inputs.artifact-name }} branch-name: ${{ inputs.branch-name }} random-suffix: ${{ needs.install-kubeblocks-pre.outputs.random-suffix }} secrets: inherit @@ -878,7 +878,7 @@ jobs: test-type-name: "camellia-redis-proxy-pre" test-args: "${{ inputs.test-args }}" k8s-cluster-name: ${{ inputs.k8s-cluster-name }} - k8s-cluster-kubeconfig: ${{ inputs.k8s-cluster-kubeconfig }} + artifact-name: ${{ inputs.artifact-name }} branch-name: ${{ inputs.branch-name }} random-suffix: ${{ needs.install-kubeblocks-pre.outputs.random-suffix }} secrets: inherit @@ -895,7 +895,7 @@ jobs: test-type-name: "dmdb-pre" test-args: "${{ inputs.test-args }}" k8s-cluster-name: ${{ inputs.k8s-cluster-name }} - k8s-cluster-kubeconfig: ${{ inputs.k8s-cluster-kubeconfig }} + artifact-name: ${{ inputs.artifact-name }} branch-name: ${{ inputs.branch-name }} random-suffix: ${{ needs.install-kubeblocks-pre.outputs.random-suffix }} secrets: inherit @@ -912,7 +912,7 @@ jobs: test-type-name: "minio-pre" test-args: "${{ inputs.test-args }}" k8s-cluster-name: ${{ inputs.k8s-cluster-name }} - k8s-cluster-kubeconfig: ${{ inputs.k8s-cluster-kubeconfig }} + artifact-name: ${{ inputs.artifact-name }} branch-name: ${{ inputs.branch-name }} random-suffix: ${{ needs.install-kubeblocks-pre.outputs.random-suffix }} secrets: inherit @@ -929,7 +929,7 @@ jobs: test-type-name: "orchestrator-pre" test-args: "${{ inputs.test-args }}" k8s-cluster-name: ${{ inputs.k8s-cluster-name }} - k8s-cluster-kubeconfig: ${{ inputs.k8s-cluster-kubeconfig }} + artifact-name: ${{ inputs.artifact-name }} branch-name: ${{ inputs.branch-name }} random-suffix: ${{ needs.install-kubeblocks-pre.outputs.random-suffix }} secrets: inherit @@ -1192,7 +1192,7 @@ jobs: test-type-name: "install-kubeblocks" test-args: "--config-s3 true --upgrade true ${{ inputs.test-args }}" k8s-cluster-name: ${{ inputs.k8s-cluster-name }} - k8s-cluster-kubeconfig: ${{ inputs.k8s-cluster-kubeconfig }} + artifact-name: ${{ inputs.artifact-name }} branch-name: ${{ inputs.branch-name }} random-suffix: ${{ needs.install-kubeblocks-pre.outputs.random-suffix }} secrets: inherit diff --git a/.github/workflows/kbcli-test-k8s.yml b/.github/workflows/kbcli-test-k8s.yml index fde5880..87ed24e 100644 --- a/.github/workflows/kbcli-test-k8s.yml +++ b/.github/workflows/kbcli-test-k8s.yml @@ -149,7 +149,7 @@ jobs: test-type: "${{ inputs.TEST_TYPE }}" test-args: "${{ inputs.ARGS }}" k8s-cluster-name: ${{ needs.terraform-init-k8s.outputs.k8s-cluster-name }} - k8s-cluster-kubeconfig: ${{ needs.terraform-init-k8s.outputs.k8s-cluster-kubeconfig }} + artifact-name: cicd-${{ inputs.CLOUD_PROVIDER }}-${{ github.sha }} branch-name: ${{ inputs.BRANCH_NAME }} secrets: inherit @@ -166,7 +166,7 @@ jobs: test-type-name: "apecloud-mysql" test-args: "${{ inputs.ARGS }}" k8s-cluster-name: ${{ needs.terraform-init-k8s.outputs.k8s-cluster-name }} - k8s-cluster-kubeconfig: ${{ needs.terraform-init-k8s.outputs.k8s-cluster-kubeconfig }} + artifact-name: cicd-${{ inputs.CLOUD_PROVIDER }}-${{ github.sha }} branch-name: ${{ inputs.BRANCH_NAME }} random-suffix: ${{ needs.test-kubeblocks.outputs.random-suffix }} secrets: inherit @@ -184,7 +184,7 @@ jobs: test-type-name: "postgresql" test-args: "${{ inputs.ARGS }}" k8s-cluster-name: ${{ needs.terraform-init-k8s.outputs.k8s-cluster-name }} - k8s-cluster-kubeconfig: ${{ needs.terraform-init-k8s.outputs.k8s-cluster-kubeconfig }} + artifact-name: cicd-${{ inputs.CLOUD_PROVIDER }}-${{ github.sha }} branch-name: ${{ inputs.BRANCH_NAME }} random-suffix: ${{ needs.test-kubeblocks.outputs.random-suffix }} secrets: inherit @@ -202,7 +202,7 @@ jobs: test-type-name: "redis" test-args: "${{ inputs.ARGS }}" k8s-cluster-name: ${{ needs.terraform-init-k8s.outputs.k8s-cluster-name }} - k8s-cluster-kubeconfig: ${{ needs.terraform-init-k8s.outputs.k8s-cluster-kubeconfig }} + artifact-name: cicd-${{ inputs.CLOUD_PROVIDER }}-${{ github.sha }} branch-name: ${{ inputs.BRANCH_NAME }} random-suffix: ${{ needs.test-kubeblocks.outputs.random-suffix }} secrets: inherit @@ -220,7 +220,7 @@ jobs: test-type-name: "mongodb" test-args: "${{ inputs.ARGS }}" k8s-cluster-name: ${{ needs.terraform-init-k8s.outputs.k8s-cluster-name }} - k8s-cluster-kubeconfig: ${{ needs.terraform-init-k8s.outputs.k8s-cluster-kubeconfig }} + artifact-name: cicd-${{ inputs.CLOUD_PROVIDER }}-${{ github.sha }} branch-name: ${{ inputs.BRANCH_NAME }} random-suffix: ${{ needs.test-kubeblocks.outputs.random-suffix }} secrets: inherit @@ -238,7 +238,7 @@ jobs: test-type-name: "kafka" test-args: "${{ inputs.ARGS }}" k8s-cluster-name: ${{ needs.terraform-init-k8s.outputs.k8s-cluster-name }} - k8s-cluster-kubeconfig: ${{ needs.terraform-init-k8s.outputs.k8s-cluster-kubeconfig }} + artifact-name: cicd-${{ inputs.CLOUD_PROVIDER }}-${{ github.sha }} branch-name: ${{ inputs.BRANCH_NAME }} random-suffix: ${{ needs.test-kubeblocks.outputs.random-suffix }} secrets: inherit @@ -256,7 +256,7 @@ jobs: test-type-name: "pulsar" test-args: "${{ inputs.ARGS }}" k8s-cluster-name: ${{ needs.terraform-init-k8s.outputs.k8s-cluster-name }} - k8s-cluster-kubeconfig: ${{ needs.terraform-init-k8s.outputs.k8s-cluster-kubeconfig }} + artifact-name: cicd-${{ inputs.CLOUD_PROVIDER }}-${{ github.sha }} branch-name: ${{ inputs.BRANCH_NAME }} random-suffix: ${{ needs.test-kubeblocks.outputs.random-suffix }} secrets: inherit @@ -274,7 +274,7 @@ jobs: test-type-name: "mysqlscale" test-args: "--enable-proxy true ${{ inputs.ARGS }}" k8s-cluster-name: ${{ needs.terraform-init-k8s.outputs.k8s-cluster-name }} - k8s-cluster-kubeconfig: ${{ needs.terraform-init-k8s.outputs.k8s-cluster-kubeconfig }} + artifact-name: cicd-${{ inputs.CLOUD_PROVIDER }}-${{ github.sha }} branch-name: ${{ inputs.BRANCH_NAME }} random-suffix: ${{ needs.test-kubeblocks.outputs.random-suffix }} secrets: inherit @@ -292,7 +292,7 @@ jobs: test-type-name: "weaviate" test-args: "${{ inputs.ARGS }}" k8s-cluster-name: ${{ needs.terraform-init-k8s.outputs.k8s-cluster-name }} - k8s-cluster-kubeconfig: ${{ needs.terraform-init-k8s.outputs.k8s-cluster-kubeconfig }} + artifact-name: cicd-${{ inputs.CLOUD_PROVIDER }}-${{ github.sha }} branch-name: ${{ inputs.BRANCH_NAME }} random-suffix: ${{ needs.test-kubeblocks.outputs.random-suffix }} secrets: inherit @@ -310,7 +310,7 @@ jobs: test-type-name: "qdrant" test-args: "${{ inputs.ARGS }}" k8s-cluster-name: ${{ needs.terraform-init-k8s.outputs.k8s-cluster-name }} - k8s-cluster-kubeconfig: ${{ needs.terraform-init-k8s.outputs.k8s-cluster-kubeconfig }} + artifact-name: cicd-${{ inputs.CLOUD_PROVIDER }}-${{ github.sha }} branch-name: ${{ inputs.BRANCH_NAME }} random-suffix: ${{ needs.test-kubeblocks.outputs.random-suffix }} secrets: inherit @@ -328,7 +328,7 @@ jobs: test-type-name: "smartengine" test-args: "--smartengine true ${{ inputs.ARGS }}" k8s-cluster-name: ${{ needs.terraform-init-k8s.outputs.k8s-cluster-name }} - k8s-cluster-kubeconfig: ${{ needs.terraform-init-k8s.outputs.k8s-cluster-kubeconfig }} + artifact-name: cicd-${{ inputs.CLOUD_PROVIDER }}-${{ github.sha }} branch-name: ${{ inputs.BRANCH_NAME }} random-suffix: ${{ needs.test-kubeblocks.outputs.random-suffix }} secrets: inherit @@ -346,7 +346,7 @@ jobs: test-type-name: "greptimedb" test-args: "${{ inputs.ARGS }}" k8s-cluster-name: ${{ needs.terraform-init-k8s.outputs.k8s-cluster-name }} - k8s-cluster-kubeconfig: ${{ needs.terraform-init-k8s.outputs.k8s-cluster-kubeconfig }} + artifact-name: cicd-${{ inputs.CLOUD_PROVIDER }}-${{ github.sha }} branch-name: ${{ inputs.BRANCH_NAME }} random-suffix: ${{ needs.test-kubeblocks.outputs.random-suffix }} secrets: inherit @@ -364,7 +364,7 @@ jobs: test-type-name: "nebula" test-args: "${{ inputs.ARGS }}" k8s-cluster-name: ${{ needs.terraform-init-k8s.outputs.k8s-cluster-name }} - k8s-cluster-kubeconfig: ${{ needs.terraform-init-k8s.outputs.k8s-cluster-kubeconfig }} + artifact-name: cicd-${{ inputs.CLOUD_PROVIDER }}-${{ github.sha }} branch-name: ${{ inputs.BRANCH_NAME }} random-suffix: ${{ needs.test-kubeblocks.outputs.random-suffix }} secrets: inherit @@ -382,7 +382,7 @@ jobs: test-type-name: "risingwave" test-args: "${{ inputs.ARGS }}" k8s-cluster-name: ${{ needs.terraform-init-k8s.outputs.k8s-cluster-name }} - k8s-cluster-kubeconfig: ${{ needs.terraform-init-k8s.outputs.k8s-cluster-kubeconfig }} + artifact-name: cicd-${{ inputs.CLOUD_PROVIDER }}-${{ github.sha }} branch-name: ${{ inputs.BRANCH_NAME }} random-suffix: ${{ needs.test-kubeblocks.outputs.random-suffix }} secrets: inherit @@ -400,7 +400,7 @@ jobs: test-type-name: "starrocks" test-args: "${{ inputs.ARGS }}" k8s-cluster-name: ${{ needs.terraform-init-k8s.outputs.k8s-cluster-name }} - k8s-cluster-kubeconfig: ${{ needs.terraform-init-k8s.outputs.k8s-cluster-kubeconfig }} + artifact-name: cicd-${{ inputs.CLOUD_PROVIDER }}-${{ github.sha }} branch-name: ${{ inputs.BRANCH_NAME }} random-suffix: ${{ needs.test-kubeblocks.outputs.random-suffix }} secrets: inherit @@ -418,7 +418,7 @@ jobs: test-type-name: "etcd" test-args: "${{ inputs.ARGS }}" k8s-cluster-name: ${{ needs.terraform-init-k8s.outputs.k8s-cluster-name }} - k8s-cluster-kubeconfig: ${{ needs.terraform-init-k8s.outputs.k8s-cluster-kubeconfig }} + artifact-name: cicd-${{ inputs.CLOUD_PROVIDER }}-${{ github.sha }} branch-name: ${{ inputs.BRANCH_NAME }} random-suffix: ${{ needs.test-kubeblocks.outputs.random-suffix }} secrets: inherit @@ -436,7 +436,7 @@ jobs: test-type-name: "oceanbase" test-args: "${{ inputs.ARGS }}" k8s-cluster-name: ${{ needs.terraform-init-k8s.outputs.k8s-cluster-name }} - k8s-cluster-kubeconfig: ${{ needs.terraform-init-k8s.outputs.k8s-cluster-kubeconfig }} + artifact-name: cicd-${{ inputs.CLOUD_PROVIDER }}-${{ github.sha }} branch-name: ${{ inputs.BRANCH_NAME }} random-suffix: ${{ needs.test-kubeblocks.outputs.random-suffix }} secrets: inherit @@ -454,7 +454,7 @@ jobs: test-type-name: "foxlake" test-args: "${{ inputs.ARGS }}" k8s-cluster-name: ${{ needs.terraform-init-k8s.outputs.k8s-cluster-name }} - k8s-cluster-kubeconfig: ${{ needs.terraform-init-k8s.outputs.k8s-cluster-kubeconfig }} + artifact-name: cicd-${{ inputs.CLOUD_PROVIDER }}-${{ github.sha }} branch-name: ${{ inputs.BRANCH_NAME }} random-suffix: ${{ needs.test-kubeblocks.outputs.random-suffix }} secrets: inherit @@ -472,7 +472,7 @@ jobs: test-type-name: "orioledb" test-args: "${{ inputs.ARGS }}" k8s-cluster-name: ${{ needs.terraform-init-k8s.outputs.k8s-cluster-name }} - k8s-cluster-kubeconfig: ${{ needs.terraform-init-k8s.outputs.k8s-cluster-kubeconfig }} + artifact-name: cicd-${{ inputs.CLOUD_PROVIDER }}-${{ github.sha }} branch-name: ${{ inputs.BRANCH_NAME }} random-suffix: ${{ needs.test-kubeblocks.outputs.random-suffix }} secrets: inherit @@ -490,7 +490,7 @@ jobs: test-type-name: "official-pg" test-args: "${{ inputs.ARGS }}" k8s-cluster-name: ${{ needs.terraform-init-k8s.outputs.k8s-cluster-name }} - k8s-cluster-kubeconfig: ${{ needs.terraform-init-k8s.outputs.k8s-cluster-kubeconfig }} + artifact-name: cicd-${{ inputs.CLOUD_PROVIDER }}-${{ github.sha }} branch-name: ${{ inputs.BRANCH_NAME }} random-suffix: ${{ needs.test-kubeblocks.outputs.random-suffix }} secrets: inherit @@ -508,7 +508,7 @@ jobs: test-type-name: "asmysql" test-args: "${{ inputs.ARGS }}" k8s-cluster-name: ${{ needs.terraform-init-k8s.outputs.k8s-cluster-name }} - k8s-cluster-kubeconfig: ${{ needs.terraform-init-k8s.outputs.k8s-cluster-kubeconfig }} + artifact-name: cicd-${{ inputs.CLOUD_PROVIDER }}-${{ github.sha }} branch-name: ${{ inputs.BRANCH_NAME }} random-suffix: ${{ needs.test-kubeblocks.outputs.random-suffix }} secrets: inherit @@ -526,7 +526,7 @@ jobs: test-type-name: "openldap" test-args: "${{ inputs.ARGS }}" k8s-cluster-name: ${{ needs.terraform-init-k8s.outputs.k8s-cluster-name }} - k8s-cluster-kubeconfig: ${{ needs.terraform-init-k8s.outputs.k8s-cluster-kubeconfig }} + artifact-name: cicd-${{ inputs.CLOUD_PROVIDER }}-${{ github.sha }} branch-name: ${{ inputs.BRANCH_NAME }} random-suffix: ${{ needs.test-kubeblocks.outputs.random-suffix }} secrets: inherit @@ -544,7 +544,7 @@ jobs: test-type-name: "polardbx" test-args: "${{ inputs.ARGS }}" k8s-cluster-name: ${{ needs.terraform-init-k8s.outputs.k8s-cluster-name }} - k8s-cluster-kubeconfig: ${{ needs.terraform-init-k8s.outputs.k8s-cluster-kubeconfig }} + artifact-name: cicd-${{ inputs.CLOUD_PROVIDER }}-${{ github.sha }} branch-name: ${{ inputs.BRANCH_NAME }} random-suffix: ${{ needs.test-kubeblocks.outputs.random-suffix }} secrets: inherit @@ -562,7 +562,7 @@ jobs: test-type-name: "opensearch" test-args: "${{ inputs.ARGS }}" k8s-cluster-name: ${{ needs.terraform-init-k8s.outputs.k8s-cluster-name }} - k8s-cluster-kubeconfig: ${{ needs.terraform-init-k8s.outputs.k8s-cluster-kubeconfig }} + artifact-name: cicd-${{ inputs.CLOUD_PROVIDER }}-${{ github.sha }} branch-name: ${{ inputs.BRANCH_NAME }} random-suffix: ${{ needs.test-kubeblocks.outputs.random-suffix }} secrets: inherit @@ -580,7 +580,7 @@ jobs: test-type-name: "elasticsearch" test-args: "${{ inputs.ARGS }}" k8s-cluster-name: ${{ needs.terraform-init-k8s.outputs.k8s-cluster-name }} - k8s-cluster-kubeconfig: ${{ needs.terraform-init-k8s.outputs.k8s-cluster-kubeconfig }} + artifact-name: cicd-${{ inputs.CLOUD_PROVIDER }}-${{ github.sha }} branch-name: ${{ inputs.BRANCH_NAME }} random-suffix: ${{ needs.test-kubeblocks.outputs.random-suffix }} secrets: inherit @@ -598,7 +598,7 @@ jobs: test-type-name: "vllm" test-args: "${{ inputs.ARGS }}" k8s-cluster-name: ${{ needs.terraform-init-k8s.outputs.k8s-cluster-name }} - k8s-cluster-kubeconfig: ${{ needs.terraform-init-k8s.outputs.k8s-cluster-kubeconfig }} + artifact-name: cicd-${{ inputs.CLOUD_PROVIDER }}-${{ github.sha }} branch-name: ${{ inputs.BRANCH_NAME }} random-suffix: ${{ needs.test-kubeblocks.outputs.random-suffix }} secrets: inherit @@ -616,7 +616,7 @@ jobs: test-type-name: "tdengine" test-args: "${{ inputs.ARGS }}" k8s-cluster-name: ${{ needs.terraform-init-k8s.outputs.k8s-cluster-name }} - k8s-cluster-kubeconfig: ${{ needs.terraform-init-k8s.outputs.k8s-cluster-kubeconfig }} + artifact-name: cicd-${{ inputs.CLOUD_PROVIDER }}-${{ github.sha }} branch-name: ${{ inputs.BRANCH_NAME }} random-suffix: ${{ needs.test-kubeblocks.outputs.random-suffix }} secrets: inherit @@ -634,7 +634,7 @@ jobs: test-type-name: "milvus" test-args: "${{ inputs.ARGS }}" k8s-cluster-name: ${{ needs.terraform-init-k8s.outputs.k8s-cluster-name }} - k8s-cluster-kubeconfig: ${{ needs.terraform-init-k8s.outputs.k8s-cluster-kubeconfig }} + artifact-name: cicd-${{ inputs.CLOUD_PROVIDER }}-${{ github.sha }} branch-name: ${{ inputs.BRANCH_NAME }} random-suffix: ${{ needs.test-kubeblocks.outputs.random-suffix }} secrets: inherit @@ -652,7 +652,7 @@ jobs: test-type-name: "clickhouse" test-args: "${{ inputs.ARGS }}" k8s-cluster-name: ${{ needs.terraform-init-k8s.outputs.k8s-cluster-name }} - k8s-cluster-kubeconfig: ${{ needs.terraform-init-k8s.outputs.k8s-cluster-kubeconfig }} + artifact-name: cicd-${{ inputs.CLOUD_PROVIDER }}-${{ github.sha }} branch-name: ${{ inputs.BRANCH_NAME }} random-suffix: ${{ needs.test-kubeblocks.outputs.random-suffix }} secrets: inherit @@ -670,7 +670,7 @@ jobs: test-type-name: "pika" test-args: "${{ inputs.ARGS }}" k8s-cluster-name: ${{ needs.terraform-init-k8s.outputs.k8s-cluster-name }} - k8s-cluster-kubeconfig: ${{ needs.terraform-init-k8s.outputs.k8s-cluster-kubeconfig }} + artifact-name: cicd-${{ inputs.CLOUD_PROVIDER }}-${{ github.sha }} branch-name: ${{ inputs.BRANCH_NAME }} random-suffix: ${{ needs.test-kubeblocks.outputs.random-suffix }} secrets: inherit @@ -688,7 +688,7 @@ jobs: test-type-name: "ggml" test-args: "${{ inputs.ARGS }}" k8s-cluster-name: ${{ needs.terraform-init-k8s.outputs.k8s-cluster-name }} - k8s-cluster-kubeconfig: ${{ needs.terraform-init-k8s.outputs.k8s-cluster-kubeconfig }} + artifact-name: cicd-${{ inputs.CLOUD_PROVIDER }}-${{ github.sha }} branch-name: ${{ inputs.BRANCH_NAME }} random-suffix: ${{ needs.test-kubeblocks.outputs.random-suffix }} secrets: inherit @@ -706,7 +706,7 @@ jobs: test-type-name: "zookeeper" test-args: "${{ inputs.ARGS }}" k8s-cluster-name: ${{ needs.terraform-init-k8s.outputs.k8s-cluster-name }} - k8s-cluster-kubeconfig: ${{ needs.terraform-init-k8s.outputs.k8s-cluster-kubeconfig }} + artifact-name: cicd-${{ inputs.CLOUD_PROVIDER }}-${{ github.sha }} branch-name: ${{ inputs.BRANCH_NAME }} random-suffix: ${{ needs.test-kubeblocks.outputs.random-suffix }} secrets: inherit @@ -724,7 +724,7 @@ jobs: test-type-name: "mariadb" test-args: "${{ inputs.ARGS }}" k8s-cluster-name: ${{ needs.terraform-init-k8s.outputs.k8s-cluster-name }} - k8s-cluster-kubeconfig: ${{ needs.terraform-init-k8s.outputs.k8s-cluster-kubeconfig }} + artifact-name: cicd-${{ inputs.CLOUD_PROVIDER }}-${{ github.sha }} branch-name: ${{ inputs.BRANCH_NAME }} random-suffix: ${{ needs.test-kubeblocks.outputs.random-suffix }} secrets: inherit @@ -742,7 +742,7 @@ jobs: test-type-name: "tidb" test-args: "${{ inputs.ARGS }}" k8s-cluster-name: ${{ needs.terraform-init-k8s.outputs.k8s-cluster-name }} - k8s-cluster-kubeconfig: ${{ needs.terraform-init-k8s.outputs.k8s-cluster-kubeconfig }} + artifact-name: cicd-${{ inputs.CLOUD_PROVIDER }}-${{ github.sha }} branch-name: ${{ inputs.BRANCH_NAME }} random-suffix: ${{ needs.test-kubeblocks.outputs.random-suffix }} secrets: inherit @@ -760,7 +760,7 @@ jobs: test-type-name: "xinference" test-args: "${{ inputs.ARGS }}" k8s-cluster-name: ${{ needs.terraform-init-k8s.outputs.k8s-cluster-name }} - k8s-cluster-kubeconfig: ${{ needs.terraform-init-k8s.outputs.k8s-cluster-kubeconfig }} + artifact-name: cicd-${{ inputs.CLOUD_PROVIDER }}-${{ github.sha }} branch-name: ${{ inputs.BRANCH_NAME }} random-suffix: ${{ needs.test-kubeblocks.outputs.random-suffix }} secrets: inherit @@ -778,7 +778,7 @@ jobs: test-type-name: "oracle" test-args: "${{ inputs.ARGS }}" k8s-cluster-name: ${{ needs.terraform-init-k8s.outputs.k8s-cluster-name }} - k8s-cluster-kubeconfig: ${{ needs.terraform-init-k8s.outputs.k8s-cluster-kubeconfig }} + artifact-name: cicd-${{ inputs.CLOUD_PROVIDER }}-${{ github.sha }} branch-name: ${{ inputs.BRANCH_NAME }} random-suffix: ${{ needs.test-kubeblocks.outputs.random-suffix }} secrets: inherit @@ -796,7 +796,7 @@ jobs: test-type-name: "opengauss" test-args: "${{ inputs.ARGS }}" k8s-cluster-name: ${{ needs.terraform-init-k8s.outputs.k8s-cluster-name }} - k8s-cluster-kubeconfig: ${{ needs.terraform-init-k8s.outputs.k8s-cluster-kubeconfig }} + artifact-name: cicd-${{ inputs.CLOUD_PROVIDER }}-${{ github.sha }} branch-name: ${{ inputs.BRANCH_NAME }} random-suffix: ${{ needs.test-kubeblocks.outputs.random-suffix }} secrets: inherit @@ -814,7 +814,7 @@ jobs: test-type-name: "influxdb" test-args: "${{ inputs.ARGS }}" k8s-cluster-name: ${{ needs.terraform-init-k8s.outputs.k8s-cluster-name }} - k8s-cluster-kubeconfig: ${{ needs.terraform-init-k8s.outputs.k8s-cluster-kubeconfig }} + artifact-name: cicd-${{ inputs.CLOUD_PROVIDER }}-${{ github.sha }} branch-name: ${{ inputs.BRANCH_NAME }} random-suffix: ${{ needs.test-kubeblocks.outputs.random-suffix }} secrets: inherit @@ -832,7 +832,7 @@ jobs: test-type-name: "flink" test-args: "${{ inputs.ARGS }}" k8s-cluster-name: ${{ needs.terraform-init-k8s.outputs.k8s-cluster-name }} - k8s-cluster-kubeconfig: ${{ needs.terraform-init-k8s.outputs.k8s-cluster-kubeconfig }} + artifact-name: cicd-${{ inputs.CLOUD_PROVIDER }}-${{ github.sha }} branch-name: ${{ inputs.BRANCH_NAME }} random-suffix: ${{ needs.test-kubeblocks.outputs.random-suffix }} secrets: inherit @@ -850,7 +850,7 @@ jobs: test-type-name: "solr" test-args: "${{ inputs.ARGS }}" k8s-cluster-name: ${{ needs.terraform-init-k8s.outputs.k8s-cluster-name }} - k8s-cluster-kubeconfig: ${{ needs.terraform-init-k8s.outputs.k8s-cluster-kubeconfig }} + artifact-name: cicd-${{ inputs.CLOUD_PROVIDER }}-${{ github.sha }} branch-name: ${{ inputs.BRANCH_NAME }} random-suffix: ${{ needs.test-kubeblocks.outputs.random-suffix }} secrets: inherit @@ -868,7 +868,7 @@ jobs: test-type-name: "halo" test-args: "${{ inputs.ARGS }}" k8s-cluster-name: ${{ needs.terraform-init-k8s.outputs.k8s-cluster-name }} - k8s-cluster-kubeconfig: ${{ needs.terraform-init-k8s.outputs.k8s-cluster-kubeconfig }} + artifact-name: cicd-${{ inputs.CLOUD_PROVIDER }}-${{ github.sha }} branch-name: ${{ inputs.BRANCH_NAME }} random-suffix: ${{ needs.test-kubeblocks.outputs.random-suffix }} secrets: inherit @@ -886,7 +886,7 @@ jobs: test-type-name: "mogdb" test-args: "${{ inputs.ARGS }}" k8s-cluster-name: ${{ needs.terraform-init-k8s.outputs.k8s-cluster-name }} - k8s-cluster-kubeconfig: ${{ needs.terraform-init-k8s.outputs.k8s-cluster-kubeconfig }} + artifact-name: cicd-${{ inputs.CLOUD_PROVIDER }}-${{ github.sha }} branch-name: ${{ inputs.BRANCH_NAME }} random-suffix: ${{ needs.test-kubeblocks.outputs.random-suffix }} secrets: inherit @@ -904,7 +904,7 @@ jobs: test-type-name: "oceanbase-ent" test-args: "${{ inputs.ARGS }}" k8s-cluster-name: ${{ needs.terraform-init-k8s.outputs.k8s-cluster-name }} - k8s-cluster-kubeconfig: ${{ needs.terraform-init-k8s.outputs.k8s-cluster-kubeconfig }} + artifact-name: cicd-${{ inputs.CLOUD_PROVIDER }}-${{ github.sha }} branch-name: ${{ inputs.BRANCH_NAME }} random-suffix: ${{ needs.test-kubeblocks.outputs.random-suffix }} secrets: inherit @@ -922,7 +922,7 @@ jobs: test-type-name: "starrocks-ent" test-args: "${{ inputs.ARGS }}" k8s-cluster-name: ${{ needs.terraform-init-k8s.outputs.k8s-cluster-name }} - k8s-cluster-kubeconfig: ${{ needs.terraform-init-k8s.outputs.k8s-cluster-kubeconfig }} + artifact-name: cicd-${{ inputs.CLOUD_PROVIDER }}-${{ github.sha }} branch-name: ${{ inputs.BRANCH_NAME }} random-suffix: ${{ needs.test-kubeblocks.outputs.random-suffix }} secrets: inherit @@ -940,7 +940,7 @@ jobs: test-type-name: "apecloud-postgresql" test-args: "${{ inputs.ARGS }}" k8s-cluster-name: ${{ needs.terraform-init-k8s.outputs.k8s-cluster-name }} - k8s-cluster-kubeconfig: ${{ needs.terraform-init-k8s.outputs.k8s-cluster-kubeconfig }} + artifact-name: cicd-${{ inputs.CLOUD_PROVIDER }}-${{ github.sha }} branch-name: ${{ inputs.BRANCH_NAME }} random-suffix: ${{ needs.test-kubeblocks.outputs.random-suffix }} secrets: inherit @@ -958,7 +958,7 @@ jobs: test-type-name: "yashandb" test-args: "${{ inputs.ARGS }}" k8s-cluster-name: ${{ needs.terraform-init-k8s.outputs.k8s-cluster-name }} - k8s-cluster-kubeconfig: ${{ needs.terraform-init-k8s.outputs.k8s-cluster-kubeconfig }} + artifact-name: cicd-${{ inputs.CLOUD_PROVIDER }}-${{ github.sha }} branch-name: ${{ inputs.BRANCH_NAME }} random-suffix: ${{ needs.test-kubeblocks.outputs.random-suffix }} secrets: inherit @@ -976,7 +976,7 @@ jobs: test-type-name: "redis-cluster" test-args: "${{ inputs.ARGS }}" k8s-cluster-name: ${{ needs.terraform-init-k8s.outputs.k8s-cluster-name }} - k8s-cluster-kubeconfig: ${{ needs.terraform-init-k8s.outputs.k8s-cluster-kubeconfig }} + artifact-name: cicd-${{ inputs.CLOUD_PROVIDER }}-${{ github.sha }} branch-name: ${{ inputs.BRANCH_NAME }} random-suffix: ${{ needs.test-kubeblocks.outputs.random-suffix }} secrets: inherit @@ -994,7 +994,7 @@ jobs: test-type-name: "camellia-redis-proxy" test-args: "${{ inputs.ARGS }}" k8s-cluster-name: ${{ needs.terraform-init-k8s.outputs.k8s-cluster-name }} - k8s-cluster-kubeconfig: ${{ needs.terraform-init-k8s.outputs.k8s-cluster-kubeconfig }} + artifact-name: cicd-${{ inputs.CLOUD_PROVIDER }}-${{ github.sha }} branch-name: ${{ inputs.BRANCH_NAME }} random-suffix: ${{ needs.test-kubeblocks.outputs.random-suffix }} secrets: inherit @@ -1012,7 +1012,7 @@ jobs: test-type-name: "dmdb" test-args: "${{ inputs.ARGS }}" k8s-cluster-name: ${{ needs.terraform-init-k8s.outputs.k8s-cluster-name }} - k8s-cluster-kubeconfig: ${{ needs.terraform-init-k8s.outputs.k8s-cluster-kubeconfig }} + artifact-name: cicd-${{ inputs.CLOUD_PROVIDER }}-${{ github.sha }} branch-name: ${{ inputs.BRANCH_NAME }} random-suffix: ${{ needs.test-kubeblocks.outputs.random-suffix }} secrets: inherit @@ -1030,7 +1030,7 @@ jobs: test-type-name: "minio" test-args: "${{ inputs.ARGS }}" k8s-cluster-name: ${{ needs.terraform-init-k8s.outputs.k8s-cluster-name }} - k8s-cluster-kubeconfig: ${{ needs.terraform-init-k8s.outputs.k8s-cluster-kubeconfig }} + artifact-name: cicd-${{ inputs.CLOUD_PROVIDER }}-${{ github.sha }} branch-name: ${{ inputs.BRANCH_NAME }} random-suffix: ${{ needs.test-kubeblocks.outputs.random-suffix }} secrets: inherit @@ -1048,7 +1048,7 @@ jobs: test-type-name: "orchestrator" test-args: "${{ inputs.ARGS }}" k8s-cluster-name: ${{ needs.terraform-init-k8s.outputs.k8s-cluster-name }} - k8s-cluster-kubeconfig: ${{ needs.terraform-init-k8s.outputs.k8s-cluster-kubeconfig }} + artifact-name: cicd-${{ inputs.CLOUD_PROVIDER }}-${{ github.sha }} branch-name: ${{ inputs.BRANCH_NAME }} random-suffix: ${{ needs.test-kubeblocks.outputs.random-suffix }} secrets: inherit diff --git a/.github/workflows/terraform-init.yml b/.github/workflows/terraform-init.yml index 7d14e5d..9af4165 100644 --- a/.github/workflows/terraform-init.yml +++ b/.github/workflows/terraform-init.yml @@ -72,9 +72,6 @@ on: k8s-cluster-name: description: "k8s cluster name" value: ${{ jobs.terraform-init.outputs.k8s-cluster-name }} - k8s-cluster-kubeconfig: - description: "k8s cluster kubeconfig" - value: ${{ jobs.terraform-init.outputs.k8s-cluster-kubeconfig }} env: GITHUB_TOKEN: ${{ secrets.PERSONAL_ACCESS_TOKEN }} @@ -95,7 +92,6 @@ jobs: runs-on: ubuntu-latest outputs: k8s-cluster-name: ${{ steps.terraform_init.outputs.k8s-cluster-name }} - k8s-cluster-kubeconfig: ${{ steps.terraform_init.outputs.k8s-cluster-kubeconfig }} steps: - name: checkout cloud-provider uses: actions/checkout@v4 @@ -299,13 +295,6 @@ jobs: K8S_CLUSTER_NAME="$(cat terraform.tfstate | yq eval '.outputs.cluster_name.value' -)" echo "k8s-cluster-name:${K8S_CLUSTER_NAME}" echo k8s-cluster-name=${K8S_CLUSTER_NAME} >> $GITHUB_OUTPUT - - K8S_CLUSTER_KUBECONFIG="" - if [[ "${{ inputs.cloud-provider }}" == "vke" ]]; then - echo "output vke k8s-cluster-kubeconfig" - K8S_CLUSTER_KUBECONFIG="$(cat terraform.tfstate | yq eval '.resources[].instances.[].attributes.kubeconfigs[].kubeconfig' | base64 -d)" - fi - echo k8s-cluster-kubeconfig=${K8S_CLUSTER_KUBECONFIG} >> $GITHUB_OUTPUT - name: upload artifact uses: actions/upload-artifact@v3 diff --git a/.github/workflows/test-kbcli-pre.yml b/.github/workflows/test-kbcli-pre.yml index a0a5bf4..eea2409 100644 --- a/.github/workflows/test-kbcli-pre.yml +++ b/.github/workflows/test-kbcli-pre.yml @@ -38,8 +38,8 @@ on: type: string required: false default: '' - k8s-cluster-kubeconfig: - description: 'k8s cluster kubeconfig' + artifact-name: + description: 'terraform artifact name' type: string required: false default: '' @@ -160,12 +160,21 @@ jobs: resource-group: '${{ inputs.k8s-cluster-name }}-group' cluster-name: '${{ inputs.k8s-cluster-name }}' + - name: download vke artifact + if: ${{ inputs.cloud-provider == 'vke' }} + uses: actions/download-artifact@v3.0.2 + with: + name: ${{ inputs.artifact-name }} + path: ./volcengine/vke-cicd + - name: Configure K8S Context - if: ${{ inputs.k8s-cluster-kubeconfig != '' }} + if: ${{ inputs.cloud-provider == 'vke' }} run: | + cd ./volcengine/vke-cicd + K8S_CLUSTER_KUBECONFIG="$(cat terraform.tfstate | yq eval '.resources[].instances.[].attributes.kubeconfigs[].kubeconfig' | base64 -d)" mkdir -p $HOME/.kube touch $HOME/.kube/config - echo '${{ inputs.k8s-cluster-kubeconfig }}' > $HOME/.kube/config + echo "${K8S_CLUSTER_KUBECONFIG}" > $HOME/.kube/config - name: run test ${{ inputs.test-type-name }} id: kbcli_test diff --git a/.github/workflows/test-kbcli.yml b/.github/workflows/test-kbcli.yml index 8e804cc..c4a6cf0 100644 --- a/.github/workflows/test-kbcli.yml +++ b/.github/workflows/test-kbcli.yml @@ -48,8 +48,8 @@ on: type: string required: false default: '' - k8s-cluster-kubeconfig: - description: 'k8s cluster kubeconfig' + artifact-name: + description: 'terraform artifact name' type: string required: false default: '' @@ -175,12 +175,21 @@ jobs: resource-group: '${{ inputs.k8s-cluster-name }}-group' cluster-name: '${{ inputs.k8s-cluster-name }}' + - name: download vke artifact + if: ${{ inputs.cloud-provider == 'vke' }} + uses: actions/download-artifact@v3.0.2 + with: + name: ${{ inputs.artifact-name }} + path: ./volcengine/vke-cicd + - name: Configure K8S Context - if: ${{ inputs.k8s-cluster-kubeconfig != '' }} + if: ${{ inputs.cloud-provider == 'vke' }} run: | + cd ./volcengine/vke-cicd + K8S_CLUSTER_KUBECONFIG="$(cat terraform.tfstate | yq eval '.resources[].instances.[].attributes.kubeconfigs[].kubeconfig' | base64 -d)" mkdir -p $HOME/.kube touch $HOME/.kube/config - echo '${{ inputs.k8s-cluster-kubeconfig }}' > $HOME/.kube/config + echo "${K8S_CLUSTER_KUBECONFIG}" > $HOME/.kube/config - name: run test ${{ inputs.test-type-name }} id: kbcli_test