Skip to content

Docker builder time exploses #6911

@juldrixx

Description

@juldrixx

Bug Report

What did you do?

Upgraded to 1.39.1 of operator-sdk (go).

What did you expect to see?

Same building time for docker.

What did you see instead? Under which circumstances?

Increase of time from 15mins to 50mins of build.

Environment

Operator type:

/language go

Kubernetes cluster type:

$ operator-sdk version

1.39.1

$ go version (if language is Go)

1.24.1

Possible Solution

Rollback change introduced in 1.34.0

Additional context

I made the change introduced in 1.34.0 and the building time of the docker image increased from 15mins before to 50mins after.
The pain point is on this line: RUN CGO_ENABLED=0 GOOS=$TARGETOS GOARCH=$TARGETARCH go build -a -o manager cmd/main.go

Metadata

Metadata

Assignees

No one assigned

    Labels

    language/goIssue is related to a Go operator projectlifecycle/rottenDenotes an issue or PR that has aged beyond stale and will be auto-closed.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions