Skip to content

Commit

Permalink
Fixed CI - moved --dry-install before the real install
Browse files Browse the repository at this point in the history
  • Loading branch information
Razz4780 committed Dec 18, 2024
1 parent ac916e5 commit 68427d1
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 6 deletions.
10 changes: 6 additions & 4 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -33,12 +33,14 @@ jobs:
cpus: 'max'
memory: '4gb'
- uses: azure/[email protected]
- 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
3 changes: 1 addition & 2 deletions test_values_files.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
done

0 comments on commit 68427d1

Please sign in to comment.