Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ci: add an initial job for deploying the controller #78

Merged
merged 2 commits into from
Apr 14, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions .github/mergify.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ queue_rules:
- "status-success=build_sidecar"
- "status-success=go_mod_verify"
- "status-success=go_mod_vendor"
- "status-success=kind_deploy"

pull_request_rules:
- name: remove outdated approvals
Expand All @@ -37,6 +38,7 @@ pull_request_rules:
- "status-success=build_sidecar"
- "status-success=go_mod_verify"
- "status-success=go_mod_vendor"
- "status-success=kind_deploy"
- "status-success=make_test"
actions:
queue: {}
Expand All @@ -56,6 +58,7 @@ pull_request_rules:
- "status-success=build_sidecar"
- "status-success=go_mod_verify"
- "status-success=go_mod_vendor"
- "status-success=kind_deploy"
- "status-success=make_test"
actions:
queue: {}
Expand Down
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