diff --git a/test/rekt/resources/jobsink/jobsink.go b/test/rekt/resources/jobsink/jobsink.go index 22d8c4b1da6..42804ebeb91 100644 --- a/test/rekt/resources/jobsink/jobsink.go +++ b/test/rekt/resources/jobsink/jobsink.go @@ -73,6 +73,9 @@ func Install(name string, opts ...manifest.CfgFn) feature.StepFn { fn(cfg) } + if err := registerImage(ctx); err != nil { + t.Fatal(err) + } if _, err := manifest.InstallYamlFS(ctx, yamlEmbed, cfg); err != nil { t.Fatal(err) } @@ -223,3 +226,10 @@ func GoesReadySimple(name string) *feature.Feature { return f } + +func registerImage(ctx context.Context) error { + im := eventshub.ImageFromContext(ctx) + reg := environment.RegisterPackage(im) + _, err := reg(ctx, environment.FromContext(ctx)) + return err +}