File tree Expand file tree Collapse file tree 1 file changed +8
-6
lines changed Expand file tree Collapse file tree 1 file changed +8
-6
lines changed Original file line number Diff line number Diff line change @@ -159,12 +159,14 @@ func main() {
159
159
}
160
160
if globalPullSecretKey != nil {
161
161
cacheOptions .ByObject [& corev1.Secret {}] = crcache.ByObject {
162
- Field : fields .SelectorFromSet (map [string ]string {
163
- "metadata.name" : globalPullSecretKey .Name ,
164
- }),
165
- }
166
- cacheOptions .DefaultNamespaces [globalPullSecretKey .Namespace ] = crcache.Config {
167
- LabelSelector : k8slabels .Everything (),
162
+ Namespaces : map [string ]crcache.Config {
163
+ globalPullSecretKey .Namespace : {
164
+ LabelSelector : k8slabels .Everything (),
165
+ FieldSelector : fields .SelectorFromSet (map [string ]string {
166
+ "metadata.name" : globalPullSecretKey .Name ,
167
+ }),
168
+ },
169
+ },
168
170
}
169
171
}
170
172
mgr , err := ctrl .NewManager (ctrl .GetConfigOrDie (), ctrl.Options {
You can’t perform that action at this time.
0 commit comments