File tree 2 files changed +3
-7
lines changed 2 files changed +3
-7
lines changed Original file line number Diff line number Diff line change 24
24
go-version-file : ' go.mod'
25
25
26
26
- name : golangci-lint
27
- uses : reviewdog/action- golangci-lint@v2
27
+ uses :
golangci/ golangci-lint[email protected]
28
28
with :
29
- github_token : ${{ secrets.GITHUB_TOKEN }}
29
+ args : --timeout=10m
30
30
31
31
- name : Test and build image
32
32
run : |
Original file line number Diff line number Diff line change @@ -30,7 +30,6 @@ import (
30
30
clientgoscheme "k8s.io/client-go/kubernetes/scheme"
31
31
_ "k8s.io/client-go/plugin/pkg/client/auth/gcp"
32
32
ctrl "sigs.k8s.io/controller-runtime"
33
- "sigs.k8s.io/controller-runtime/pkg/cache"
34
33
"sigs.k8s.io/controller-runtime/pkg/healthz"
35
34
"sigs.k8s.io/controller-runtime/pkg/log/zap"
36
35
@@ -71,15 +70,12 @@ func main() {
71
70
Scheme : scheme ,
72
71
MetricsBindAddress : metricsAddr ,
73
72
HealthProbeBindAddress : healthProbeAddr ,
74
- Port : 9443 ,
75
- Namespace : namespace ,
76
73
LeaderElection : enableLeaderElection ,
77
74
LeaderElectionID : "4ef9cd91.tietoevry.com" ,
78
75
LeaderElectionResourceLock : "configmapsleases" ,
79
76
}
80
77
if strings .Contains (namespace , "," ) {
81
- options .Namespace = ""
82
- options .NewCache = cache .MultiNamespacedCacheBuilder (strings .Split (namespace , "," ))
78
+ options .Cache .Namespaces = strings .Split (namespace , "," )
83
79
}
84
80
mgr , err := ctrl .NewManager (ctrl .GetConfigOrDie (), options )
85
81
You can’t perform that action at this time.
0 commit comments