Skip to content

Commit

Permalink
Move create single cluster to seperate action (#957)
Browse files Browse the repository at this point in the history
Co-authored-by: Marcin Dobrochowski <[email protected]>
  • Loading branch information
MichalKalke and anoipm authored May 6, 2024
1 parent 07bb1d4 commit c15c329
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 50 deletions.
16 changes: 16 additions & 0 deletions .github/actions/create-single-cluster/action.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
name: 'Create single cluster'
description: 'Action for creating single cluster'

runs:
using: 'composite'
steps:
- name: create single cluster
uses: AbsaOSS/k3d-action@4e8b3239042be1dc0aed6c5eb80c13b18200fc79 #v2.4.0
with:
cluster-name: "k3dCluster"
args: >-
--agents 1
--image rancher/k3s:v1.29.3-k3s1
--port 80:80@loadbalancer
--port 443:443@loadbalancer
--wait
22 changes: 2 additions & 20 deletions .github/workflows/operator-verify.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -41,16 +41,7 @@ jobs:
steps:
- uses: actions/checkout@v4
- uses: ./.github/actions/setup-go
- name: create single cluster
uses: AbsaOSS/k3d-action@4e8b3239042be1dc0aed6c5eb80c13b18200fc79 #v2.4.0
with:
cluster-name: "k3dCluster"
args: >-
--agents 1
--image rancher/k3s:v1.29.3-k3s1
--port 80:80@loadbalancer
--port 443:443@loadbalancer
--wait
- uses: ./.github/actions/create-single-cluster
- name: run integration test (pre)
if: github.event_name == 'pull_request'
run: |
Expand All @@ -75,16 +66,7 @@ jobs:
steps:
- uses: actions/checkout@v4
- uses: ./.github/actions/setup-go
- name: create single cluster
uses: AbsaOSS/k3d-action@4e8b3239042be1dc0aed6c5eb80c13b18200fc79 #v2.4.0
with:
cluster-name: "k3dCluster"
args: >-
--agents 1
--image rancher/k3s:v1.29.3-k3s1
--port 80:80@loadbalancer
--port 443:443@loadbalancer
--wait
- uses: ./.github/actions/create-single-cluster
- name: upgrade test
run: |
make -C components/operator deploy-release
Expand Down
33 changes: 3 additions & 30 deletions .github/workflows/serverless-verify.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -43,16 +43,7 @@ jobs:
steps:
- uses: actions/checkout@v4
- uses: ./.github/actions/setup-go
- name: create single cluster
uses: AbsaOSS/k3d-action@4e8b3239042be1dc0aed6c5eb80c13b18200fc79 #v2.4.0
with:
cluster-name: "k3dCluster"
args: >-
--agents 1
--image rancher/k3s:v1.29.3-k3s1
--port 80:80@loadbalancer
--port 443:443@loadbalancer
--wait
- uses: ./.github/actions/create-single-cluster
- name: run integration test (pre)
if: github.event_name == 'pull_request'
run: |
Expand All @@ -76,16 +67,7 @@ jobs:
steps:
- uses: actions/checkout@v4
- uses: ./.github/actions/setup-go
- name: create single cluster
uses: AbsaOSS/k3d-action@4e8b3239042be1dc0aed6c5eb80c13b18200fc79 #v2.4.0
with:
cluster-name: "k3dCluster"
args: >-
--agents 1
--image rancher/k3s:v1.29.3-k3s1
--port 80:80@loadbalancer
--port 443:443@loadbalancer
--wait
- uses: ./.github/actions/create-single-cluster
- name: run git auth tests
run: |
make install-serverless-custom-operator
Expand All @@ -103,16 +85,7 @@ jobs:
steps:
- uses: actions/checkout@v4
- uses: ./.github/actions/setup-go
- name: create single cluster
uses: AbsaOSS/k3d-action@4e8b3239042be1dc0aed6c5eb80c13b18200fc79 #v2.4.0
with:
cluster-name: "k3dCluster"
args: >-
--agents 1
--image rancher/k3s:v1.29.3-k3s1
--port 80:80@loadbalancer
--port 443:443@loadbalancer
--wait
- uses: ./.github/actions/create-single-cluster
- name: upgrade test
run: |
make install-serverless-latest-release install-serverless-custom-operator
Expand Down

0 comments on commit c15c329

Please sign in to comment.