Skip to content

Commit

Permalink
Merge pull request #5033 from sbueringer/pr-kcp-untrack-objects
Browse files Browse the repository at this point in the history
🌱 KCP: stop caching ConfigMap, Secret, Pod, Deployment and DaemonSet of workload clusters
  • Loading branch information
k8s-ci-robot authored Jul 29, 2021
2 parents 4a01fee + 488d1b4 commit 2f5bee4
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions controlplane/kubeadm/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ import (
"time"

"github.com/spf13/pflag"
appsv1 "k8s.io/api/apps/v1"
corev1 "k8s.io/api/core/v1"
"k8s.io/apimachinery/pkg/runtime"
clientgoscheme "k8s.io/client-go/kubernetes/scheme"
Expand Down Expand Up @@ -200,6 +201,13 @@ func setupReconcilers(ctx context.Context, mgr ctrl.Manager) {
ExtractValue: noderefutil.IndexNodeByProviderID,
},
},
ClientUncachedObjects: []client.Object{
&corev1.ConfigMap{},
&corev1.Secret{},
&corev1.Pod{},
&appsv1.Deployment{},
&appsv1.DaemonSet{},
},
})
if err != nil {
setupLog.Error(err, "unable to create cluster cache tracker")
Expand Down

0 comments on commit 2f5bee4

Please sign in to comment.