-
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
External variable discovery #7985
Comments
/triage accepted |
@killianmuldoon: You must be a member of the kubernetes-sigs/cluster-api-maintainers GitHub team to set the milestone. If you believe you should be able to issue the /milestone command, please contact your Cluster API Maintainers and have them propose you as an additional delegate for this responsibility. 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. |
/milestone v1.4 |
@killianmuldoon @sbueringer can we close this already? Asking because it has v1.4 milestone, so if not fully completed it may need to be moved to next milestone |
/close Will open some follow up issue to cover over the additional tasks not planned for the release. |
@killianmuldoon: Closing this issue. 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. |
External variable discovery is being proposed in #7932
This umbrella issue covers the steps proposed to implement external variable discovery in the CAPI repo. Some of these tasks, where larger effort is needed or the implementation needs clarification, may be represented by their own issues.
This list is ordered, by component and subtask, to reduce the dependencies between tasks when following it from top to bottom. Where tasks earlier in the list depend on later tasks this should be explicitly mentioned.
Webhooks
.status.variables
(Requires changes in ClusterClass) 🌱 Default and Validate Cluster variables based on ClusterClass status #8076Runtime SDK
ClusterClass
observedGeneration
to ClusterClass and set observedGeneration in the ClusterClass reconcile. 🌱 Add observedGeneration to ClusterClass status #7987variables
to the ClusterClass status and write all inline variables tostatus.variables
🌱 Add ClusterClass variables to status on reconcile #7991.spec.patches[].external
✨ Add discoverVariables runtime hook to ClusterClass reconcile loop #8006.status.variables
and dedupe variables based on their namespace. Note: ✨ Add discoverVariables runtime hook to ClusterClass reconcile loop #8006 (comment) ✨ Handle variable definition conflicts for external variables #8107Cluster Topology
.status.variables
. 🌱 Default and Validate Cluster variables based on ClusterClass status #8076.spec.topology.variables
🌱 Add DefinitionFrom field to ClusterVariable #8031.status.variables
Testing and reference implementation
Planned for v1.4 release
Nice-to-have
Create an index of ExtensionConfigs -> ClusterClass to quickly find all ClusterClasses using a particular ExtensionConfig. Follow-up: Improve ExtensionConfig reconcile performance #8495
Ensure watch on ExtensionConfig correctly filters by extensions actually referenced in the ClusterClass. Requires full validation of the discoverVariablesExtension name in ClusterClass webhook to make naming convention hard. Improve ExtensionConfig reconcile performance #8495
Add a warning to the webhooks when a Cluster can not be fully vaildated because the ClusterClass does not yet exist. This is dependent on webhook warning support being added in Controller Runtime. Follow-up: Add webhook warning for Clusters without updated ClusterClass #8496
Enforce strict validation for ClusterClass-based clusters in webhook with annotation. i.e. mechanism to cause error on creation if the Cluster's associated ClusterClass does not exist. Add webhook warning for Clusters without updated ClusterClass #8496
Add best practice and guidance for creating variables to the Topology mutation guide in the book. Improve testing for Runtime SDK variable discovery #8497
Introduce unit tests for the test-extension to show how variable definitions can be tested. Improve testing for Runtime SDK variable discovery #8497
Use settings to modify the variables returned in different tests. Improve testing for Runtime SDK variable discovery #8497
Add server library helper functions that allow easy definition of variables and enablement of a discoverVariables
hook. Continued on this PR https://github.com/kubernetes-sigs/cluster-api/pull/8013/files
/kind feature
/area runtime-sdk
The text was updated successfully, but these errors were encountered: