From 68427d1761ba0a6c005847bc371f95c6b10bc43e Mon Sep 17 00:00:00 2001 From: Razz4780 Date: Wed, 18 Dec 2024 15:26:21 +0100 Subject: [PATCH] Fixed CI - moved --dry-install before the real install --- .github/workflows/ci.yaml | 10 ++++++---- test_values_files.sh | 3 +-- 2 files changed, 7 insertions(+), 6 deletions(-) diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index c823f98..c4696dc 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -33,12 +33,14 @@ jobs: cpus: 'max' memory: '4gb' - uses: azure/setup-helm@v4.1.0 - - 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 - - uses: nick-fields/retry@v3 + - name: check installing the chart with various `values` yamls (`helm install --dry-run=server`) + 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 + - name: wait for the operator status + uses: nick-fields/retry@v3 with: timeout_seconds: 10 max_attempts: 5 retry_wait_seconds: 1 command: kubectl get mirrordoperators.operator.metalbear.co operator -o yaml - - name: check different values yaml files - run: ./test_values_files.sh diff --git a/test_values_files.sh b/test_values_files.sh index d656374..1459952 100755 --- a/test_values_files.sh +++ b/test_values_files.sh @@ -5,5 +5,4 @@ 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 uninstall mirrord-operator -done \ No newline at end of file +done