config/crd/patches/webhook_in_clusters.yaml (14 lines of code) (raw):
# The following patch enables a conversion webhook for the CRD
apiVersion: apiextensions.k8s.io/v1
kind: CustomResourceDefinition
metadata:
name: clusters.anywhere.eks.amazonaws.com
spec:
conversion:
strategy: Webhook
webhook:
conversionReviewVersions: ["v1", "v1beta1"]
clientConfig:
service:
namespace: eksa-system
name: webhook-service
path: /convert