Add warning for multiclustercidr flag (#8758)

Signed-off-by: galal-hussein <hussein.galal.ahmed.11@gmail.com>
pull/8778/head
Hussein Galal 2023-11-14 01:27:52 +02:00 committed by GitHub
parent ba5fcf13fc
commit f5920d7864
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")
}