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 Jan 17, 2022
1 parent 7aae61b commit 0a42bde
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 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

0 comments on commit 0a42bde

Please sign in to comment.