-
Notifications
You must be signed in to change notification settings - Fork 1.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
clarify how clusterctl overrides works #5818
Comments
@namnx228: The label(s) In response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
/area upgrades |
I think the clusterctl.yaml has to contain something like this: providers:
- name: "cluster-api"
type: "CoreProvider"
url: "/Users/buringerst/.cluster-api/dev-repository/cluster-api/v1.1.99/core-components.yaml"
- name: "kubeadm"
type: "BootstrapProvider"
url: "/Users/buringerst/.cluster-api/dev-repository/bootstrap-kubeadm/v1.1.99/bootstrap-components.yaml"
- name: "kubeadm"
type: "ControlPlaneProvider"
url: "/Users/buringerst/.cluster-api/dev-repository/control-plane-kubeadm/v1.1.99/control-plane-components.yaml"
- name: "docker"
type: "InfrastructureProvider"
url: "/Users/buringerst/.cluster-api/dev-repository/infrastructure-docker/v1.1.99/infrastructure-components.yaml"
overridesFolder: "/Users/buringerst/.cluster-api/dev-repository/overrides" (or let's say at least that's how it works in CI and on my machine :)) |
@sbueringer I expect it works even when we don't have the provider field in the |
Ah okay, I wasn't aware of that. Let's see what other folks which know more about clusterctl say |
@ykakarap PTAL |
@namnx228 I see that you mentioned that This will help me in debugging further. Thank you :) |
Hi @ykakarap, sorry for my late answer.
To sum up, if we put a test version of provider (this version is not in the list of released versions), and we don't specify the use of this version in |
@namnx228 thanks for reporting the result of your investigation! /remove-kind bug /retitle clarify how clusterctl overrides works |
/milestone v1.2 |
The Kubernetes project currently lacks enough contributors to adequately respond to all issues and PRs. This bot triages issues and PRs according to the following rules:
You can:
Please send feedback to sig-contributor-experience at kubernetes/community. /lifecycle stale |
/good-first-issue We should document the fact that overrides only provide file replacements; instead, provider version resolution is based only on the actual repository structure with a not at the end of https://cluster-api.sigs.k8s.io/clusterctl/configuration.html#overrides-layer |
@fabriziopandini: GuidelinesPlease ensure that the issue body includes answers to the following questions:
For more details on the requirements of such an issue, please see here and ensure that they are met. If this request no longer meets these requirements, the label can be removed In response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
/assign |
The Kubernetes project currently lacks enough active contributors to adequately respond to all issues and PRs. This bot triages issues and PRs according to the following rules:
You can:
Please send feedback to sig-contributor-experience at kubernetes/community. /lifecycle rotten |
/remove-lifecycle rotten |
What steps did you take and what happened:
[A clear and concise description on how to REPRODUCE the bug.]
clusterctl upgrade plan | apply
ignores the overrides repository and fetch the metadata.yaml file from upstream.Here is my overrides structure:
clusterctl.yaml:
and this is the debug message from
clusterctl upgrade plan
:If the metal3 infrastructure provider metadata.yaml is used from the overrides directory, the last message should be:
Using Override="metadata.yaml" Provider="infrastructure-metal3" Version="v1.0.0"
What did you expect to happen:
When setting up the overrides directory for a provider, it is expected that clusterctl upgrade plan | apply would use the metadata.yaml file in this overrides directory instead of fetching it from upstream. This behavior is true with clusterctl v0.4.4. However, it is not true with >=v1.0.0.
Environment:
kubectl version
):Client: v1.22.4
Server: v1.22.2
/etc/os-release
): Ubuntu 20.04.3 LTS/kind bug
/area upgrade clusterctl
[One or more /area label. See https://github.com/kubernetes-sigs/cluster-api/labels?q=area for the list of labels]
The text was updated successfully, but these errors were encountered: