Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

auto detect current deploytype when running commands #332

Open
davidgamero opened this issue Jul 16, 2024 · 0 comments
Open

auto detect current deploytype when running commands #332

davidgamero opened this issue Jul 16, 2024 · 0 comments

Comments

@davidgamero
Copy link
Collaborator

davidgamero commented Jul 16, 2024

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 {

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant