diff --git a/testdata/project-v4-multigroup/config/crd/patches/cainjection_in__lakerses.yaml b/testdata/project-v4-multigroup/config/crd/patches/cainjection_in__lakerses.yaml new file mode 100644 index 00000000000..0c79d339aa2 --- /dev/null +++ b/testdata/project-v4-multigroup/config/crd/patches/cainjection_in__lakerses.yaml @@ -0,0 +1,7 @@ +# 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: lakerses.testproject.org diff --git a/testdata/project-v4-multigroup/config/crd/patches/webhook_in__lakerses.yaml b/testdata/project-v4-multigroup/config/crd/patches/webhook_in__lakerses.yaml new file mode 100644 index 00000000000..a88734428c4 --- /dev/null +++ b/testdata/project-v4-multigroup/config/crd/patches/webhook_in__lakerses.yaml @@ -0,0 +1,16 @@ +# The following patch enables a conversion webhook for the CRD +apiVersion: apiextensions.k8s.io/v1 +kind: CustomResourceDefinition +metadata: + name: lakerses.testproject.org +spec: + conversion: + strategy: Webhook + webhook: + clientConfig: + service: + namespace: system + name: webhook-service + path: /convert + conversionReviewVersions: + - v1 diff --git a/testdata/project-v4-with-deploy-image/config/crd/patches/cainjection_in_busyboxs.yaml b/testdata/project-v4-with-deploy-image/config/crd/patches/cainjection_in_busyboxs.yaml new file mode 100644 index 00000000000..b5a66f62d1f --- /dev/null +++ b/testdata/project-v4-with-deploy-image/config/crd/patches/cainjection_in_busyboxs.yaml @@ -0,0 +1,7 @@ +# 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: busyboxs.example.com.testproject.org diff --git a/testdata/project-v4-with-deploy-image/config/crd/patches/webhook_in_busyboxs.yaml b/testdata/project-v4-with-deploy-image/config/crd/patches/webhook_in_busyboxs.yaml new file mode 100644 index 00000000000..680543e905c --- /dev/null +++ b/testdata/project-v4-with-deploy-image/config/crd/patches/webhook_in_busyboxs.yaml @@ -0,0 +1,16 @@ +# The following patch enables a conversion webhook for the CRD +apiVersion: apiextensions.k8s.io/v1 +kind: CustomResourceDefinition +metadata: + name: busyboxs.example.com.testproject.org +spec: + conversion: + strategy: Webhook + webhook: + clientConfig: + service: + namespace: system + name: webhook-service + path: /convert + conversionReviewVersions: + - v1