Skip to content

docker: trying to download cluster-template-docker.yaml: 404 #12015

Description

@sebastian-philipp

What steps did you take and what happened?

$ clusterctl init --infrastructure docker

Fetching providers
Installing cert-manager version="v1.16.3"
Waiting for cert-manager to be available...
Installing provider="cluster-api" version="v1.9.6" targetNamespace="capi-system"
Installing provider="bootstrap-kubeadm" version="v1.9.6" targetNamespace="capi-kubeadm-bootstrap-system"
Installing provider="control-plane-kubeadm" version="v1.9.6" targetNamespace="capi-kubeadm-control-plane-system"
Installing provider="infrastructure-docker" version="v1.9.6" targetNamespace="capd-system"

Your management cluster has been initialized successfully!

You can now create your first workload cluster by running the following:

  clusterctl generate cluster [name] --kubernetes-version [version] | kubectl apply -f -

and

$  clusterctl -v 100  generate cluster capi-quickstart --flavor docker   --kubernetes-version v1.32.0
No default config file available
Potential override file searchFile="/Users/sebastian/Library/Application Support/cluster-api/overrides/infrastructure-docker/v1.9.6/cluster-template-docker.yaml" provider="infrastructure-docker" version="v1.9.6"
Fetching file="cluster-template-docker.yaml" provider="docker" type="InfrastructureProvider" version="v1.9.6"
error using httpGet to get file from GitHub releases, falling back to github client: 404 Not Found owner="kubernetes-sigs" repository="cluster-api" version="v1.9.6" path="cluster-template-docker.yaml"
Error: failed to read "cluster-template-docker.yaml" from provider's repository "infrastructure-docker": failed to download files from GitHub release v1.9.6: failed to get file "cluster-template-docker.yaml" from "v1.9.6" release
sigs.k8s.io/cluster-api/cmd/clusterctl/client/repository.(*templateClient).Get
	sigs.k8s.io/cluster-api/cmd/clusterctl/client/repository/template_client.go:96
sigs.k8s.io/cluster-api/cmd/clusterctl/client.(*clusterctlClient).getTemplateFromRepository
	sigs.k8s.io/cluster-api/cmd/clusterctl/client/config.go:340
sigs.k8s.io/cluster-api/cmd/clusterctl/client.(*clusterctlClient).GetClusterTemplate
	sigs.k8s.io/cluster-api/cmd/clusterctl/client/config.go:257
sigs.k8s.io/cluster-api/cmd/clusterctl/cmd.runGenerateClusterTemplate
	sigs.k8s.io/cluster-api/cmd/clusterctl/cmd/generate_cluster.go:194
sigs.k8s.io/cluster-api/cmd/clusterctl/cmd.init.func8
	sigs.k8s.io/cluster-api/cmd/clusterctl/cmd/generate_cluster.go:103
github.com/spf13/cobra.(*Command).execute
	github.com/spf13/cobra@v1.8.1/command.go:985
github.com/spf13/cobra.(*Command).ExecuteC
	github.com/spf13/cobra@v1.8.1/command.go:1117
github.com/spf13/cobra.(*Command).Execute
	github.com/spf13/cobra@v1.8.1/command.go:1041
sigs.k8s.io/cluster-api/cmd/clusterctl/cmd.Execute
	sigs.k8s.io/cluster-api/cmd/clusterctl/cmd/root.go:113
main.main
	sigs.k8s.io/cluster-api/cmd/clusterctl/main.go:27
runtime.main
	runtime/proc.go:271
runtime.goexit
	runtime/asm_arm64.s:1222

I'm still trying to figure out what is going on here, but please, can you at least log the url you're trying to download?

What did you expect to happen?

I got a 404

Cluster API version

clusterctl version: &version.Info{Major:"1", Minor:"9", GitVersion:"v1.9.5", GitCommit:"068c0f3c8ed3a7e382952f8ae68b648aee240a60", GitTreeState:"clean", BuildDate:"2025-02-18T19:11:43Z", GoVersion:"go1.22.12", Compiler:"gc", Platform:"darwin/arm64"}

Kubernetes version

Client Version: v1.32.0
Kustomize Version: v5.5.0
Server Version: v1.32.0

Anything else you would like to add?

No response

Label(s) to be applied

/kind bug
One or more /area label. See https://github.com/kubernetes-sigs/cluster-api/labels?q=area for the list of labels.

Metadata

Metadata

Assignees

No one assigned

    Labels

    kind/bugCategorizes issue or PR as related to a bug.needs-triageIndicates an issue or PR lacks a `triage/foo` label and requires one.priority/awaiting-more-evidenceLowest priority. Possibly useful, but not yet enough support to actually get it done.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions