Skip to content

Commit

Permalink
chore: fix setup kubectl error (#5528)
Browse files Browse the repository at this point in the history
  • Loading branch information
JashBook authored Oct 19, 2023
1 parent ee9d44e commit c0f53df
Show file tree
Hide file tree
Showing 24 changed files with 48 additions and 52 deletions.
2 changes: 1 addition & 1 deletion .github/localflows/cicd-local.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ jobs:
make-test:
runs-on: [self-hosted ]
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- name: make test
run: |
make mod-vendor lint test
Expand Down
2 changes: 1 addition & 1 deletion .github/localflows/github-action-locally.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,4 @@ if ! [ -x "$(which act)" ]; then
fi

# run act
act --reuse --platform self-hosted=jashbook/golang-lint:1.20-latest --workflows .github/localflows/cicd-local.yml
act --reuse --platform self-hosted=jashbook/golang-lint:1.21-latest --workflows .github/localflows/cicd-local.yml
2 changes: 1 addition & 1 deletion .github/workflows/cherry-pick.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ jobs:
if: github.event.issue.pull_request != '' && contains(github.event.comment.body, '/cherry-pick')
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4
with:
token: ${{ secrets.GITHUB_TOKEN }}
fetch-depth: 0
Expand Down
10 changes: 5 additions & 5 deletions .github/workflows/cicd-pull-request.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ jobs:
all_but_latest: true
access_token: ${{ github.token }}

- uses: actions/checkout@v3
- uses: actions/checkout@v4
with:
fetch-depth: 0
repository: ${{ github.event.pull_request.head.repo.full_name }}
Expand Down Expand Up @@ -57,7 +57,7 @@ jobs:
fail-fast: true
matrix: ${{ fromJSON(needs.trigger-mode.outputs.matrix) }}
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- name: install lib
run: |
sudo apt-get update
Expand Down Expand Up @@ -92,7 +92,7 @@ jobs:
runner-name: ${{ steps.get_runner_name.outputs.runner_name }}
runs-on: [ self-hosted, gke-runner-go1.21 ]
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- name: make mod-vendor
run: |
make mod-vendor
Expand Down Expand Up @@ -133,7 +133,7 @@ jobs:
runs-on: ubuntu-latest
if: ${{ contains(needs.trigger-mode.outputs.trigger-mode, '[test]') && github.event.pull_request.head.repo.full_name != github.repository && always() }}
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- name: remove runner
run: |
bash .github/utils/utils.sh --type 9 \
Expand Down Expand Up @@ -205,7 +205,7 @@ jobs:
matrix:
os: [linux-amd64, darwin-arm64]
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- name: install lib
run: |
sudo apt-get update
Expand Down
12 changes: 6 additions & 6 deletions .github/workflows/cicd-push.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ jobs:
all_but_latest: true
access_token: ${{ github.token }}

- uses: actions/checkout@v3
- uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Get trigger mode
Expand Down Expand Up @@ -58,7 +58,7 @@ jobs:
runs-on: ubuntu-latest
name: Push Pre-Check
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
with:
fetch-depth: 0
- name: install pcregrep
Expand Down Expand Up @@ -90,7 +90,7 @@ jobs:
runs-on: ubuntu-latest
if: ${{ contains(needs.trigger-mode.outputs.trigger-mode, '[cli]') }}
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- name: install lib
run: |
sudo apt-get update
Expand Down Expand Up @@ -130,7 +130,7 @@ jobs:
outputs:
runner-name: ${{ steps.get_runner_name.outputs.runner_name }}
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- name: make manifests check
run: |
make manifests
Expand Down Expand Up @@ -181,7 +181,7 @@ jobs:
runs-on: ubuntu-latest
if: ${{ contains(needs.trigger-mode.outputs.trigger-mode, '[test]') && always() }}
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- name: remove runner
run: |
bash .github/utils/utils.sh --type 9 \
Expand Down Expand Up @@ -263,7 +263,7 @@ jobs:
matrix:
os: [linux-amd64, darwin-arm64]
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- name: install lib
run: |
sudo apt-get update
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/codeql.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ jobs:
outputs:
trigger-mode: ${{ steps.get_trigger_mode.outputs.trigger_mode }}
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Get trigger mode
Expand Down Expand Up @@ -50,7 +50,7 @@ jobs:
matrix:
language: [ 'go' ]
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- name: install lib
run: |
sudo apt-get update
Expand Down
5 changes: 2 additions & 3 deletions .github/workflows/e2e-fault.yml
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ jobs:
release-version: ${{ steps.get_release_version.outputs.release-version }}
cluster-region: ${{ steps.get_release_version.outputs.cluster-region }}
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- name: check release version
id: get_release_version
run: |
Expand All @@ -83,7 +83,7 @@ jobs:
e2e:
name: ${{ inputs.CLOUD_PROVIDER }}
needs: check
uses: apecloud/apecloud-cd/.github/workflows/fault-test-k8s.yml@v0.1.20
uses: apecloud/apecloud-cd/.github/workflows/fault-test-k8s.yml@main
with:
CLOUD_PROVIDER: "${{ inputs.CLOUD_PROVIDER }}"
KB_VERSION: "${{ needs.check.outputs.release-version }}"
Expand All @@ -93,5 +93,4 @@ jobs:
BRANCH_NAME: "${{ inputs.BRANCH_NAME }}"
ARGS: "${{ inputs.ARGS }}"
TEST_TYPE: "${{ inputs.TEST_TYPE }}"
APECD_REF: "v0.1.20"
secrets: inherit
3 changes: 1 addition & 2 deletions .github/workflows/e2e-kbcli.yml
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ jobs:
release-version: ${{ steps.get_release_version.outputs.release-version }}
cluster-region: ${{ steps.get_release_version.outputs.cluster-region }}
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- name: check release version
id: get_release_version
run: |
Expand Down Expand Up @@ -96,7 +96,6 @@ jobs:
INSTANCE_TYPE: "${{ inputs.INSTANCE_TYPE }}"
REGION: "${{ needs.check.outputs.cluster-region }}"
BRANCH_NAME: "${{ inputs.BRANCH_NAME }}"
APECD_REF: "main"
ARGS: "${{ inputs.ARGS }}"
TEST_TYPE: "${{ inputs.TEST_TYPE }}"
secrets: inherit
5 changes: 2 additions & 3 deletions .github/workflows/e2e-performance.yml
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ jobs:
outputs:
release-version: ${{ steps.get_release_version.outputs.release-version }}
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- name: check release version
id: get_release_version
run: |
Expand All @@ -68,7 +68,7 @@ jobs:
performance:
name: ${{ inputs.NODE_TYPE }} ${{ inputs.PERFORMANCE_TYPE }}
needs: check
uses: apecloud/apecloud-cd/.github/workflows/performance-test-k8s.yml@v0.1.30
uses: apecloud/apecloud-cd/.github/workflows/performance-test-k8s.yml@main
with:
CLOUD_PROVIDER: "gke"
CLUSTER_VERSION: "${{ inputs.K8S_VERSION }}"
Expand All @@ -80,5 +80,4 @@ jobs:
BENCH_TABLES: "${{ inputs.BENCH_TABLES }}"
CLUSTER_STORAGE: "${{ inputs.CLUSTER_STORAGE }}"
REGION: "${{ vars.REGION_AWS_EKS }}"
APECD_REF: "v0.1.30"
secrets: inherit
5 changes: 2 additions & 3 deletions .github/workflows/e2e-smoke.yml
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ jobs:
release-version: ${{ steps.get_release_version.outputs.release-version }}
cluster-region: ${{ steps.get_release_version.outputs.cluster-region }}
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- name: check release version
id: get_release_version
run: |
Expand All @@ -75,13 +75,12 @@ jobs:
e2e:
name: ${{ inputs.CLOUD_PROVIDER }}
needs: check
uses: apecloud/apecloud-cd/.github/workflows/smoke-test-k8s.yml@v0.1.21
uses: apecloud/apecloud-cd/.github/workflows/smoke-test-k8s.yml@main
with:
CLOUD_PROVIDER: "${{ inputs.CLOUD_PROVIDER }}"
KB_VERSION: "${{ needs.check.outputs.release-version }}"
CLUSTER_VERSION: "${{ inputs.CLUSTER_VERSION }}"
INSTANCE_TYPE: "${{ inputs.INSTANCE_TYPE }}"
REGION: "${{ needs.check.outputs.cluster-region }}"
TEST_TYPE: "${{ inputs.TEST_TYPE }}"
APECD_REF: "v0.1.21"
secrets: inherit
2 changes: 1 addition & 1 deletion .github/workflows/issues-move.yml
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ jobs:
}
}' -f project=$PROJECT_ID -f item=$ITEM_ID -f status_field=$STATUS_FIELD_ID -f status_value=${{ env.TODO_OPTION_ID }} --silent
- uses: actions/checkout@v3
- uses: actions/checkout@v4
if: |
github.event.action == 'published'
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/merge-e2e-smoke.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ jobs:
outputs:
trigger-mode: ${{ steps.get_trigger_mode.outputs.trigger_mode }}
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
with:
fetch-depth: 0
repository: ${{ github.event.pull_request.head.repo.full_name }}
Expand Down Expand Up @@ -47,7 +47,7 @@ jobs:
runner-name4: ${{ steps.get_runner_name.outputs.runner_name4 }}
runner-name5: ${{ steps.get_runner_name.outputs.runner_name5 }}
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- name: setup k3d k3s
uses: apecloud/setup-k3d-k3s@v1
with:
Expand Down Expand Up @@ -112,7 +112,7 @@ jobs:
runs-on: ubuntu-latest
if: ${{ contains(needs.trigger-mode.outputs.trigger-mode, '[test]') && always() }}
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- name: remove runner
run: |
RUNNER_NAME="${{ needs.e2e-test.outputs.runner-name1 }}|${{ needs.e2e-test.outputs.runner-name2 }}|${{ needs.e2e-test.outputs.runner-name3 }}|${{ needs.e2e-test.outputs.runner-name4 }}|${{ needs.e2e-test.outputs.runner-name5 }}"
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/milestoneclose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout repo
uses: actions/checkout@v3
uses: actions/checkout@v4
- name: Get project data
run: |
gh api graphql -f query='
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/package-version.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: checkout branch ${{ github.ref_name }}
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: package message
run: |
Expand All @@ -44,7 +44,7 @@ jobs:
needs: package-version
if: ${{ failure() || cancelled() }}
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- name: send message
run: |
bash .github/utils/utils.sh --type 12 \
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/pull-request-check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ jobs:
- name: check PR title
uses: amannn/action-semantic-pull-request@v5

- uses: actions/checkout@v3
- uses: actions/checkout@v4
- name: check issue link
run: |
bash ${{ github.workspace }}/.github/utils/issue_link.sh \
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/pull-request-user-interaction.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ jobs:
name: GET PR Issue Label
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- name: get issue link
run: |
gh api graphql -f query='
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/release-create.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ jobs:
rel-version: ${{ steps.get_rel_version.outputs.rel_version }}
steps:
- name: Check out code into the Go module directory
uses: actions/checkout@v3
uses: actions/checkout@v4
- name: Parse release version and set REL_VERSION
id: get_rel_version
run: |
Expand Down Expand Up @@ -52,7 +52,7 @@ jobs:
needs: publish
if: ${{ failure() || cancelled() }}
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- name: send message
run: |
bash .github/utils/utils.sh --type 12 \
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/release-helm-chart.yml
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ jobs:
needs: release-charts-image
if: ${{ always() && github.event.action == 'published' }}
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- name: send message
id: send_message
run: |
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/release-image.yml
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ jobs:
needs: [ release-image, release-tools-image, release-datascript-image]
if: ${{ always() && github.event.action == 'published' }}
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- name: send message
id: send_message
run: |
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/release-notes.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout repo
uses: actions/checkout@v3
uses: actions/checkout@v4
- uses: actions/setup-python@v4
with:
python-version: '3.9'
Expand Down
Loading

0 comments on commit c0f53df

Please sign in to comment.