From 9dd54808db6e8e853ead2b33bc0129893ba107eb Mon Sep 17 00:00:00 2001 From: Camila Macedo Date: Fri, 18 Oct 2024 08:46:30 -0300 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9B=20fix=20support=20for=20external?= =?UTF-8?q?=20types=20by=20allowing=20the=20domain=20be=20empty,=20and=20p?= =?UTF-8?q?roperly=20generate=20the=20sample=20for=20cert-manager.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - Allowing the domain be empty since some scenarios this value might not be required - Use `io` as the domain to fix the scaffold sample for cert-manager and update the example in the documentation. --- .../reference/using_an_external_resource.md | 22 +++++++++---------- pkg/plugins/golang/v4/api.go | 8 ------- test/testdata/generate.sh | 8 +++---- testdata/project-v4-multigroup/PROJECT | 8 +++---- testdata/project-v4-multigroup/cmd/main.go | 4 ++-- ... cainjection_in_cert-manager_issuers.yaml} | 2 +- ...l => webhook_in_cert-manager_issuers.yaml} | 2 +- .../config/rbac/role.yaml | 6 ++--- .../config/webhook/manifests.yaml | 4 ++-- .../project-v4-multigroup/dist/install.yaml | 10 ++++----- .../certificate_controller.go | 8 +++---- .../certificate_controller_test.go | 0 .../suite_test.go | 0 .../v1/issuer_webhook.go | 2 +- .../v1/issuer_webhook_test.go | 0 .../v1/webhook_suite_test.go | 0 testdata/project-v4/PROJECT | 8 +++---- .../crd/patches/cainjection_in_issuers.yaml | 2 +- .../crd/patches/webhook_in_issuers.yaml | 2 +- testdata/project-v4/config/rbac/role.yaml | 6 ++--- .../project-v4/config/webhook/manifests.yaml | 4 ++-- testdata/project-v4/dist/install.yaml | 10 ++++----- .../controller/certificate_controller.go | 6 ++--- .../internal/webhook/v1/issuer_webhook.go | 2 +- 24 files changed, 58 insertions(+), 66 deletions(-) rename testdata/project-v4-multigroup/config/crd/patches/{cainjection_in_certmanager_issuers.yaml => cainjection_in_cert-manager_issuers.yaml} (84%) rename testdata/project-v4-multigroup/config/crd/patches/{webhook_in_certmanager_issuers.yaml => webhook_in_cert-manager_issuers.yaml} (89%) rename testdata/project-v4-multigroup/internal/controller/{certmanager => cert-manager}/certificate_controller.go (83%) rename testdata/project-v4-multigroup/internal/controller/{certmanager => cert-manager}/certificate_controller_test.go (100%) rename testdata/project-v4-multigroup/internal/controller/{certmanager => cert-manager}/suite_test.go (100%) rename testdata/project-v4-multigroup/internal/webhook/{certmanager => cert-manager}/v1/issuer_webhook.go (89%) rename testdata/project-v4-multigroup/internal/webhook/{certmanager => cert-manager}/v1/issuer_webhook_test.go (100%) rename testdata/project-v4-multigroup/internal/webhook/{certmanager => cert-manager}/v1/webhook_suite_test.go (100%) diff --git a/docs/book/src/reference/using_an_external_resource.md b/docs/book/src/reference/using_an_external_resource.md index 298255c6fb8..f032cc28c05 100644 --- a/docs/book/src/reference/using_an_external_resource.md +++ b/docs/book/src/reference/using_an_external_resource.md @@ -28,22 +28,22 @@ kubebuilder create api --group --version --kind