We encountered a situation where we set up annotations in the template metadata of ScaledJob, but the pod generated by ScaledJob had empty metadata. The annotation that pod needed was not passed through.
I suggest adding the // +kubebuilder:pruning:PreserveUnknownFields flag in JobTargetRef so that the scaledjob crd will keep properties to ensure that the metadata is passed through.
Use-Case
No response
Is this a feature you are interested in implementing yourself?
Proposal
We encountered a situation where we set up annotations in the template metadata of ScaledJob, but the pod generated by ScaledJob had empty metadata. The annotation that pod needed was not passed through.
I suggest adding the
// +kubebuilder:pruning:PreserveUnknownFields
flag in JobTargetRef so that the scaledjob crd will keep properties to ensure that the metadata is passed through.Use-Case
No response
Is this a feature you are interested in implementing yourself?
Yes
Anything else?
No response