Fix panic on webhook for user-owned repository (#344)

* Fix panic on webhook for user-owned repository

Follow-up for #282 and #334
This commit is contained in:
Yusuke Kuoka
2021-02-23 08:05:25 +09:00
committed by GitHub
parent 2d7fbbfb68
commit 991535e567
7 changed files with 815 additions and 130 deletions

View File

@@ -82,6 +82,7 @@ func SetupDeploymentTest(ctx context.Context) *corev1.Namespace {
Scheme: scheme.Scheme,
Log: logf.Log,
Recorder: mgr.GetEventRecorderFor("runnerreplicaset-controller"),
Name: "runnerdeployment-" + ns.Name,
}
err = controller.SetupWithManager(mgr)
Expect(err).NotTo(HaveOccurred(), "failed to setup controller")