File tree Expand file tree Collapse file tree
cmd/multi-arch-builder-controller Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -18,6 +18,7 @@ import (
1818 "sigs.k8s.io/prow/pkg/logrusutil"
1919
2020 buildv1 "github.com/openshift/api/build/v1"
21+ imagev1 "github.com/openshift/api/image/v1"
2122
2223 multiarchbuildconfigv1 "github.com/openshift/ci-tools/pkg/api/multiarchbuildconfig/v1"
2324 "github.com/openshift/ci-tools/pkg/controller/multiarchbuildconfig"
@@ -82,6 +83,10 @@ func main() {
8283 logrus .WithError (err ).Fatal ("Failed to add multiarchbuildconfig to scheme" )
8384 }
8485
86+ if err := imagev1 .AddToScheme (mgr .GetScheme ()); err != nil {
87+ logrus .WithError (err ).Fatal ("Failed to add image API to scheme" )
88+ }
89+
8590 nodeArchitectures , err := resolveNodeArchitectures (ctx , kubeClient .Nodes ())
8691 if err != nil {
8792 logrus .WithError (err ).Fatal ("failed to retrieve the node architectures" )
You can’t perform that action at this time.
0 commit comments