From 2c0d6b694a38a3216b72a5b1d84c150751553982 Mon Sep 17 00:00:00 2001 From: Camila Macedo Date: Fri, 9 Jun 2023 11:56:58 +0100 Subject: [PATCH] :warning: deprecate component config and no longer able to ensure that it is functioning as intended --- .../component-config-tutorial/api-changes.md | 12 + .../component-config-tutorial/config-type.md | 12 + .../component-config-tutorial/custom-type.md | 12 + .../define-config.md | 12 + .../define-custom-config.md | 12 + .../src/component-config-tutorial/tutorial.md | 12 + .../updating-main.md | 12 + test/e2e/v4/generate_test.go | 190 ------------ test/e2e/v4/plugin_cluster_test.go | 11 - test/testdata/generate.sh | 1 - test/testdata/test.sh | 1 - testdata/project-v4-config/.dockerignore | 3 - testdata/project-v4-config/.gitignore | 25 -- testdata/project-v4-config/Dockerfile | 33 -- testdata/project-v4-config/Makefile | 163 ---------- testdata/project-v4-config/PROJECT | 53 ---- testdata/project-v4-config/README.md | 94 ------ .../project-v4-config/api/v1/admiral_types.go | 65 ---- .../api/v1/admiral_webhook.go | 45 --- .../project-v4-config/api/v1/captain_types.go | 64 ---- .../api/v1/captain_webhook.go | 75 ----- .../api/v1/firstmate_types.go | 64 ---- .../api/v1/firstmate_webhook.go | 33 -- .../api/v1/groupversion_info.go | 36 --- .../api/v1/webhook_suite_test.go | 135 -------- .../api/v1/zz_generated.deepcopy.go | 293 ------------------ testdata/project-v4-config/cmd/main.go | 137 -------- .../config/certmanager/certificate.yaml | 39 --- .../config/certmanager/kustomization.yaml | 5 - .../config/certmanager/kustomizeconfig.yaml | 8 - .../bases/crew.testproject.org_admirals.yaml | 49 --- .../bases/crew.testproject.org_captains.yaml | 49 --- .../crew.testproject.org_firstmates.yaml | 49 --- .../config/crd/kustomization.yaml | 27 -- .../config/crd/kustomizeconfig.yaml | 19 -- .../crd/patches/cainjection_in_admirals.yaml | 7 - .../crd/patches/cainjection_in_captains.yaml | 7 - .../patches/cainjection_in_firstmates.yaml | 7 - .../crd/patches/webhook_in_admirals.yaml | 16 - .../crd/patches/webhook_in_captains.yaml | 16 - .../crd/patches/webhook_in_firstmates.yaml | 16 - .../config/default/kustomization.yaml | 147 --------- .../default/manager_auth_proxy_patch.yaml | 34 -- .../config/default/manager_config_patch.yaml | 20 -- .../config/default/manager_webhook_patch.yaml | 23 -- .../default/webhookcainjection_patch.yaml | 29 -- .../manager/controller_manager_config.yaml | 29 -- .../config/manager/kustomization.yaml | 10 - .../config/manager/manager.yaml | 100 ------ .../config/prometheus/kustomization.yaml | 2 - .../config/prometheus/monitor.yaml | 26 -- .../config/rbac/admiral_editor_role.yaml | 31 -- .../config/rbac/admiral_viewer_role.yaml | 27 -- .../rbac/auth_proxy_client_clusterrole.yaml | 16 - .../config/rbac/auth_proxy_role.yaml | 24 -- .../config/rbac/auth_proxy_role_binding.yaml | 19 -- .../config/rbac/auth_proxy_service.yaml | 21 -- .../config/rbac/captain_editor_role.yaml | 31 -- .../config/rbac/captain_viewer_role.yaml | 27 -- .../config/rbac/firstmate_editor_role.yaml | 31 -- .../config/rbac/firstmate_viewer_role.yaml | 27 -- .../config/rbac/kustomization.yaml | 18 -- .../config/rbac/leader_election_role.yaml | 44 --- .../rbac/leader_election_role_binding.yaml | 19 -- .../project-v4-config/config/rbac/role.yaml | 110 ------- .../config/rbac/role_binding.yaml | 19 -- .../config/rbac/service_account.yaml | 12 - .../config/samples/crew_v1_admiral.yaml | 12 - .../config/samples/crew_v1_captain.yaml | 12 - .../config/samples/crew_v1_firstmate.yaml | 12 - .../config/samples/kustomization.yaml | 6 - .../config/webhook/kustomization.yaml | 6 - .../config/webhook/kustomizeconfig.yaml | 22 -- .../config/webhook/manifests.yaml | 72 ----- .../config/webhook/service.yaml | 20 -- testdata/project-v4-config/go.mod | 70 ----- .../project-v4-config/hack/boilerplate.go.txt | 15 - .../internal/controller/admiral_controller.go | 62 ---- .../internal/controller/captain_controller.go | 62 ---- .../controller/firstmate_controller.go | 62 ---- .../internal/controller/laker_controller.go | 61 ---- .../internal/controller/suite_test.go | 80 ----- 82 files changed, 84 insertions(+), 3305 deletions(-) delete mode 100644 testdata/project-v4-config/.dockerignore delete mode 100644 testdata/project-v4-config/.gitignore delete mode 100644 testdata/project-v4-config/Dockerfile delete mode 100644 testdata/project-v4-config/Makefile delete mode 100644 testdata/project-v4-config/PROJECT delete mode 100644 testdata/project-v4-config/README.md delete mode 100644 testdata/project-v4-config/api/v1/admiral_types.go delete mode 100644 testdata/project-v4-config/api/v1/admiral_webhook.go delete mode 100644 testdata/project-v4-config/api/v1/captain_types.go delete mode 100644 testdata/project-v4-config/api/v1/captain_webhook.go delete mode 100644 testdata/project-v4-config/api/v1/firstmate_types.go delete mode 100644 testdata/project-v4-config/api/v1/firstmate_webhook.go delete mode 100644 testdata/project-v4-config/api/v1/groupversion_info.go delete mode 100644 testdata/project-v4-config/api/v1/webhook_suite_test.go delete mode 100644 testdata/project-v4-config/api/v1/zz_generated.deepcopy.go delete mode 100644 testdata/project-v4-config/cmd/main.go delete mode 100644 testdata/project-v4-config/config/certmanager/certificate.yaml delete mode 100644 testdata/project-v4-config/config/certmanager/kustomization.yaml delete mode 100644 testdata/project-v4-config/config/certmanager/kustomizeconfig.yaml delete mode 100644 testdata/project-v4-config/config/crd/bases/crew.testproject.org_admirals.yaml delete mode 100644 testdata/project-v4-config/config/crd/bases/crew.testproject.org_captains.yaml delete mode 100644 testdata/project-v4-config/config/crd/bases/crew.testproject.org_firstmates.yaml delete mode 100644 testdata/project-v4-config/config/crd/kustomization.yaml delete mode 100644 testdata/project-v4-config/config/crd/kustomizeconfig.yaml delete mode 100644 testdata/project-v4-config/config/crd/patches/cainjection_in_admirals.yaml delete mode 100644 testdata/project-v4-config/config/crd/patches/cainjection_in_captains.yaml delete mode 100644 testdata/project-v4-config/config/crd/patches/cainjection_in_firstmates.yaml delete mode 100644 testdata/project-v4-config/config/crd/patches/webhook_in_admirals.yaml delete mode 100644 testdata/project-v4-config/config/crd/patches/webhook_in_captains.yaml delete mode 100644 testdata/project-v4-config/config/crd/patches/webhook_in_firstmates.yaml delete mode 100644 testdata/project-v4-config/config/default/kustomization.yaml delete mode 100644 testdata/project-v4-config/config/default/manager_auth_proxy_patch.yaml delete mode 100644 testdata/project-v4-config/config/default/manager_config_patch.yaml delete mode 100644 testdata/project-v4-config/config/default/manager_webhook_patch.yaml delete mode 100644 testdata/project-v4-config/config/default/webhookcainjection_patch.yaml delete mode 100644 testdata/project-v4-config/config/manager/controller_manager_config.yaml delete mode 100644 testdata/project-v4-config/config/manager/kustomization.yaml delete mode 100644 testdata/project-v4-config/config/manager/manager.yaml delete mode 100644 testdata/project-v4-config/config/prometheus/kustomization.yaml delete mode 100644 testdata/project-v4-config/config/prometheus/monitor.yaml delete mode 100644 testdata/project-v4-config/config/rbac/admiral_editor_role.yaml delete mode 100644 testdata/project-v4-config/config/rbac/admiral_viewer_role.yaml delete mode 100644 testdata/project-v4-config/config/rbac/auth_proxy_client_clusterrole.yaml delete mode 100644 testdata/project-v4-config/config/rbac/auth_proxy_role.yaml delete mode 100644 testdata/project-v4-config/config/rbac/auth_proxy_role_binding.yaml delete mode 100644 testdata/project-v4-config/config/rbac/auth_proxy_service.yaml delete mode 100644 testdata/project-v4-config/config/rbac/captain_editor_role.yaml delete mode 100644 testdata/project-v4-config/config/rbac/captain_viewer_role.yaml delete mode 100644 testdata/project-v4-config/config/rbac/firstmate_editor_role.yaml delete mode 100644 testdata/project-v4-config/config/rbac/firstmate_viewer_role.yaml delete mode 100644 testdata/project-v4-config/config/rbac/kustomization.yaml delete mode 100644 testdata/project-v4-config/config/rbac/leader_election_role.yaml delete mode 100644 testdata/project-v4-config/config/rbac/leader_election_role_binding.yaml delete mode 100644 testdata/project-v4-config/config/rbac/role.yaml delete mode 100644 testdata/project-v4-config/config/rbac/role_binding.yaml delete mode 100644 testdata/project-v4-config/config/rbac/service_account.yaml delete mode 100644 testdata/project-v4-config/config/samples/crew_v1_admiral.yaml delete mode 100644 testdata/project-v4-config/config/samples/crew_v1_captain.yaml delete mode 100644 testdata/project-v4-config/config/samples/crew_v1_firstmate.yaml delete mode 100644 testdata/project-v4-config/config/samples/kustomization.yaml delete mode 100644 testdata/project-v4-config/config/webhook/kustomization.yaml delete mode 100644 testdata/project-v4-config/config/webhook/kustomizeconfig.yaml delete mode 100644 testdata/project-v4-config/config/webhook/manifests.yaml delete mode 100644 testdata/project-v4-config/config/webhook/service.yaml delete mode 100644 testdata/project-v4-config/go.mod delete mode 100644 testdata/project-v4-config/hack/boilerplate.go.txt delete mode 100644 testdata/project-v4-config/internal/controller/admiral_controller.go delete mode 100644 testdata/project-v4-config/internal/controller/captain_controller.go delete mode 100644 testdata/project-v4-config/internal/controller/firstmate_controller.go delete mode 100644 testdata/project-v4-config/internal/controller/laker_controller.go delete mode 100644 testdata/project-v4-config/internal/controller/suite_test.go diff --git a/docs/book/src/component-config-tutorial/api-changes.md b/docs/book/src/component-config-tutorial/api-changes.md index e65d6100b3e..5228da9204e 100644 --- a/docs/book/src/component-config-tutorial/api-changes.md +++ b/docs/book/src/component-config-tutorial/api-changes.md @@ -1,5 +1,17 @@ # Changing things up + + This tutorial will show you how to create a custom configuration file for your project by modifying a project generated with the `--component-config` flag passed to the `init` command. The full tutorial's source can be found diff --git a/docs/book/src/component-config-tutorial/config-type.md b/docs/book/src/component-config-tutorial/config-type.md index d8d42925de3..fe26a622074 100644 --- a/docs/book/src/component-config-tutorial/config-type.md +++ b/docs/book/src/component-config-tutorial/config-type.md @@ -1,5 +1,17 @@ # Adding a new Config Type + + To scaffold out a new config Kind, we can use `kubebuilder create api`. ```bash diff --git a/docs/book/src/component-config-tutorial/custom-type.md b/docs/book/src/component-config-tutorial/custom-type.md index 76dfeda43d2..853844d1a07 100644 --- a/docs/book/src/component-config-tutorial/custom-type.md +++ b/docs/book/src/component-config-tutorial/custom-type.md @@ -1,5 +1,17 @@ # Using a Custom Type + +