File tree Expand file tree Collapse file tree 1 file changed +2
-1
lines changed
components/ws-manager-mk2 Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Original file line number Diff line number Diff line change @@ -25,6 +25,7 @@ import (
25
25
utilruntime "k8s.io/apimachinery/pkg/util/runtime"
26
26
clientgoscheme "k8s.io/client-go/kubernetes/scheme"
27
27
ctrl "sigs.k8s.io/controller-runtime"
28
+ "sigs.k8s.io/controller-runtime/pkg/cache"
28
29
"sigs.k8s.io/controller-runtime/pkg/client"
29
30
"sigs.k8s.io/controller-runtime/pkg/healthz"
30
31
"sigs.k8s.io/controller-runtime/pkg/log/zap"
@@ -104,7 +105,7 @@ func main() {
104
105
HealthProbeBindAddress : cfg .Health .Addr ,
105
106
LeaderElection : enableLeaderElection ,
106
107
LeaderElectionID : "ws-manager-mk2-leader.gitpod.io" ,
107
- Namespace : cfg .Manager .Namespace ,
108
+ NewCache : cache . MultiNamespacedCacheBuilder ([] string { cfg .Manager .Namespace , cfg . Manager . SecretsNamespace }) ,
108
109
})
109
110
if err != nil {
110
111
setupLog .Error (err , "unable to start manager" )
You can’t perform that action at this time.
0 commit comments