Skip to content

Commit

Permalink
Fix issue with upgrade Taskfile target (#4359)
Browse files Browse the repository at this point in the history
  • Loading branch information
matthchr authored Oct 21, 2024
1 parent 83687ff commit 3966bc5
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions Taskfile.yml
Original file line number Diff line number Diff line change
Expand Up @@ -373,24 +373,25 @@ tasks:
sh: "cat {{.DIR}}/azure/miclientid.txt"

controller:test-upgrade-apply-prerelease-chart:
desc: Apply the {{.CONTROLLER_APP}} prelease chart for new release
desc: Apply the {{.CONTROLLER_APP}} prerelease chart for new release
dir: "{{.CONTROLLER_ROOT}}"
cmds:
- task: controller:docker-push-local
- task: controller:package-helm-manifest
- task: controller:install-helm-wi
vars:
DIR: "{{.DIR | default .KIND_WORKLOAD_IDENTITY_PATH}}"
AZURE_MI_CLIENT_ID:
sh: "cat {{.DIR}}/azure/miclientid.txt"
vars:
DIR: "{{.DIR | default .KIND_WORKLOAD_IDENTITY_PATH}}"

controller:test-upgrade-post:
desc: Test upgrading {{.CONTROLLER_APP}} and helm chart for new release
dir: "{{.CONTROLLER_ROOT}}"
cmds:
- task: controller:test-upgrade-apply-prerelease-chart
- "go test -timeout 15m -count=1 -v -run Test_Pre_Release_ResourceCanBeCreated_AfterUpgrade ./test/pre-release"
- task controller:kind-delete
- task: controller:kind-delete

controller:test-upgrade:
desc: Test upgrading {{.CONTROLLER_APP}} and helm chart for new release
Expand Down

0 comments on commit 3966bc5

Please sign in to comment.