Add support for Kustomize Strategic Merge Patch on ScaledJobs #5751
Labels
feature-request
All issues for new features that have not been committed to
needs-discussion
stale
All issues that are marked as stale due to inactivity
Proposal
In order for Kustomize to patch CRDs properly, we need to publish openAPI schema containing the following metadata in the ScaledJob CRD definitions.
Use-Case
We have been running ScaledObjects for about 3 years now and recently we've been considering switching to ScaledJobs for some use cases.
We use Kustomize extensively with a multi-level layering system, even with a centralized shared repository with the base objects.
While experimenting with implementing it into our setup I noticed that patching ScaledJobs (we add default environment variables for monitoring purposes by default, while we add more environment variables on a service level. Or patching things like an entrypoint on the service level) was not doing a strategic merge.
So I went on a hunt and quickly realized that strategic merges need to be supported by the CRD. We prefer using strategic merge patches over JSON patch for readability and ease of use.
To solve this issue we would have 3 options:
openapi.path
to specify the correct OpenAPI schema to customize.Is this a feature you are interested in implementing yourself?
Maybe
Anything else?
Happy to make my first contribution but I hardly have any experience in golang. But I noticed there is some JSON patching going on which I'm well familiar with but it depends on how we would see this being implemented.
The text was updated successfully, but these errors were encountered: