Add warning for multiclustercidr flag (#8759)

Signed-off-by: galal-hussein <hussein.galal.ahmed.11@gmail.com>
pull/8828/head
Hussein Galal 2023-11-14 01:28:09 +02:00 committed by GitHub
parent 3377e9d809
commit 27106c47fc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 0 deletions

View File

@ -190,6 +190,9 @@ func run(app *cli.Context, cfg *cmds.Server, leaderControllers server.CustomCont
logrus.Info("ETCD snapshots are disabled")
}
if cfg.MultiClusterCIDR {
logrus.Warn("multiClusterCIDR alpha feature will be removed in future releases")
}
if cfg.ClusterResetRestorePath != "" && !cfg.ClusterReset {
return errors.New("invalid flag use; --cluster-reset required with --cluster-reset-restore-path")
}