-
Notifications
You must be signed in to change notification settings - Fork 39
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ci: add an initial job for deploying the controller
Signed-off-by: Niels de Vos <[email protected]>
- Loading branch information
Showing
1 changed file
with
33 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
--- | ||
name: Test deploying controller | ||
|
||
on: | ||
pull_request: | ||
branches: | ||
- "*" | ||
|
||
jobs: | ||
kind_deploy: | ||
name: kind_deploy | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Create k8s Kind Cluster | ||
uses: helm/[email protected] | ||
|
||
- name: Check out the repo | ||
uses: actions/checkout@v2 | ||
|
||
- name: Install Go 1.17 | ||
uses: actions/setup-go@v2 | ||
with: | ||
go-version: '1.17' | ||
|
||
- name: Deploy the controller and CRDs | ||
run: make deploy | ||
|
||
- name: Wait for running controller pod | ||
run: kubectl -n csi-addons-system wait pods -l control-plane=controller-manager --for=condition=Ready=True | ||
|
||
- name: Log the status of the failed controller pod | ||
if: ${{ failure() }} | ||
run: kubectl -n csi-addons-system describe pods -l control-plane=controller-manager ; false |