File tree Expand file tree Collapse file tree 1 file changed +6
-7
lines changed
internal/cmd/ansible-operator/run Expand file tree Collapse file tree 1 file changed +6
-7
lines changed Original file line number Diff line number Diff line change @@ -179,14 +179,13 @@ func run(cmd *cobra.Command, f *flags.Flags) {
179
179
os .Exit (1 )
180
180
}
181
181
182
+ options .NewCache = func (config * rest.Config , opts cache.Options ) (cache.Cache , error ) {
183
+ return cache .New (config , cache.Options {
184
+ Namespaces : watchNamespaces ,
185
+ })
186
+ }
182
187
// Create a new manager to provide shared dependencies and start components
183
- mgr , err := manager .New (cfg , manager.Options {
184
- NewCache : func (config * rest.Config , opts cache.Options ) (cache.Cache , error ) {
185
- return cache .New (config , cache.Options {
186
- Namespaces : watchNamespaces ,
187
- })
188
- },
189
- })
188
+ mgr , err := manager .New (cfg , options )
190
189
if err != nil {
191
190
log .Error (err , "Failed to create a new manager." )
192
191
os .Exit (1 )
You can’t perform that action at this time.
0 commit comments