Skip to content

auto detect current deploytype when running commands #332

@davidgamero

Description

@davidgamero

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 {

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions