diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index c4696dc..e791279 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -33,7 +33,7 @@ jobs: cpus: 'max' memory: '4gb' - uses: azure/setup-helm@v4.1.0 - - name: check installing the chart with various `values` yamls (`helm install --dry-run=server`) + - name: check installing the chart with various `values` yamls run: ./test_values_files.sh - name: install the chart run: helm install mirrord-operator --set license.file.data."license\\.pem"=$MIRRORD_OPERATOR_LICENSE --set operator.disableTelemetries=true --set operator.podAnnotations."annotation\.metalbear\.co/name"="operator" --set operator.podAnnotations."annotation\.metalbear\.co/version"="latest" --set operator.podLabels."label\.metalbear\.co/name"="operator" --set operator.podLabels."label\.metalbear\.co/version"="latest" ./mirrord-operator --wait diff --git a/test_values_files.sh b/test_values_files.sh index 1459952..278c092 100755 --- a/test_values_files.sh +++ b/test_values_files.sh @@ -1,8 +1,9 @@ #!/bin/sh # for each file in the test_values directory -# run helm install --dry-run=server +# run helm install && helm uninstall for file in test_values/*.yaml; do echo "Running test for $file" - helm install --dry-run=server --debug -f $file mirrord-operator ./mirrord-operator + helm install --atomic --debug -f $file mirrord-operator ./mirrord-operator --wait + helm uninstall mirrord-operator --wait done