From b874dacfac3380d001a366d837cb140c25c19457 Mon Sep 17 00:00:00 2001 From: Camila Macedo Date: Thu, 23 May 2024 19:17:00 +0100 Subject: [PATCH] Upgrade sample testdata in the v3x branch --- .../testdata/project/config/default/kustomization.yaml | 5 ++++- .../project/config/{rbac => default}/metrics_service.yaml | 0 .../testdata/project/config/rbac/kustomization.yaml | 1 - 3 files changed, 4 insertions(+), 2 deletions(-) rename docs/book/src/component-config-tutorial/testdata/project/config/{rbac => default}/metrics_service.yaml (100%) diff --git a/docs/book/src/component-config-tutorial/testdata/project/config/default/kustomization.yaml b/docs/book/src/component-config-tutorial/testdata/project/config/default/kustomization.yaml index e788928cad4..cebb877bd84 100644 --- a/docs/book/src/component-config-tutorial/testdata/project/config/default/kustomization.yaml +++ b/docs/book/src/component-config-tutorial/testdata/project/config/default/kustomization.yaml @@ -25,8 +25,11 @@ resources: #- ../certmanager # [PROMETHEUS] To enable prometheus monitor, uncomment all sections with 'PROMETHEUS'. #- ../prometheus +# [METRICS] To enable the controller manager metrics service, uncomment the following line. +#- metrics_service.yaml -patches: +# Uncomment the patches line if you enable Metrics, and/or are using webhooks and cert-manager +#patches: # [METRICS] The following patch will enable the metrics endpoint. Ensure that you also protect this endpoint. # More info: https://book.kubebuilder.io/reference/metrics # If you want to expose the metric endpoint of your controller-manager uncomment the following line. diff --git a/docs/book/src/component-config-tutorial/testdata/project/config/rbac/metrics_service.yaml b/docs/book/src/component-config-tutorial/testdata/project/config/default/metrics_service.yaml similarity index 100% rename from docs/book/src/component-config-tutorial/testdata/project/config/rbac/metrics_service.yaml rename to docs/book/src/component-config-tutorial/testdata/project/config/default/metrics_service.yaml diff --git a/docs/book/src/component-config-tutorial/testdata/project/config/rbac/kustomization.yaml b/docs/book/src/component-config-tutorial/testdata/project/config/rbac/kustomization.yaml index 20b2e1d12aa..dbe85fff6fa 100644 --- a/docs/book/src/component-config-tutorial/testdata/project/config/rbac/kustomization.yaml +++ b/docs/book/src/component-config-tutorial/testdata/project/config/rbac/kustomization.yaml @@ -9,7 +9,6 @@ resources: - role_binding.yaml - leader_election_role.yaml - leader_election_role_binding.yaml -- metrics_service.yaml # For each CRD, "Editor" and "Viewer" roles are scaffolded by # default, aiding admins in cluster management. Those roles are # not used by the Project itself. You can comment the following lines