From 2e104a0b65ecc5817817a40472f6f457885694e3 Mon Sep 17 00:00:00 2001 From: Dimitri Pertin Date: Tue, 22 Oct 2024 16:17:45 +0200 Subject: [PATCH] ScaledJob: Support metadata annotations for ephemeral volume claims Signed-off-by: Dimitri Pertin --- CHANGELOG.md | 1 + config/crd/patches/scaledjob_patch.yaml | 4 ++++ 2 files changed, 5 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 32f6c393aae..7ce21e6ea3f 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -91,6 +91,7 @@ Here is an overview of all new **experimental** features: - **AWS Secret Manager**: Pod identity overrides are honored ([#6195](https://github.com/kedacore/keda/issues/6195)) - **Azure Event Hub Scaler**: Checkpointer errors are correctly handled ([#6084](https://github.com/kedacore/keda/issues/6084)) - **Metrics API Scaler**: Prometheus metrics can have multiple labels ([#6077](https://github.com/kedacore/keda/issues/6077)) +- **ScaledJob CRD**: Support metadata annotations for ephemeral's volume claims ([6254](https://github.com/kedacore/keda/issues/6254)) ### Deprecations diff --git a/config/crd/patches/scaledjob_patch.yaml b/config/crd/patches/scaledjob_patch.yaml index f513f651d5e..ea12ae0456e 100644 --- a/config/crd/patches/scaledjob_patch.yaml +++ b/config/crd/patches/scaledjob_patch.yaml @@ -19,6 +19,10 @@ path: /spec/versions/0/schema/openAPIV3Schema/properties/spec/properties/jobTargetRef/properties/template/properties/metadata/x-kubernetes-preserve-unknown-fields value: true +- op: add + path: /spec/versions/0/schema/openAPIV3Schema/properties/spec/properties/jobTargetRef/properties/template/properties/spec/properties/volumes/items/properties/ephemeral/properties/volumeClaimTemplate/properties/metadata/x-kubernetes-preserve-unknown-fields + value: true + ## triggers are shared by ScaledObjects and ScaledJobs and therefore generated for both, including all properties. ## since the metricType property is only supported for ScaledObject, removing it from the generated ScaledJob CRD - op: remove