mirror of
https://github.com/rancher/k3k.git
synced 2026-08-19 04:16:16 +00:00
warning for hcp
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user