-
Notifications
You must be signed in to change notification settings - Fork 0
86 lines (73 loc) · 2.52 KB
/
helm-validation.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
name: Helm Validation
on:
push:
branches:
- '**'
workflow_dispatch:
inputs:
debug_enabled:
type: boolean
description: 'Run the build with tmate debugging enabled'
required: false
default: false
debug_delay_duration_minutes:
type: number
description: 'Duration to delay job completion in minutes'
required: false
default: 5
jobs:
smoke-test-installation-with-helm:
runs-on: ubuntu-latest
steps:
- name: Check out repository
uses: actions/checkout@v4
- name: Set up Helm
uses: azure/[email protected]
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: "Debug: SSH to runner"
uses: scality/actions/action-ssh-to-runner@v1
with:
tmate-server-host: ${{ secrets.TMATE_SERVER_HOST }}
tmate-server-port: ${{ secrets.TMATE_SERVER_PORT }}
tmate-server-rsa-fingerprint: ${{ secrets.TMATE_SERVER_RSA_FINGERPRINT }}
tmate-server-ed25519-fingerprint: ${{ secrets.TMATE_SERVER_ED25519_FINGERPRINT }}
detached: true
if: ${{ github.event_name == 'workflow_dispatch' && inputs.debug_enabled }}
timeout-minutes: 10
continue-on-error: true
- name: Build COSI Driver Docker Image
run: |
make container
- 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: Print all resources in scality-object-storage namespace
run: |
kubectl get all -n scality-object-storage
- name: Verify Helm Installation
run: |
.github/scripts/verify_helm_install.sh
- name: "Delay completion"
if: ${{ github.event_name == 'workflow_dispatch' && inputs.debug_enabled }}
uses: scality/actions/[email protected]
with:
completion_delay_m: ${{ inputs.debug_delay_duration_minutes }}
continue-on-error: true
- name: Cleanup Helm Release and Namespace
run: |
helm uninstall scality-cosi-driver -n scality-object-storage
kubectl delete namespace scality-object-storage
if: always()