-
Notifications
You must be signed in to change notification settings - Fork 108
✨Allow to utilize providers from clusterctl.yaml file in /config/clusterctl.yaml #349
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
✨Allow to utilize providers from clusterctl.yaml file in /config/clusterctl.yaml #349
Conversation
/retest |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Default providers are hardcoded in clusterctl: https://github.com/kubernetes-sigs/cluster-api/blob/9d36ddcbf8381574a86cebeacdcdfc85bafa71e9/cmd/clusterctl/client/config/providers_client.go#L128
For a custom provider you should append its URL to the FetchConfig inside Provider CR spec. https://github.com/kubernetes-sigs/cluster-api-operator/tree/main/docs#provider-spec
Can you elaborate more on how you want to use clusterctl.yaml file?
|
I would recommend against it. It complicates the logic of the operator and makes it harder to troubleshoot potential issues. It seems to me that the current way when you can declare custom providers only in the CR specification is the best way. @alexander-demicev @furkatgofurov7 @damdo your opinions? |
As this is an opt-in functionality and is a part of the default embedded fetch configuration. Operator default behavior does not change. FetchConfig has a higher priority than the content of the provider file, so declarative approach is preserved. |
/retest |
1 similar comment
/retest |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
/approve
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: alexander-demicev The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
/lgtm
LGTM label has been added. Git tree hash: 39862d6bcfb25e9c13d92eac00b4f727dc8f225f
|
What this PR does / why we need it:
This allows to pass a default clusterctl.yaml file to the operator to fetch provider list from.
The file should be located under
/config/clusterctl.yaml
.Which issue(s) this PR fixes (optional, in
fixes #<issue number>(, fixes #<issue_number>, ...)
format, will close the issue(s) when PR gets merged):Fixes #