Azure / draft

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

enable default values for builder vars #123

Closed davidgamero closed 2 years ago

davidgamero commented 2 years ago

to build on the work done by @jldeen enabling version selection, I thought it would be nice add the ability to specify a default value for a builder variable- especially for something like selecting a version

ref #99

adds new optionalvariableDefaults todraft.yaml which injects defaults into prompts within parentheses ex:

//draftl.yaml
...
variableDefaults:
  - name: "PORT"
     value: "80"

//prompt
> Please Enter the port exposed in the application (default: 80):

Prompts with defaults skip the empty string validation, and instead substitute the default value for empty strings after all prompts have completed

This PR adds port defaults for all 3 deployTypes and to the JavaScript builder as well as a default version for the JavaScript dockerFile generation