Is it bug to failed import clusterctl.yaml #9742
-
I expect it works, but I got error. Is it intended or bug? What I did: $clusterctl version
clusterctl version: &version.Info{Major:"1", Minor:"5", GitVersion:"v1.5.3", GitCommit:"5b7c0f00d7d57d7f6fc385646bb3e79951d82c75", GitTreeState:"clean", BuildDate:"2023-10-24T16:22:06Z", GoVersion:"go1.20.10", Compiler:"gc", Platform:"darwin/arm64"}
$ clusterctl config repositories -o yaml > clusterctl.yaml
$ clusterctl config repositories --config clusterctl.yaml
Error: failed to initialize the configuration reader: While parsing config: yaml: unmarshal errors:
line 1: cannot unmarshal !!seq into map[string]interface {} clusterctl.yaml: - File: core-components.yaml
Name: cluster-api
ProviderType: CoreProvider
URL: https://github.com/kubernetes-sigs/cluster-api/releases/latest/
- File: bootstrap-components.yaml
Name: kubeadm
ProviderType: BootstrapProvider
URL: https://github.com/kubernetes-sigs/cluster-api/releases/latest/
- File: bootstrap-components.yaml
Name: kubekey-k3s
ProviderType: BootstrapProvider
URL: https://github.com/kubesphere/kubekey/releases/latest/
## items are omitted |
Beta Was this translation helpful? Give feedback.
Answered by
sbueringer
Nov 21, 2023
Replies: 1 comment
-
Looks like you are missing |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
youngbo89
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Looks like you are missing
providers:
. Here is an example: https://storage.googleapis.com/kubernetes-jenkins/logs/periodic-cluster-api-e2e-main/1726642503492308992/artifacts/repository/clusterctl-config.yaml