Chore: Fix duplicate logs and parameter wrong hints. (#6086)

Signed-off-by: yanggang <gang.yang@daocloud.io>
This commit is contained in:
Yang Gang
2023-06-06 09:52:09 +08:00
committed by GitHub
parent f28c050530
commit 114cf4005e
2 changed files with 1 additions and 4 deletions

View File

@@ -153,7 +153,7 @@ func (s *CoreOptions) Flags() cliflag.NamedFlagSets {
wfs := fss.FlagSet("wfTypes")
wfs.IntVar(&wfTypes.MaxWorkflowWaitBackoffTime, "max-workflow-wait-backoff-time", 60, "Set the max workflow wait backoff time, default is 60")
wfs.IntVar(&wfTypes.MaxWorkflowFailedBackoffTime, "max-workflow-failed-backoff-time", 300, "Set the max workflow wait backoff time, default is 300")
wfs.IntVar(&wfTypes.MaxWorkflowFailedBackoffTime, "max-workflow-failed-backoff-time", 300, "Set the max workflow failed backoff time, default is 300")
wfs.IntVar(&wfTypes.MaxWorkflowStepErrorRetryTimes, "max-workflow-step-error-retry-times", 10, "Set the max workflow step error retry times, default is 10")
pkgmulticluster.AddFlags(fss.FlagSet("multicluster"))

View File

@@ -91,9 +91,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("Vela-Core init", "definition namespace", oam.SystemDefinitionNamespace)
restConfig := ctrl.GetConfigOrDie()
restConfig.UserAgent = types.KubeVelaName + "/" + version.GitRevision
restConfig.QPS = float32(s.QPS)