forked from kloeckner-i/charts
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
53 additions
and
25 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -79,8 +79,6 @@ jobs: | |
if [[ -n "$changed" ]]; then | ||
echo "changed=true" >> "$GITHUB_OUTPUT" | ||
fi | ||
- name: Setup helmfile | ||
uses: mamezou-tech/[email protected] | ||
- name: Prepare a config for the kind cluster | ||
run: | | ||
cat > kind-config.yaml <<EOF | ||
|
@@ -97,34 +95,56 @@ jobs: | |
with: | ||
node_image: kindest/node:${{ matrix.k8s_version }} | ||
config: ./kind-config.yaml | ||
- name: Test db-operator charts install | ||
|
||
- uses: helmfile/[email protected] | ||
with: | ||
helmfile-version: 'v0.167.1' | ||
helm-version: 'v3.15.4' | ||
helm-plugins: > | ||
https://github.com/databus23/helm-diff, https://github.com/jkroepke/helm-secrets | ||
helmfile-args: sync --wait | ||
|
||
- name: Test the db-operator chart install | ||
run: | | ||
helmfile -l name=prometheus-stack sync | ||
helmfile sync | ||
ct install --target-branch main --charts ./charts/db-operator | ||
helmfile destroy | ||
# Test is broken because of the image in the previous version, | ||
# so upgrate can't pass | ||
#- name: Test db-operator charts upgrade | ||
# run: | | ||
# helmfile -l name=prometheus-stack sync | ||
# helmfile sync | ||
# ct install --target-branch main --charts ./charts/db-operator --upgrade | ||
# helmfile destroy | ||
- uses: helmfile/[email protected] | ||
with: | ||
helmfile-version: 'v0.167.1' | ||
helm-version: 'v3.15.4' | ||
helm-plugins: > | ||
https://github.com/databus23/helm-diff, https://github.com/jkroepke/helm-secrets | ||
helmfile-args: sync --wait | ||
|
||
- name: Test the db-operator chart upgrade | ||
run: | | ||
ct install --target-branch main --charts ./charts/db-operator --upgrade | ||
helmfile destroy | ||
- uses: helmfile/[email protected] | ||
with: | ||
helmfile-version: 'v0.167.1' | ||
helm-version: 'v3.15.4' | ||
helm-plugins: > | ||
https://github.com/databus23/helm-diff, https://github.com/jkroepke/helm-secrets | ||
helmfile-args: sync --wait | ||
|
||
- name: Test db-instances charts install | ||
run: | | ||
helmfile -l name=prometheus-stack sync | ||
helmfile sync -e instances | ||
kubectl rollout status deploy/db-operator -n db-operator | ||
kubectl rollout status deploy/db-operator-webhook -n db-operator | ||
ct install --target-branch main --charts ./charts/db-instances | ||
helmfile destroy | ||
- name: Test db-instances charts install | ||
- uses: helmfile/[email protected] | ||
with: | ||
helmfile-version: 'v0.167.1' | ||
helm-version: 'v3.15.4' | ||
helm-plugins: > | ||
https://github.com/databus23/helm-diff, https://github.com/jkroepke/helm-secrets | ||
helmfile-args: sync --wait | ||
|
||
- name: Test db-instances charts upgrade | ||
run: | | ||
helmfile -l name=prometheus-stack sync | ||
helmfile sync -e instances | ||
kubectl rollout status deploy/db-operator -n db-operator | ||
kubectl rollout status deploy/db-operator-webhook -n db-operator | ||
ct install --target-branch main --charts ./charts/db-instances --upgrade | ||
helmfile destroy | ||
release: | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters