diff --git a/docs/book/src/cronjob-tutorial/testdata/project/.devcontainer/devcontainer.json b/docs/book/src/cronjob-tutorial/testdata/project/.devcontainer/devcontainer.json index 259f0f67268..0e0eed213f7 100644 --- a/docs/book/src/cronjob-tutorial/testdata/project/.devcontainer/devcontainer.json +++ b/docs/book/src/cronjob-tutorial/testdata/project/.devcontainer/devcontainer.json @@ -1,6 +1,6 @@ { "name": "Kubebuilder DevContainer", - "image": "golang:1.23", + "image": "docker.io/golang:1.23", "features": { "ghcr.io/devcontainers/features/docker-in-docker:2": {}, "ghcr.io/devcontainers/features/git:1": {} diff --git a/docs/book/src/cronjob-tutorial/testdata/project/Dockerfile b/docs/book/src/cronjob-tutorial/testdata/project/Dockerfile index 5c73c7f37cd..348b8372cd1 100644 --- a/docs/book/src/cronjob-tutorial/testdata/project/Dockerfile +++ b/docs/book/src/cronjob-tutorial/testdata/project/Dockerfile @@ -1,5 +1,5 @@ # Build the manager binary -FROM golang:1.23 AS builder +FROM docker.io/golang:1.23 AS builder ARG TARGETOS ARG TARGETARCH diff --git a/docs/book/src/getting-started/testdata/project/.devcontainer/devcontainer.json b/docs/book/src/getting-started/testdata/project/.devcontainer/devcontainer.json index 259f0f67268..0e0eed213f7 100644 --- a/docs/book/src/getting-started/testdata/project/.devcontainer/devcontainer.json +++ b/docs/book/src/getting-started/testdata/project/.devcontainer/devcontainer.json @@ -1,6 +1,6 @@ { "name": "Kubebuilder DevContainer", - "image": "golang:1.23", + "image": "docker.io/golang:1.23", "features": { "ghcr.io/devcontainers/features/docker-in-docker:2": {}, "ghcr.io/devcontainers/features/git:1": {} diff --git a/docs/book/src/getting-started/testdata/project/Dockerfile b/docs/book/src/getting-started/testdata/project/Dockerfile index 5c73c7f37cd..348b8372cd1 100644 --- a/docs/book/src/getting-started/testdata/project/Dockerfile +++ b/docs/book/src/getting-started/testdata/project/Dockerfile @@ -1,5 +1,5 @@ # Build the manager binary -FROM golang:1.23 AS builder +FROM docker.io/golang:1.23 AS builder ARG TARGETOS ARG TARGETARCH diff --git a/docs/book/src/migration/legacy/manually_migration_guide_v2_v3.md b/docs/book/src/migration/legacy/manually_migration_guide_v2_v3.md index 502f5bdbfe6..fb158df2179 100644 --- a/docs/book/src/migration/legacy/manually_migration_guide_v2_v3.md +++ b/docs/book/src/migration/legacy/manually_migration_guide_v2_v3.md @@ -372,13 +372,13 @@ In the Dockerfile, replace: ``` # Build the manager binary -FROM golang:1.13 as builder +FROM docker.io/golang:1.13 as builder ``` With: ``` # Build the manager binary -FROM golang:1.16 as builder +FROM docker.io/golang:1.16 as builder ``` #### Update your Makefile diff --git a/docs/book/src/multiversion-tutorial/testdata/project/.devcontainer/devcontainer.json b/docs/book/src/multiversion-tutorial/testdata/project/.devcontainer/devcontainer.json index 259f0f67268..0e0eed213f7 100644 --- a/docs/book/src/multiversion-tutorial/testdata/project/.devcontainer/devcontainer.json +++ b/docs/book/src/multiversion-tutorial/testdata/project/.devcontainer/devcontainer.json @@ -1,6 +1,6 @@ { "name": "Kubebuilder DevContainer", - "image": "golang:1.23", + "image": "docker.io/golang:1.23", "features": { "ghcr.io/devcontainers/features/docker-in-docker:2": {}, "ghcr.io/devcontainers/features/git:1": {} diff --git a/docs/book/src/multiversion-tutorial/testdata/project/Dockerfile b/docs/book/src/multiversion-tutorial/testdata/project/Dockerfile index 5c73c7f37cd..348b8372cd1 100644 --- a/docs/book/src/multiversion-tutorial/testdata/project/Dockerfile +++ b/docs/book/src/multiversion-tutorial/testdata/project/Dockerfile @@ -1,5 +1,5 @@ # Build the manager binary -FROM golang:1.23 AS builder +FROM docker.io/golang:1.23 AS builder ARG TARGETOS ARG TARGETARCH diff --git a/docs/book/src/reference/submodule-layouts.md b/docs/book/src/reference/submodule-layouts.md index 63a069311bd..e24cfc28dd7 100644 --- a/docs/book/src/reference/submodule-layouts.md +++ b/docs/book/src/reference/submodule-layouts.md @@ -179,7 +179,7 @@ You will have to manually add the new API module into the download of dependenci ```dockerfile # Build the manager binary -FROM golang:1.20 as builder +FROM docker.io/golang:1.20 as builder ARG TARGETOS ARG TARGETARCH diff --git a/pkg/plugins/golang/v4/scaffolds/internal/templates/devcontainer.go b/pkg/plugins/golang/v4/scaffolds/internal/templates/devcontainer.go index 56d1b2a1d65..50afaf0c43d 100644 --- a/pkg/plugins/golang/v4/scaffolds/internal/templates/devcontainer.go +++ b/pkg/plugins/golang/v4/scaffolds/internal/templates/devcontainer.go @@ -22,7 +22,7 @@ import ( const devContainerTemplate = `{ "name": "Kubebuilder DevContainer", - "image": "golang:1.23", + "image": "docker.io/golang:1.23", "features": { "ghcr.io/devcontainers/features/docker-in-docker:2": {}, "ghcr.io/devcontainers/features/git:1": {} diff --git a/pkg/plugins/golang/v4/scaffolds/internal/templates/dockerfile.go b/pkg/plugins/golang/v4/scaffolds/internal/templates/dockerfile.go index 69d74e6c2d3..6118b68e839 100644 --- a/pkg/plugins/golang/v4/scaffolds/internal/templates/dockerfile.go +++ b/pkg/plugins/golang/v4/scaffolds/internal/templates/dockerfile.go @@ -39,7 +39,7 @@ func (f *Dockerfile) SetTemplateDefaults() error { } const dockerfileTemplate = `# Build the manager binary -FROM golang:1.23 AS builder +FROM docker.io/golang:1.23 AS builder ARG TARGETOS ARG TARGETARCH diff --git a/testdata/project-v4-multigroup/.devcontainer/devcontainer.json b/testdata/project-v4-multigroup/.devcontainer/devcontainer.json index 259f0f67268..0e0eed213f7 100644 --- a/testdata/project-v4-multigroup/.devcontainer/devcontainer.json +++ b/testdata/project-v4-multigroup/.devcontainer/devcontainer.json @@ -1,6 +1,6 @@ { "name": "Kubebuilder DevContainer", - "image": "golang:1.23", + "image": "docker.io/golang:1.23", "features": { "ghcr.io/devcontainers/features/docker-in-docker:2": {}, "ghcr.io/devcontainers/features/git:1": {} diff --git a/testdata/project-v4-multigroup/Dockerfile b/testdata/project-v4-multigroup/Dockerfile index 5c73c7f37cd..348b8372cd1 100644 --- a/testdata/project-v4-multigroup/Dockerfile +++ b/testdata/project-v4-multigroup/Dockerfile @@ -1,5 +1,5 @@ # Build the manager binary -FROM golang:1.23 AS builder +FROM docker.io/golang:1.23 AS builder ARG TARGETOS ARG TARGETARCH diff --git a/testdata/project-v4-with-plugins/.devcontainer/devcontainer.json b/testdata/project-v4-with-plugins/.devcontainer/devcontainer.json index 259f0f67268..0e0eed213f7 100644 --- a/testdata/project-v4-with-plugins/.devcontainer/devcontainer.json +++ b/testdata/project-v4-with-plugins/.devcontainer/devcontainer.json @@ -1,6 +1,6 @@ { "name": "Kubebuilder DevContainer", - "image": "golang:1.23", + "image": "docker.io/golang:1.23", "features": { "ghcr.io/devcontainers/features/docker-in-docker:2": {}, "ghcr.io/devcontainers/features/git:1": {} diff --git a/testdata/project-v4-with-plugins/Dockerfile b/testdata/project-v4-with-plugins/Dockerfile index 5c73c7f37cd..348b8372cd1 100644 --- a/testdata/project-v4-with-plugins/Dockerfile +++ b/testdata/project-v4-with-plugins/Dockerfile @@ -1,5 +1,5 @@ # Build the manager binary -FROM golang:1.23 AS builder +FROM docker.io/golang:1.23 AS builder ARG TARGETOS ARG TARGETARCH diff --git a/testdata/project-v4/.devcontainer/devcontainer.json b/testdata/project-v4/.devcontainer/devcontainer.json index 259f0f67268..0e0eed213f7 100644 --- a/testdata/project-v4/.devcontainer/devcontainer.json +++ b/testdata/project-v4/.devcontainer/devcontainer.json @@ -1,6 +1,6 @@ { "name": "Kubebuilder DevContainer", - "image": "golang:1.23", + "image": "docker.io/golang:1.23", "features": { "ghcr.io/devcontainers/features/docker-in-docker:2": {}, "ghcr.io/devcontainers/features/git:1": {} diff --git a/testdata/project-v4/Dockerfile b/testdata/project-v4/Dockerfile index 5c73c7f37cd..348b8372cd1 100644 --- a/testdata/project-v4/Dockerfile +++ b/testdata/project-v4/Dockerfile @@ -1,5 +1,5 @@ # Build the manager binary -FROM golang:1.23 AS builder +FROM docker.io/golang:1.23 AS builder ARG TARGETOS ARG TARGETARCH