instead of requiring user input to select deployType every time, deployType correlates 1:1 with the presence of templated folders
./charts -> helm
./base && ./overlays -> kustomize
./manifests -> manifests
at minimum, when calling generate-workflow, draft could detect if only one of these is present, and default to it instead of prompting for selection every time
additionally, abstracting the ability to update images in a deployType-agnositc interface would greatly simplify the code
|
func updateProductionDeployments(deployType, dest string, flagValuesMap map[string]string, templateWriter templatewriter.TemplateWriter) error { |