-
Couldn't load subscription status.
- Fork 1.4k
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
generateExtensionandvalidateExtensiontogeneratePatchExtensionandvalidatePatchExtensionrespectively 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