Skip to content

Commit

Permalink
ci: add an initial job for deploying the controller
Browse files Browse the repository at this point in the history
Signed-off-by: Niels de Vos <[email protected]>
  • Loading branch information
nixpanic committed Apr 13, 2022
1 parent 5b2ccb3 commit 67deb90
Showing 1 changed file with 33 additions and 0 deletions.
33 changes: 33 additions & 0 deletions .github/workflows/kind-deploy.yaml
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 app.kubernetes.io/name=csi-addons --for=condition=Ready=True

- name: Log the status of the failed controller pod
if: ${{ failure() }}
run: kubectl -n csi-addons-system describe pods -l app.kubernetes.io/name=csi-addons ; false

0 comments on commit 67deb90

Please sign in to comment.