Skip to content

Commit

Permalink
Improve missing in-cluster registry hint suffix (#2297)
Browse files Browse the repository at this point in the history
  • Loading branch information
pPrecel authored Dec 23, 2024
1 parent 9400f3f commit 4f6f606
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion internal/cmd/alpha/module/add.go
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ func newAddCMD(kymaConfig *cmdcommon.KymaConfig) *cobra.Command {
},
}

cmd.Flags().StringVar(&cfg.channel, "channel", "", "Name of the Kyma channel to use for the module")
cmd.Flags().StringVarP(&cfg.channel, "channel", "c", "", "Name of the Kyma channel to use for the module")
cmd.Flags().StringVar(&cfg.crPath, "cr-path", "", "Path to the custom resource file")
cmd.Flags().BoolVar(&cfg.defaultCR, "default-cr", false, "Use this flag to deploy module with default cr")

Expand Down
4 changes: 2 additions & 2 deletions internal/registry/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ func GetExternalConfig(ctx context.Context, client kube.Client) (*ExternalRegist
return nil, clierror.Wrap(err,
clierror.New("failed to get external registry configuration",
"make sure cluster is available and properly configured",
"enable docker registry module by calling `kyma alpha module enable docker-registry -c experimental`",
"enable docker registry module by calling `kyma alpha module enable docker-registry -c experimental --default-cr`",
),
)
}
Expand All @@ -46,7 +46,7 @@ func GetInternalConfig(ctx context.Context, client kube.Client) (*InternalRegist
return nil, clierror.Wrap(err,
clierror.New("failed to load in-cluster registry configuration",
"make sure cluster is available and properly configured",
"enable docker registry module by calling `kyma alpha module enable docker-registry -c experimental`",
"enable docker registry module by calling `kyma alpha module enable docker-registry -c experimental --default-cr`",
),
)
}
Expand Down

0 comments on commit 4f6f606

Please sign in to comment.