Chore: remove legacy rollout and scope (#6068)

* Chore: remove legacy rollout & scope

Signed-off-by: Somefive <yd219913@alibaba-inc.com>

* remove outdated params

Signed-off-by: Somefive <yd219913@alibaba-inc.com>

* fix

Signed-off-by: Somefive <yd219913@alibaba-inc.com>

---------

Signed-off-by: Somefive <yd219913@alibaba-inc.com>
This commit is contained in:
Somefive
2023-06-05 10:57:38 +08:00
committed by GitHub
parent 057e640ce2
commit f15eba2c5f
99 changed files with 40 additions and 5761 deletions

View File

@@ -49,7 +49,6 @@ type CoreOptions struct {
LogDebug bool
ControllerArgs *oamcontroller.Args
HealthAddr string
DisableCaps string
StorageDriver string
InformerSyncPeriod time.Duration
QPS float64
@@ -80,17 +79,13 @@ func NewCoreOptions() *CoreOptions {
RevisionLimit: 50,
AppRevisionLimit: 10,
DefRevisionLimit: 20,
CustomRevisionHookURL: "",
AutoGenWorkloadDefinition: true,
ConcurrentReconciles: 4,
DependCheckWait: 30 * time.Second,
OAMSpecVer: "v0.3",
EnableCompatibility: false,
IgnoreAppWithoutControllerRequirement: false,
IgnoreDefinitionWithoutControllerRequirement: false,
},
HealthAddr: ":9440",
DisableCaps: "all",
StorageDriver: "Local",
InformerSyncPeriod: 10 * time.Hour,
QPS: 50,
@@ -124,7 +119,6 @@ func (s *CoreOptions) Flags() cliflag.NamedFlagSets {
gfs.Uint64Var(&s.LogFileMaxSize, "log-file-max-size", s.LogFileMaxSize, "Defines the maximum size a log file can grow to, Unit is megabytes.")
gfs.BoolVar(&s.LogDebug, "log-debug", s.LogDebug, "Enable debug logs for development purpose")
gfs.StringVar(&s.HealthAddr, "health-addr", s.HealthAddr, "The address the health endpoint binds to.")
gfs.StringVar(&s.DisableCaps, "disable-caps", s.DisableCaps, "To be disabled builtin capability list.")
gfs.DurationVar(&s.InformerSyncPeriod, "informer-sync-period", s.InformerSyncPeriod,
"The re-sync period for informer in controller-runtime. This is a system-level configuration.")
gfs.Float64Var(&s.QPS, "kube-api-qps", s.QPS, "the qps for reconcile clients. Low qps may lead to low throughput. High qps may give stress to api-server. Raise this value if concurrent-reconciles is set to be high.")

View File

@@ -39,7 +39,6 @@ func TestCoreOptions_Flags(t *testing.T) {
args := []string{
"--application-re-sync-period=5s",
"--cluster-metrics-interval=5s",
"--disable-caps=true",
"--enable-cluster-gateway=true",
"--enable-cluster-metrics=true",
"--enable-leader-election=true",
@@ -83,7 +82,6 @@ func TestCoreOptions_Flags(t *testing.T) {
LogDebug: true,
ControllerArgs: &oamcontroller.Args{},
HealthAddr: "/healthz",
DisableCaps: "true",
StorageDriver: "",
InformerSyncPeriod: 3 * time.Second,
QPS: 200,

View File

@@ -85,7 +85,6 @@ func NewCoreCommand() *cobra.Command {
meta.Name = types.VelaCoreName
klog.InfoS("KubeVela information", "version", version.VelaVersion, "revision", version.GitRevision)
klog.InfoS("Disable capabilities", "name", s.DisableCaps)
klog.InfoS("Vela-Core init", "definition namespace", oam.SystemDefinitionNamespace)
return cmd
@@ -93,7 +92,6 @@ func NewCoreCommand() *cobra.Command {
func run(ctx context.Context, s *options.CoreOptions) error {
klog.InfoS("KubeVela information", "version", version.VelaVersion, "revision", version.GitRevision)
klog.InfoS("Disable capabilities", "name", s.DisableCaps)
klog.InfoS("Vela-Core init", "definition namespace", oam.SystemDefinitionNamespace)
restConfig := ctrl.GetConfigOrDie()