From cf324a7d3f0bac81c8f254799c1bbc815e8aae78 Mon Sep 17 00:00:00 2001 From: Alex Leong Date: Thu, 26 Oct 2023 22:11:06 +0000 Subject: [PATCH] Destination controller should initialize jobs metadata api Signed-off-by: Alex Leong --- controller/cmd/destination/main.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/controller/cmd/destination/main.go b/controller/cmd/destination/main.go index 68bb191f47575..b36befc25de2a 100644 --- a/controller/cmd/destination/main.go +++ b/controller/cmd/destination/main.go @@ -117,7 +117,7 @@ func Main(args []string) { log.Fatalf("Failed to initialize K8s API: %s", err) } - metadataAPI, err := k8s.InitializeMetadataAPI(*kubeConfigPath, "local", k8s.Node, k8s.RS) + metadataAPI, err := k8s.InitializeMetadataAPI(*kubeConfigPath, "local", k8s.Node, k8s.RS, k8s.Job) if err != nil { log.Fatalf("Failed to initialize Kubernetes metadata API: %s", err) }