With Kubernetes libraries at >=0.36.x the client.Apply patch type has been deprecated in favour of using the new Apply method on the client. That method requires an ApplyConfiguration as an input object.
These ApplyConfiguration types can/must be generated with controller-gen and then be used by consumers. (There is a hacky way to convert to Unstructured then an ApplyConfiguration as a workaround.)
Add this generation to the Porch API module so that downstream clients can drop the deprecated method. Try to keep the dependencies at the lowest version possible whilst still supporting the new types!
With Kubernetes libraries at >=0.36.x the
client.Applypatch type has been deprecated in favour of using the new Apply method on the client. That method requires anApplyConfigurationas an input object.These
ApplyConfigurationtypes can/must be generated with controller-gen and then be used by consumers. (There is a hacky way to convert toUnstructuredthen anApplyConfigurationas a workaround.)Add this generation to the Porch API module so that downstream clients can drop the deprecated method. Try to keep the dependencies at the lowest version possible whilst still supporting the new types!