Bug 2034884 - ART cannot build the image because it tries to download controller-gen
Summary: ART cannot build the image because it tries to download controller-gen
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: OpenShift Container Platform
Classification: Red Hat
Component: Special Resource Operator
Version: 4.10
Hardware: Unspecified
OS: Unspecified
unspecified
high
Target Milestone: ---
: 4.10.0
Assignee: Quentin Barrand
QA Contact: liqcui
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2021-12-22 11:38 UTC by Quentin Barrand
Modified: 2022-03-12 04:40 UTC (History)
1 user (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2022-03-12 04:39:45 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)
Email from ART build system (13.26 KB, application/mbox)
2021-12-22 11:38 UTC, Quentin Barrand
no flags Details


Links
System ID Private Priority Status Summary Last Updated
Github openshift special-resource-operator pull 87 0 None open Bug 2034884: Fix ART builds 2021-12-22 11:39:57 UTC
Red Hat Product Errata RHSA-2022:0056 0 None None None 2022-03-12 04:40:00 UTC

Description Quentin Barrand 2021-12-22 11:38:17 UTC
Created attachment 1847338 [details]
Email from ART build system

Description of problem:

ART automated builds are failing because `make manager` tries to download controller-gen.
Email is attached to this BZ.

Comment 1 Quentin Barrand 2021-12-22 11:41:56 UTC
@dpaolell triggered a build against https://github.com/openshift/special-resource-operator/pull/87, which was successful: https://brewweb.engineering.redhat.com/brew/taskinfo?taskID=42050126

Comment 3 liqcui 2021-12-24 13:44:42 UTC
Verified Results:
[ocpadmin@ec2-18-217-45-133 special-resource-operator]$ head tools.go 
//go:build tools
// +build tools

package main

import (
        _ "sigs.k8s.io/controller-tools/cmd/controller-gen"
)

// This file imports packages that are used when running go generate, or used

[ocpadmin@ec2-18-217-45-133 special-resource-operator]$ make manager
cp .patches/options.patch.go vendor/github.com/google/go-containerregistry/pkg/crane/.
cp .patches/action.patch.go vendor/helm.sh/helm/v3/pkg/action/.
cp .patches/install.patch.go vendor/helm.sh/helm/v3/pkg/action/.
go run sigs.k8s.io/controller-tools/cmd/controller-gen object:headerFile="hack/boilerplate.go.txt" paths="./..."
go build -o manager main.go

Comment 6 errata-xmlrpc 2022-03-12 04:39:45 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory (Moderate: OpenShift Container Platform 4.10.3 security update), and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://access.redhat.com/errata/RHSA-2022:0056


Note You need to log in before you can comment on or make changes to this bug.