Files
spark-operator/config/crd/patches/cainjection_in_scheduledsparkapplications.yaml
Rishabh SinghandGitHub 5d250833e6 Fix duplicate webhook patch and add missing ScheduledSparkApplication Patches (#2820)
The kustomization.yaml had a duplicate entry for webhook_in_sparkapplications.yaml
which appears to be a copy-paste error from the controller-runtime refactor.

This commit:
- Fixes the duplicate webhook patch entry in config/crd/kustomization.yaml
- Adds webhook_in_scheduledsparkapplications.yaml for conversion webhook support
- Adds cainjection_in_scheduledsparkapplications.yaml for cert-manager CA injection

Both CRDs (SparkApplication and ScheduledSparkApplication) now have corresponding
webhook and CA injection patch files, matching the intended kustomize configuration.

Signed-off-by: roburishabh <[email protected]>
2026-03-12 18:34:01 +00:00

8 lines
304 B
YAML

# The following patch adds a directive for certmanager to inject CA into the CRD
apiVersion: apiextensions.k8s.io/v1
kind: CustomResourceDefinition
metadata:
annotations:
cert-manager.io/inject-ca-from: CERTIFICATE_NAMESPACE/CERTIFICATE_NAME
name: scheduledsparkapplications.sparkoperator.k8s.io