keda icon indicating copy to clipboard operation
keda copied to clipboard

Pass Metadata from ScaledJob Template to ChildJob Template Metadata

Open SpiritZhou opened this issue 3 weeks ago • 3 comments

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

SpiritZhou avatar Jun 25 '24 04:06 SpiritZhou