Closed
Description
When a user wants to include an external patch in a ClusterClass they have to specify the following in the ClusterClass .spec
patches:
- name: test-patch
external:
generateExtension: generate-patches.k8s-upgrade-with-runtimesdk
validateExtension: validate-topology.k8s-upgrade-with-runtimesdk
discoverVariablesExtension: discover-variables.k8s-upgrade-with-runtimesdk
This issue is about considering the following improvements to the API:
-
Change
generateExtension
andvalidateExtension
togeneratePatchExtension
andvalidatePatchExtension
respectively to make them consistent withdiscoverVariablesExtension
-
Allow users to specify an external patch using a single field. This would result in something like:
patches:
- name: test-patch
external:
extension: k8s-upgrade-with-runtimesdk
Where the three runtime hooks - generateExtension, validateExtension and discoverVariablesExtension - can be inferred from the extension through the Runtime SDK discovery process.
/area topology
/area runtime-sdk
/kind api-change
Metadata
Metadata
Assignees
Labels
Issues or PRs related to clusterclassIssues or PRs related to Runtime SDKDenotes an issue that needs help from a contributor. Must meet "help wanted" guidelines.Categorizes issue or PR as related to adding, removing, or otherwise changing an APIHigher priority than priority/awaiting-more-evidence.Indicates an issue or PR is ready to be actively worked on.