Skip to content

Commit 8a562f7

Browse files
authored
Merge branch 'master' into feature/bump-go
2 parents 510856d + d4335d5 commit 8a562f7

File tree

2 files changed

+3
-7
lines changed

2 files changed

+3
-7
lines changed

.github/workflows/build.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,9 +24,9 @@ jobs:
2424
go-version-file: 'go.mod'
2525

2626
- name: golangci-lint
27-
uses: reviewdog/action-golangci-lint@v2
27+
uses: golangci/golangci-lint[email protected]
2828
with:
29-
github_token: ${{ secrets.GITHUB_TOKEN }}
29+
args: --timeout=10m
3030

3131
- name: Test and build image
3232
run: |

main.go

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,6 @@ import (
3030
clientgoscheme "k8s.io/client-go/kubernetes/scheme"
3131
_ "k8s.io/client-go/plugin/pkg/client/auth/gcp"
3232
ctrl "sigs.k8s.io/controller-runtime"
33-
"sigs.k8s.io/controller-runtime/pkg/cache"
3433
"sigs.k8s.io/controller-runtime/pkg/healthz"
3534
"sigs.k8s.io/controller-runtime/pkg/log/zap"
3635

@@ -71,15 +70,12 @@ func main() {
7170
Scheme: scheme,
7271
MetricsBindAddress: metricsAddr,
7372
HealthProbeBindAddress: healthProbeAddr,
74-
Port: 9443,
75-
Namespace: namespace,
7673
LeaderElection: enableLeaderElection,
7774
LeaderElectionID: "4ef9cd91.tietoevry.com",
7875
LeaderElectionResourceLock: "configmapsleases",
7976
}
8077
if strings.Contains(namespace, ",") {
81-
options.Namespace = ""
82-
options.NewCache = cache.MultiNamespacedCacheBuilder(strings.Split(namespace, ","))
78+
options.Cache.Namespaces = strings.Split(namespace, ",")
8379
}
8480
mgr, err := ctrl.NewManager(ctrl.GetConfigOrDie(), options)
8581

0 commit comments

Comments
 (0)