openshift / external-dns-operator

The ExternalDNS Operator provides simplified ExternalDNS controller management.
Apache License 2.0
22 stars 33 forks source link

`make image-build` fails with permission denied issue #144

Closed DhritiShikhar closed 1 year ago

DhritiShikhar commented 2 years ago

➜ external-dns-operator git:(CFE-368-2) ✗ make image-build

go run sigs.k8s.io/controller-tools/cmd/controller-gen "crd:trivialVersions=true,preserveUnknownFields=false" rbac:roleName=external-dns-operator webhook paths="./..." output:crd:artifacts:config=config/crd/bases go run sigs.k8s.io/controller-tools/cmd/controller-gen object:headerFile="hack/boilerplate.go.txt" paths="./..." go fmt ./... go vet ./... mkdir -p "/home/dhritishikhar/go/src/github.com/openshift/external-dns-operator/testbin" KUBEBUILDER_ASSETS="/home/dhritishikhar/go/src/github.com/openshift/external-dns-operator/testbin/k8s/1.21.4-linux-amd64" go test ./... -race -covermode=atomic -coverprofile coverage.out ok github.com/openshift/external-dns-operator/api/v1alpha1 9.857s coverage: 28.9% of statements ? github.com/openshift/external-dns-operator/cmd/external-dns-operator [no test files] ? github.com/openshift/external-dns-operator/pkg/operator [no test files] ? github.com/openshift/external-dns-operator/pkg/operator/config [no test files] ok github.com/openshift/external-dns-operator/pkg/operator/controller 0.084s coverage: 21.7% of statements ok github.com/openshift/external-dns-operator/pkg/operator/controller/ca-configmap 2.112s coverage: 65.6% of statements ok github.com/openshift/external-dns-operator/pkg/operator/controller/credentials-secret 2.102s coverage: 47.6% of statements ok github.com/openshift/external-dns-operator/pkg/operator/controller/externaldns 1.324s coverage: 84.8% of statements ok github.com/openshift/external-dns-operator/pkg/operator/controller/utils 0.075s coverage: 100.0% of statements ? github.com/openshift/external-dns-operator/pkg/operator/controller/utils/test [no test files] ? github.com/openshift/external-dns-operator/pkg/utils [no test files] ? github.com/openshift/external-dns-operator/pkg/version [no test files] podman build -t quay.io/dhritishikhar/external-dns-operator:1.0.5 . [1/2] STEP 1/4: FROM registry.access.redhat.com/ubi8/go-toolset:latest AS builder [1/2] STEP 2/4: WORKDIR /opt/app-root/src --> Using cache 8331e7ddef3c0437ecd68924827f4ff3d9123de1dbd9649ed21abe8d1118a670 --> 8331e7ddef3 [1/2] STEP 3/4: COPY . . --> e0e9565ac89 [1/2] STEP 4/4: RUN make build-operator GO111MODULE=on GOFLAGS=-mod=vendor CGO_ENABLED=0 go build -ldflags "-X github.com/openshift/external-dns-operator/pkg/version.SHORTCOMMIT=1bd6091 -X github.com/openshift/external-dns-operator/pkg/version.COMMIT=1bd6091d986fff306f6979c9c9fc81646b3f1a0e" -o bin/external-dns-operator github.com/openshift/external-dns-operator/cmd/external-dns-operator go build github.com/openshift/external-dns-operator/cmd/external-dns-operator: copying /tmp/go-build1488934978/b001/exe/a.out: open bin/external-dns-operator: permission denied make: [Makefile:134: build-operator] Error 1 Error: error building at STEP "RUN make build-operator": error while running runtime: exit status 2 make: [Makefile:142: image-build] Error 2

openshift-bot commented 1 year ago

Issues go stale after 90d of inactivity.

Mark the issue as fresh by commenting /remove-lifecycle stale. Stale issues rot after an additional 30d of inactivity and eventually close. Exclude this issue from closing by commenting /lifecycle frozen.

If this issue is safe to close now please do so with /close.

/lifecycle stale

openshift-bot commented 1 year ago

Stale issues rot after 30d of inactivity.

Mark the issue as fresh by commenting /remove-lifecycle rotten. Rotten issues close after an additional 30d of inactivity. Exclude this issue from closing by commenting /lifecycle frozen.

If this issue is safe to close now please do so with /close.

/lifecycle rotten /remove-lifecycle stale

openshift-bot commented 1 year ago

Rotten issues close after 30d of inactivity.

Reopen the issue by commenting /reopen. Mark the issue as fresh by commenting /remove-lifecycle rotten. Exclude this issue from closing again by commenting /lifecycle frozen.

/close

openshift-ci[bot] commented 1 year ago

@openshift-bot: Closing this issue.

In response to [this](https://github.com/openshift/external-dns-operator/issues/144#issuecomment-1259131717): >Rotten issues close after 30d of inactivity. > >Reopen the issue by commenting `/reopen`. >Mark the issue as fresh by commenting `/remove-lifecycle rotten`. >Exclude this issue from closing again by commenting `/lifecycle frozen`. > >/close Instructions for interacting with me using PR comments are available [here](https://git.k8s.io/community/contributors/guide/pull-requests.md). If you have questions or suggestions related to my behavior, please file an issue against the [kubernetes/test-infra](https://github.com/kubernetes/test-infra/issues/new?title=Prow%20issue:) repository.