From 5042497a61dc551101b2403e7d585121691c1ece Mon Sep 17 00:00:00 2001 From: Joaquim Moreno Date: Thu, 10 Mar 2022 14:01:55 +0000 Subject: [PATCH] syncer/syncer.go: Add to default sync, serviceaccounts, secrets and configmaps. --- pkg/syncer/syncer.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/syncer/syncer.go b/pkg/syncer/syncer.go index e0f048af2446..a9087d708903 100644 --- a/pkg/syncer/syncer.go +++ b/pkg/syncer/syncer.go @@ -176,7 +176,7 @@ func getAllGVRs(discoveryClient discovery.DiscoveryInterface, resourcesToSync .. return nil, err } } - gvrstrs := []string{"namespaces.v1."} // A syncer should always watch namespaces + gvrstrs := []string{"namespaces.v1.", "serviceaccounts.v1.", "configmaps.v1.", "secrets.v1."} // A syncer should always watch namespaces, serviceaccounts, secrets and configmaps. for _, r := range rs { // v1 -> v1. // apps/v1 -> v1.apps