File tree Expand file tree Collapse file tree 1 file changed +4
-6
lines changed
Expand file tree Collapse file tree 1 file changed +4
-6
lines changed Original file line number Diff line number Diff line change @@ -127,19 +127,17 @@ func main() {
127127 }),
128128 Cache : cache.Options {
129129 SyncPeriod : & reconcileInterval ,
130- DefaultNamespaces : map [string ]cache.Config {
131- namespace : {},
132- },
133130 },
134131 HealthProbeBindAddress : healthAddr ,
135132 LeaderElection : enableLeaderElection ,
136133 LeaderElectionID : "firewall-controller-manager-leader-election" ,
137134 GracefulShutdownTimeout : & gracefulShutdownTimeout ,
138135 }
139136
140- if namespace == "" {
137+ if namespace != "" {
138+ l .Info ("running in dedicated namespace only" , "namespace" , namespace )
141139 mgrConfig .Cache .DefaultNamespaces = map [string ]cache.Config {
142- cache . AllNamespaces : {},
140+ namespace : {},
143141 }
144142 }
145143
@@ -210,7 +208,7 @@ func main() {
210208 // secret for this controller and expose the access secrets through the firewall
211209 // status resource, which can be read by the firewall-controller
212210 // - the firewall-controller can then create a client from these secrets but
213- // it has to contiuously update the token file because the token will expire
211+ // it has to continuously update the token file because the token will expire
214212 // - we can re-use the same approach for this controller as well and do not have
215213 // to do any additional mounts for the deployment of the controller
216214 //
You can’t perform that action at this time.
0 commit comments