Skip to content

Commit

Permalink
set default for output-dir
Browse files Browse the repository at this point in the history
Signed-off-by: Gerd Oberlechner <goberlec@redhat.com>
  • Loading branch information
geoberle committed Oct 18, 2024
1 parent 151f942 commit 2d40c86
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions cmd/install/install_helm.go
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ func NewHelmRenderCommand(opts *Options) *cobra.Command {
SilenceUsage: true,
}

cmd.Flags().StringVar(&opts.OutputFile, "output-dir", "", "Directory to write the rendered helm chart to")
cmd.Flags().StringVar(&opts.OutputFile, "output-dir", "./chart", "Directory to write the rendered helm chart to")

cmd.RunE = func(cmd *cobra.Command, args []string) error {
opts.ApplyDefaults()
Expand All @@ -50,9 +50,6 @@ func NewHelmRenderCommand(opts *Options) *cobra.Command {
return err
}

if opts.OutputFile == "" {
opts.OutputFile = "./chart"
}
err = writeManifestsToDir(crds, fmt.Sprintf("%s/crds", opts.OutputFile))
if err != nil {
return err
Expand Down

0 comments on commit 2d40c86

Please sign in to comment.