From ee61eae71f698434094a6284b02e98fa96783270 Mon Sep 17 00:00:00 2001 From: Enrico Candino Date: Fri, 12 Jun 2026 18:27:59 +0200 Subject: [PATCH] warning for hcp --- cli/cmds/cluster_create.go | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/cli/cmds/cluster_create.go b/cli/cmds/cluster_create.go index 90ae6498..cbfcd654 100644 --- a/cli/cmds/cluster_create.go +++ b/cli/cmds/cluster_create.go @@ -84,10 +84,14 @@ func createAction(appCtx *AppContext, config *CreateConfig) func(cmd *cobra.Comm return errors.New("invalid cluster name") } - if (config.mode == string(v1beta1.SharedClusterMode) || config.mode == string(v1beta1.HCPClusterMode)) && config.agents != 0 { + if config.agents > 0 && config.mode != string(v1beta1.VirtualClusterMode) { return errors.New("invalid flag, --agents flag is only allowed in virtual mode") } + if config.mode == string(v1beta1.HCPClusterMode) { + logrus.Warn("Mode 'hcp' is experimental") + } + namespace := appCtx.Namespace(name) if err := createNamespace(ctx, client, namespace, config.policy); err != nil {