You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
defaultTestAllInfoMsg:=fmt.Sprintf(`only containers with the annotation "%s/${my-container}=true" will be parsed`, api.EnableAnnotationKey)
46
+
ifopts.DefaultTestAll {
47
+
defaultTestAllInfoMsg=fmt.Sprintf(`all containers will be tested, unless they have the annotation "%s/${my-container}=false"`, api.EnableAnnotationKey)
// if err := nodeController.SetupWithManager(mgr); err != nil {
104
+
// }
105
+
63
106
client, err:=client.New(ctx, log, opts.Client)
64
107
iferr!=nil {
65
108
returnfmt.Errorf("failed to setup image registry clients: %s", err)
66
109
}
67
110
68
-
deferfunc() {
69
-
iferr:=metricsServer.Shutdown(); err!=nil {
70
-
log.Error(err)
71
-
}
72
-
}()
111
+
c:=controller.NewPodReconciler(opts.CacheTimeout,
112
+
metricsServer,
113
+
client,
114
+
mgr.GetClient(),
115
+
log,
116
+
opts.DefaultTestAll,
117
+
)
73
118
74
-
defaultTestAllInfoMsg:=fmt.Sprintf(`only containers with the annotation "%s/${my-container}=true" will be parsed`, api.EnableAnnotationKey)
75
-
ifopts.DefaultTestAll {
76
-
defaultTestAllInfoMsg=fmt.Sprintf(`all containers will be tested, unless they have the annotation "%s/${my-container}=false"`, api.EnableAnnotationKey)
0 commit comments