Azure / draft

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

change default deploytype to avoid defaulting to invalid type #207

Closed davidgamero closed 1 year ago

davidgamero commented 1 year ago

Description

The default for the deploytype flag is currently set to ., which isn't a valid deployment type, and causes a nil pointer error.

In order to catch this in the future, a new smoke test action was added that uses the default for every option. This smoke test fails with invalid defaults like the one this PR fixes, and we should consider adding one for other commands once we have the ability to extract sane defaults for all of the flags on other commands.

Since the APPNAME variable didn't have a default, I added one to the draft.yaml allowing this smoke test to execute, and providing a basic default for testing.

Type of change

Please delete options that are not relevant.

How Has This Been Tested?

Validated with new error return on deployment type lookup Added new smoke test for create command

Checklist: