Skip to content

Commit

Permalink
COSI-43: add-test-for-install-using-helm-charts
Browse files Browse the repository at this point in the history
  • Loading branch information
anurag4DSB committed Nov 14, 2024
1 parent 92f88b5 commit 4b88126
Showing 1 changed file with 63 additions and 0 deletions.
63 changes: 63 additions & 0 deletions .github/workflows/ci-helm-installation-test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,63 @@
name: CI Helm Installation Test

on:
push:
branches:
- '**'
workflow_dispatch:
inputs:
debug_enabled:
type: boolean
description: 'Run the build with tmate debugging enabled'
required: false
default: false

jobs:
smoke-test-with-helm:
runs-on: ubuntu-latest

steps:
- name: Check out repository
uses: actions/checkout@v4

- name: Set up Helm
uses: azure/setup-helm@v1
with:
version: v3.16.3

- name: Create Kind Cluster
uses: helm/[email protected]
with:
version: v0.21.0
wait: 90s
cluster_name: helm-test-cluster

- name: Build COSI Driver Docker Image
run: |
make build
- name: Load Docker Image into Kind Cluster
run: |
kind load docker-image ghcr.io/scality/cosi-driver:latest --name helm-test-cluster
- name: Install Scality COSI Helm Chart
run: |
helm install scality-cosi-driver ./helm/scality-cosi-driver \
--namespace scality-object-storage \
--create-namespace \
--set image.tag=latest
- name: Verify Helm Installation
run: |
kubectl get all -n scality-object-storage
- name: Verify Helm Installation
run: |
chmod +x .github/scripts/verify_helm_install.sh
.github/scripts/verify_helm_install.sh
- name: Cleanup Helm Release and Namespace
run: |
helm uninstall scality-cosi-driver -n scality-object-storage
kubectl delete namespace scality-object-storage
if: always()

0 comments on commit 4b88126

Please sign in to comment.