|
@@ -21,6 +21,7 @@ import (
|
|
|
"time"
|
|
"time"
|
|
|
|
|
|
|
|
"go.uber.org/zap/zapcore"
|
|
"go.uber.org/zap/zapcore"
|
|
|
|
|
+ v1 "k8s.io/api/core/v1"
|
|
|
"k8s.io/client-go/kubernetes/scheme"
|
|
"k8s.io/client-go/kubernetes/scheme"
|
|
|
"k8s.io/client-go/rest"
|
|
"k8s.io/client-go/rest"
|
|
|
ctrl "sigs.k8s.io/controller-runtime"
|
|
ctrl "sigs.k8s.io/controller-runtime"
|
|
@@ -80,6 +81,11 @@ var _ = BeforeSuite(func() {
|
|
|
Metrics: server.Options{
|
|
Metrics: server.Options{
|
|
|
BindAddress: "0", // avoid port collision when testing
|
|
BindAddress: "0", // avoid port collision when testing
|
|
|
},
|
|
},
|
|
|
|
|
+ Client: client.Options{
|
|
|
|
|
+ Cache: &client.CacheOptions{
|
|
|
|
|
+ DisableFor: []client.Object{&v1.Secret{}, &v1.ConfigMap{}},
|
|
|
|
|
+ },
|
|
|
|
|
+ },
|
|
|
})
|
|
})
|
|
|
Expect(err).ToNot(HaveOccurred())
|
|
Expect(err).ToNot(HaveOccurred())
|
|
|
|
|
|