fix build & unittest for helm repo controller

This commit is contained in:
live77
2021-12-06 21:42:21 +08:00
parent 81db894741
commit 108284d3cd
3 changed files with 3 additions and 2 deletions

View File

@@ -86,6 +86,7 @@ type ReconcileHelmRepo struct {
}
func (r *ReconcileHelmRepo) SetupWithManager(mgr ctrl.Manager) error {
r.Client = mgr.GetClient()
r.scheme = mgr.GetScheme()
r.recorder = mgr.GetEventRecorderFor("workspace-controller")
r.config = mgr.GetConfig()