From 4dc1472169f17833f7b312a0a41e45aa583a81f6 Mon Sep 17 00:00:00 2001 From: xuezhao Date: Fri, 19 Apr 2024 03:25:23 +0000 Subject: [PATCH] Add default values for workloadsourcedriver and worksourceloadconfig. Signed-off-by: GitHub --- pkg/work/spoke/options.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/pkg/work/spoke/options.go b/pkg/work/spoke/options.go index 309cda7f0..160a3fa61 100644 --- a/pkg/work/spoke/options.go +++ b/pkg/work/spoke/options.go @@ -4,6 +4,8 @@ import ( "time" "github.com/spf13/pflag" + + cloudeventswork "open-cluster-management.io/sdk-go/pkg/cloudevents/work" ) const ( @@ -28,6 +30,8 @@ func NewWorkloadAgentOptions() *WorkloadAgentOptions { MaxJSONRawLength: 1024, StatusSyncInterval: 10 * time.Second, AppliedManifestWorkEvictionGracePeriod: 60 * time.Minute, + WorkloadSourceDriver: cloudeventswork.ConfigTypeKube, + WorkloadSourceConfig: "/spoke/hub-kubeconfig/kubeconfig", } }