Skip to content

Commit

Permalink
error handler in create
Browse files Browse the repository at this point in the history
  • Loading branch information
bfoley13 committed Oct 7, 2024
1 parent 86976db commit c407f5c
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 40 deletions.
4 changes: 4 additions & 0 deletions cmd/create.go
Original file line number Diff line number Diff line change
Expand Up @@ -341,6 +341,10 @@ func (cc *createCmd) createDeployment() error {
return err
}

if deployTemplate == nil || deployTemplate.Config == nil {
return errors.New("invalid deployment type")
}

deployTemplate.Config.VariableMapToDraftConfig(flagVariablesMap)

err = prompts.RunPromptsFromConfigWithSkips(deployTemplate.Config)
Expand Down
2 changes: 1 addition & 1 deletion cmd/info.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ const (
)

var (
supportedDeploymentTypes = []string{"helm", "kustomize", "manifest"}
supportedDeploymentTypes = []string{"helm", "kustomize", "manifests"}
)

type infoCmd struct {
Expand Down
24 changes: 0 additions & 24 deletions pkg/manifests/deployment.yaml

This file was deleted.

15 changes: 0 additions & 15 deletions pkg/manifests/service.yaml

This file was deleted.

0 comments on commit c407f5c

Please sign in to comment.