Skip to content

Commit

Permalink
Fixed usage of ListWatch and WatchFunc for conf.CustomResources; remo…
Browse files Browse the repository at this point in the history
…ved unused fmt import from config/config.go
  • Loading branch information
itisallgood committed Aug 14, 2024
1 parent 5544681 commit 8111bb7
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
1 change: 0 additions & 1 deletion config/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@ limitations under the License.
package config

import (
"fmt"
"io/ioutil"
"os"
"path/filepath"
Expand Down
4 changes: 2 additions & 2 deletions pkg/controller/controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -556,14 +556,14 @@ func Start(conf *config.Config, eventHandler handlers.Handler) {
Group: crd.Group,
Version: crd.Version,
Resource: crd.Resource,
}).List(options)
}).List(context.Background(), options)
},
WatchFunc: func(options meta_v1.ListOptions) (watch.Interface, error) {
return dynamicClient.Resource(schema.GroupVersionResource{
Group: crd.Group,
Version: crd.Version,
Resource: crd.Resource,
}).Watch(options)
}).Watch(context.Background(), options)
},
},
&unstructured.Unstructured{},
Expand Down

0 comments on commit 8111bb7

Please sign in to comment.