Azure / draft

A day 0 tool for getting your app on k8s fast
MIT License
495 stars 59 forks source link

add `--variable` flag to `draft update` command #145

Closed davidgamero closed 1 year ago

davidgamero commented 1 year ago

Description

The following PR adds a --variable flag for the draft update command, which makes it possible to run the command non-interactively. This makes adding integration tests possible for the command, which this PR also adds.

Fixes # (issue) Feature # (details)

Type of change

Please delete options that are not relevant.

How Has This Been Tested?

Integration tests have been added for the update command

Please describe the tests that you ran to verify your changes. Provide instructions so we can reproduce. Please also list any relevant details for your test configuration. Is it a breaking change which will impact consuming tool(s).

Integration tests have been added for the draft update command for every existing integration scenario. For linux helm and kustomize, the upgrade integration test was added to the existing integration test that is validated by confirming successful deployment to minikube. For the the linux manifets deployment and all the windows deployments integration tests a new dependent job was added to run after the draft create integration test that re-uses artifacts and applies the draft update command yields files and executes without error. Template contents verification for the update command isn't included at this time.

Checklist: