From 4f6f6061f568954881de5e6df5e59c97ede69228 Mon Sep 17 00:00:00 2001 From: Filip Strozik Date: Mon, 23 Dec 2024 10:08:22 +0100 Subject: [PATCH] Improve missing in-cluster registry hint suffix (#2297) --- internal/cmd/alpha/module/add.go | 2 +- internal/registry/config.go | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/internal/cmd/alpha/module/add.go b/internal/cmd/alpha/module/add.go index 148935342..fd0db370e 100644 --- a/internal/cmd/alpha/module/add.go +++ b/internal/cmd/alpha/module/add.go @@ -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") diff --git a/internal/registry/config.go b/internal/registry/config.go index 83596879d..7db47cf2c 100644 --- a/internal/registry/config.go +++ b/internal/registry/config.go @@ -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`", ), ) } @@ -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`", ), ) }