From bdfe5e4ea785323d84e2eb27869ef2079d814357 Mon Sep 17 00:00:00 2001 From: Camila Macedo Date: Tue, 9 Apr 2024 00:34:25 +0100 Subject: [PATCH] (kustomize/v2, go/v4): Fix labels according to conventions. Follow-up of PR 3797 --- .../project/config/manager/manager.yaml | 12 +- .../project/config/prometheus/monitor.yaml | 6 +- .../rbac/auth_proxy_client_clusterrole.yaml | 6 +- .../project/config/rbac/auth_proxy_role.yaml | 6 +- .../config/rbac/auth_proxy_role_binding.yaml | 6 +- .../config/rbac/auth_proxy_service.yaml | 6 +- .../config/rbac/leader_election_role.yaml | 6 +- .../rbac/leader_election_role_binding.yaml | 6 +- .../rbac/projectconfig_editor_role.yaml | 6 +- .../rbac/projectconfig_viewer_role.yaml | 6 +- .../testdata/project/config/rbac/role.yaml | 6 +- .../project/config/rbac/role_binding.yaml | 6 +- .../config/certmanager/certificate.yaml | 6 +- .../default/webhookcainjection_patch.yaml | 6 +- .../project/config/manager/manager.yaml | 12 +- .../project/config/prometheus/monitor.yaml | 6 +- .../rbac/auth_proxy_client_clusterrole.yaml | 6 +- .../project/config/rbac/auth_proxy_role.yaml | 6 +- .../config/rbac/auth_proxy_role_binding.yaml | 6 +- .../config/rbac/auth_proxy_service.yaml | 6 +- .../config/rbac/cronjob_editor_role.yaml | 6 +- .../config/rbac/cronjob_viewer_role.yaml | 6 +- .../config/rbac/leader_election_role.yaml | 6 +- .../rbac/leader_election_role_binding.yaml | 6 +- .../project/config/rbac/role_binding.yaml | 6 +- .../project/config/manager/manager.yaml | 12 +- .../project/config/prometheus/monitor.yaml | 6 +- .../rbac/auth_proxy_client_clusterrole.yaml | 6 +- .../project/config/rbac/auth_proxy_role.yaml | 6 +- .../config/rbac/auth_proxy_role_binding.yaml | 6 +- .../config/rbac/auth_proxy_service.yaml | 6 +- .../config/rbac/leader_election_role.yaml | 6 +- .../rbac/leader_election_role_binding.yaml | 6 +- .../config/rbac/memcached_editor_role.yaml | 6 +- .../config/rbac/memcached_viewer_role.yaml | 6 +- .../project/config/rbac/role_binding.yaml | 6 +- .../config/certmanager/certificate.go | 6 +- .../config/kdefault/enablecainection_patch.go | 6 +- .../templates/config/manager/config.go | 12 +- .../manager/controller_manager_config.go | 6 +- .../templates/config/prometheus/monitor.go | 6 +- .../config/rbac/auth_proxy_client_role.go | 6 +- .../templates/config/rbac/auth_proxy_role.go | 6 +- .../config/rbac/auth_proxy_role_binding.go | 6 +- .../config/rbac/auth_proxy_service.go | 6 +- .../templates/config/rbac/crd_editor_role.go | 6 +- .../templates/config/rbac/crd_viewer_role.go | 6 +- .../config/rbac/leader_election_role.go | 6 +- .../rbac/leader_election_role_binding.go | 6 +- .../internal/templates/config/rbac/role.go | 6 +- .../templates/config/rbac/role_binding.go | 6 +- .../config/certmanager/certificate.yaml | 6 +- .../default/webhookcainjection_patch.yaml | 6 +- .../config/manager/manager.yaml | 12 +- .../config/prometheus/monitor.yaml | 6 +- .../rbac/auth_proxy_client_clusterrole.yaml | 6 +- .../config/rbac/auth_proxy_role.yaml | 6 +- .../config/rbac/auth_proxy_role_binding.yaml | 6 +- .../config/rbac/auth_proxy_service.yaml | 6 +- .../config/rbac/crew_captain_editor_role.yaml | 6 +- .../config/rbac/crew_captain_viewer_role.yaml | 6 +- .../config/rbac/fiz_bar_editor_role.yaml | 6 +- .../config/rbac/fiz_bar_viewer_role.yaml | 6 +- ....policy_healthcheckpolicy_editor_role.yaml | 6 +- ....policy_healthcheckpolicy_viewer_role.yaml | 6 +- .../config/rbac/foo_bar_editor_role.yaml | 6 +- .../config/rbac/foo_bar_viewer_role.yaml | 6 +- .../config/rbac/lakers_editor_role.yaml | 6 +- .../config/rbac/lakers_viewer_role.yaml | 6 +- .../config/rbac/leader_election_role.yaml | 6 +- .../rbac/leader_election_role_binding.yaml | 6 +- .../config/rbac/role_binding.yaml | 6 +- .../sea-creatures_kraken_editor_role.yaml | 6 +- .../sea-creatures_kraken_viewer_role.yaml | 6 +- .../sea-creatures_leviathan_editor_role.yaml | 6 +- .../sea-creatures_leviathan_viewer_role.yaml | 6 +- .../config/rbac/ship_cruiser_editor_role.yaml | 6 +- .../config/rbac/ship_cruiser_viewer_role.yaml | 6 +- .../rbac/ship_destroyer_editor_role.yaml | 6 +- .../rbac/ship_destroyer_viewer_role.yaml | 6 +- .../config/rbac/ship_frigate_editor_role.yaml | 6 +- .../config/rbac/ship_frigate_viewer_role.yaml | 6 +- .../dist/install.yaml | 174 +++--------------- .../config/certmanager/certificate.yaml | 6 +- .../default/webhookcainjection_patch.yaml | 6 +- .../config/manager/manager.yaml | 12 +- .../config/prometheus/monitor.yaml | 6 +- .../rbac/auth_proxy_client_clusterrole.yaml | 6 +- .../config/rbac/auth_proxy_role.yaml | 6 +- .../config/rbac/auth_proxy_role_binding.yaml | 6 +- .../config/rbac/auth_proxy_service.yaml | 6 +- .../config/rbac/crew_captain_editor_role.yaml | 6 +- .../config/rbac/crew_captain_viewer_role.yaml | 6 +- .../config/rbac/fiz_bar_editor_role.yaml | 6 +- .../config/rbac/fiz_bar_viewer_role.yaml | 6 +- ....policy_healthcheckpolicy_editor_role.yaml | 6 +- ....policy_healthcheckpolicy_viewer_role.yaml | 6 +- .../config/rbac/foo_bar_editor_role.yaml | 6 +- .../config/rbac/foo_bar_viewer_role.yaml | 6 +- .../config/rbac/lakers_editor_role.yaml | 6 +- .../config/rbac/lakers_viewer_role.yaml | 6 +- .../config/rbac/leader_election_role.yaml | 6 +- .../rbac/leader_election_role_binding.yaml | 6 +- .../config/rbac/role_binding.yaml | 6 +- .../sea-creatures_kraken_editor_role.yaml | 6 +- .../sea-creatures_kraken_viewer_role.yaml | 6 +- .../sea-creatures_leviathan_editor_role.yaml | 6 +- .../sea-creatures_leviathan_viewer_role.yaml | 6 +- .../config/rbac/ship_cruiser_editor_role.yaml | 6 +- .../config/rbac/ship_cruiser_viewer_role.yaml | 6 +- .../rbac/ship_destroyer_editor_role.yaml | 6 +- .../rbac/ship_destroyer_viewer_role.yaml | 6 +- .../config/rbac/ship_frigate_editor_role.yaml | 6 +- .../config/rbac/ship_frigate_viewer_role.yaml | 6 +- .../project-v4-multigroup/dist/install.yaml | 174 +++--------------- .../config/certmanager/certificate.yaml | 6 +- .../default/webhookcainjection_patch.yaml | 6 +- .../config/manager/manager.yaml | 12 +- .../config/prometheus/monitor.yaml | 6 +- .../rbac/auth_proxy_client_clusterrole.yaml | 6 +- .../config/rbac/auth_proxy_role.yaml | 6 +- .../config/rbac/auth_proxy_role_binding.yaml | 6 +- .../config/rbac/auth_proxy_service.yaml | 6 +- .../config/rbac/busybox_editor_role.yaml | 6 +- .../config/rbac/busybox_viewer_role.yaml | 6 +- .../config/rbac/leader_election_role.yaml | 6 +- .../rbac/leader_election_role_binding.yaml | 6 +- .../config/rbac/memcached_editor_role.yaml | 6 +- .../config/rbac/memcached_viewer_role.yaml | 6 +- .../config/rbac/role_binding.yaml | 6 +- .../dist/install.yaml | 78 ++------ .../config/manager/manager.yaml | 12 +- .../config/prometheus/monitor.yaml | 6 +- .../rbac/auth_proxy_client_clusterrole.yaml | 6 +- .../config/rbac/auth_proxy_role.yaml | 6 +- .../config/rbac/auth_proxy_role_binding.yaml | 6 +- .../config/rbac/auth_proxy_service.yaml | 6 +- .../config/rbac/leader_election_role.yaml | 6 +- .../rbac/leader_election_role_binding.yaml | 6 +- .../config/rbac/role.yaml | 6 +- .../config/rbac/role_binding.yaml | 6 +- .../project-v4-with-grafana/dist/install.yaml | 60 +----- .../config/certmanager/certificate.yaml | 6 +- .../default/webhookcainjection_patch.yaml | 6 +- .../project-v4/config/manager/manager.yaml | 12 +- .../project-v4/config/prometheus/monitor.yaml | 6 +- .../config/rbac/admiral_editor_role.yaml | 6 +- .../config/rbac/admiral_viewer_role.yaml | 6 +- .../rbac/auth_proxy_client_clusterrole.yaml | 6 +- .../config/rbac/auth_proxy_role.yaml | 6 +- .../config/rbac/auth_proxy_role_binding.yaml | 6 +- .../config/rbac/auth_proxy_service.yaml | 6 +- .../config/rbac/captain_editor_role.yaml | 6 +- .../config/rbac/captain_viewer_role.yaml | 6 +- .../config/rbac/firstmate_editor_role.yaml | 6 +- .../config/rbac/firstmate_viewer_role.yaml | 6 +- .../config/rbac/leader_election_role.yaml | 6 +- .../rbac/leader_election_role_binding.yaml | 6 +- .../project-v4/config/rbac/role_binding.yaml | 6 +- testdata/project-v4/dist/install.yaml | 90 ++------- 160 files changed, 260 insertions(+), 1300 deletions(-) diff --git a/docs/book/src/component-config-tutorial/testdata/project/config/manager/manager.yaml b/docs/book/src/component-config-tutorial/testdata/project/config/manager/manager.yaml index 7d415421f9f..c2dff3c1fa1 100644 --- a/docs/book/src/component-config-tutorial/testdata/project/config/manager/manager.yaml +++ b/docs/book/src/component-config-tutorial/testdata/project/config/manager/manager.yaml @@ -3,11 +3,7 @@ kind: Namespace metadata: labels: control-plane: controller-manager - app.kubernetes.io/name: namespace - app.kubernetes.io/instance: system - app.kubernetes.io/component: manager - app.kubernetes.io/created-by: project - app.kubernetes.io/part-of: project + app.kubernetes.io/name: project app.kubernetes.io/managed-by: kustomize name: system --- @@ -18,11 +14,7 @@ metadata: namespace: system labels: control-plane: controller-manager - app.kubernetes.io/name: deployment - app.kubernetes.io/instance: controller-manager - app.kubernetes.io/component: manager - app.kubernetes.io/created-by: project - app.kubernetes.io/part-of: project + app.kubernetes.io/name: project app.kubernetes.io/managed-by: kustomize spec: selector: diff --git a/docs/book/src/component-config-tutorial/testdata/project/config/prometheus/monitor.yaml b/docs/book/src/component-config-tutorial/testdata/project/config/prometheus/monitor.yaml index d67c6106f87..893610e2014 100644 --- a/docs/book/src/component-config-tutorial/testdata/project/config/prometheus/monitor.yaml +++ b/docs/book/src/component-config-tutorial/testdata/project/config/prometheus/monitor.yaml @@ -4,11 +4,7 @@ kind: ServiceMonitor metadata: labels: control-plane: controller-manager - app.kubernetes.io/name: servicemonitor - app.kubernetes.io/instance: controller-manager-metrics-monitor - app.kubernetes.io/component: metrics - app.kubernetes.io/created-by: project - app.kubernetes.io/part-of: project + app.kubernetes.io/name: project app.kubernetes.io/managed-by: kustomize name: controller-manager-metrics-monitor namespace: system diff --git a/docs/book/src/component-config-tutorial/testdata/project/config/rbac/auth_proxy_client_clusterrole.yaml b/docs/book/src/component-config-tutorial/testdata/project/config/rbac/auth_proxy_client_clusterrole.yaml index 500386b28f0..ac8e7be7bc9 100644 --- a/docs/book/src/component-config-tutorial/testdata/project/config/rbac/auth_proxy_client_clusterrole.yaml +++ b/docs/book/src/component-config-tutorial/testdata/project/config/rbac/auth_proxy_client_clusterrole.yaml @@ -2,11 +2,7 @@ apiVersion: rbac.authorization.k8s.io/v1 kind: ClusterRole metadata: labels: - app.kubernetes.io/name: clusterrole - app.kubernetes.io/instance: metrics-reader - app.kubernetes.io/component: kube-rbac-proxy - app.kubernetes.io/created-by: project - app.kubernetes.io/part-of: project + app.kubernetes.io/name: project app.kubernetes.io/managed-by: kustomize name: metrics-reader rules: diff --git a/docs/book/src/component-config-tutorial/testdata/project/config/rbac/auth_proxy_role.yaml b/docs/book/src/component-config-tutorial/testdata/project/config/rbac/auth_proxy_role.yaml index 85e39513cc1..17e0a11d32b 100644 --- a/docs/book/src/component-config-tutorial/testdata/project/config/rbac/auth_proxy_role.yaml +++ b/docs/book/src/component-config-tutorial/testdata/project/config/rbac/auth_proxy_role.yaml @@ -2,11 +2,7 @@ apiVersion: rbac.authorization.k8s.io/v1 kind: ClusterRole metadata: labels: - app.kubernetes.io/name: clusterrole - app.kubernetes.io/instance: proxy-role - app.kubernetes.io/component: kube-rbac-proxy - app.kubernetes.io/created-by: project - app.kubernetes.io/part-of: project + app.kubernetes.io/name: project app.kubernetes.io/managed-by: kustomize name: proxy-role rules: diff --git a/docs/book/src/component-config-tutorial/testdata/project/config/rbac/auth_proxy_role_binding.yaml b/docs/book/src/component-config-tutorial/testdata/project/config/rbac/auth_proxy_role_binding.yaml index 8b5ff114fa1..e1f50c3178a 100644 --- a/docs/book/src/component-config-tutorial/testdata/project/config/rbac/auth_proxy_role_binding.yaml +++ b/docs/book/src/component-config-tutorial/testdata/project/config/rbac/auth_proxy_role_binding.yaml @@ -2,11 +2,7 @@ apiVersion: rbac.authorization.k8s.io/v1 kind: ClusterRoleBinding metadata: labels: - app.kubernetes.io/name: clusterrolebinding - app.kubernetes.io/instance: proxy-rolebinding - app.kubernetes.io/component: kube-rbac-proxy - app.kubernetes.io/created-by: project - app.kubernetes.io/part-of: project + app.kubernetes.io/name: project app.kubernetes.io/managed-by: kustomize name: proxy-rolebinding roleRef: diff --git a/docs/book/src/component-config-tutorial/testdata/project/config/rbac/auth_proxy_service.yaml b/docs/book/src/component-config-tutorial/testdata/project/config/rbac/auth_proxy_service.yaml index f40b3d2c0bd..aff147e644a 100644 --- a/docs/book/src/component-config-tutorial/testdata/project/config/rbac/auth_proxy_service.yaml +++ b/docs/book/src/component-config-tutorial/testdata/project/config/rbac/auth_proxy_service.yaml @@ -3,11 +3,7 @@ kind: Service metadata: labels: control-plane: controller-manager - app.kubernetes.io/name: service - app.kubernetes.io/instance: controller-manager-metrics-service - app.kubernetes.io/component: kube-rbac-proxy - app.kubernetes.io/created-by: project - app.kubernetes.io/part-of: project + app.kubernetes.io/name: project app.kubernetes.io/managed-by: kustomize name: controller-manager-metrics-service namespace: system diff --git a/docs/book/src/component-config-tutorial/testdata/project/config/rbac/leader_election_role.yaml b/docs/book/src/component-config-tutorial/testdata/project/config/rbac/leader_election_role.yaml index 1488e1ce2fc..e3fc403c0d9 100644 --- a/docs/book/src/component-config-tutorial/testdata/project/config/rbac/leader_election_role.yaml +++ b/docs/book/src/component-config-tutorial/testdata/project/config/rbac/leader_election_role.yaml @@ -3,11 +3,7 @@ apiVersion: rbac.authorization.k8s.io/v1 kind: Role metadata: labels: - app.kubernetes.io/name: role - app.kubernetes.io/instance: leader-election-role - app.kubernetes.io/component: rbac - app.kubernetes.io/created-by: project - app.kubernetes.io/part-of: project + app.kubernetes.io/name: project app.kubernetes.io/managed-by: kustomize name: leader-election-role rules: diff --git a/docs/book/src/component-config-tutorial/testdata/project/config/rbac/leader_election_role_binding.yaml b/docs/book/src/component-config-tutorial/testdata/project/config/rbac/leader_election_role_binding.yaml index e54e64cda0b..133026ff212 100644 --- a/docs/book/src/component-config-tutorial/testdata/project/config/rbac/leader_election_role_binding.yaml +++ b/docs/book/src/component-config-tutorial/testdata/project/config/rbac/leader_election_role_binding.yaml @@ -2,11 +2,7 @@ apiVersion: rbac.authorization.k8s.io/v1 kind: RoleBinding metadata: labels: - app.kubernetes.io/name: rolebinding - app.kubernetes.io/instance: leader-election-rolebinding - app.kubernetes.io/component: rbac - app.kubernetes.io/created-by: project - app.kubernetes.io/part-of: project + app.kubernetes.io/name: project app.kubernetes.io/managed-by: kustomize name: leader-election-rolebinding roleRef: diff --git a/docs/book/src/component-config-tutorial/testdata/project/config/rbac/projectconfig_editor_role.yaml b/docs/book/src/component-config-tutorial/testdata/project/config/rbac/projectconfig_editor_role.yaml index 55f1a364ea8..5acc12fe9a7 100644 --- a/docs/book/src/component-config-tutorial/testdata/project/config/rbac/projectconfig_editor_role.yaml +++ b/docs/book/src/component-config-tutorial/testdata/project/config/rbac/projectconfig_editor_role.yaml @@ -3,11 +3,7 @@ apiVersion: rbac.authorization.k8s.io/v1 kind: ClusterRole metadata: labels: - app.kubernetes.io/name: clusterrole - app.kubernetes.io/instance: projectconfig-editor-role - app.kubernetes.io/component: rbac - app.kubernetes.io/created-by: project - app.kubernetes.io/part-of: project + app.kubernetes.io/name: project app.kubernetes.io/managed-by: kustomize name: projectconfig-editor-role rules: diff --git a/docs/book/src/component-config-tutorial/testdata/project/config/rbac/projectconfig_viewer_role.yaml b/docs/book/src/component-config-tutorial/testdata/project/config/rbac/projectconfig_viewer_role.yaml index 2c010b4fb24..d88d7672d92 100644 --- a/docs/book/src/component-config-tutorial/testdata/project/config/rbac/projectconfig_viewer_role.yaml +++ b/docs/book/src/component-config-tutorial/testdata/project/config/rbac/projectconfig_viewer_role.yaml @@ -3,11 +3,7 @@ apiVersion: rbac.authorization.k8s.io/v1 kind: ClusterRole metadata: labels: - app.kubernetes.io/name: clusterrole - app.kubernetes.io/instance: projectconfig-viewer-role - app.kubernetes.io/component: rbac - app.kubernetes.io/created-by: project - app.kubernetes.io/part-of: project + app.kubernetes.io/name: project app.kubernetes.io/managed-by: kustomize name: projectconfig-viewer-role rules: diff --git a/docs/book/src/component-config-tutorial/testdata/project/config/rbac/role.yaml b/docs/book/src/component-config-tutorial/testdata/project/config/rbac/role.yaml index 9f0ce00dd55..a511fe2d60b 100644 --- a/docs/book/src/component-config-tutorial/testdata/project/config/rbac/role.yaml +++ b/docs/book/src/component-config-tutorial/testdata/project/config/rbac/role.yaml @@ -2,11 +2,7 @@ apiVersion: rbac.authorization.k8s.io/v1 kind: ClusterRole metadata: labels: - app.kubernetes.io/name: clusterrole - app.kubernetes.io/instance: manager-role - app.kubernetes.io/component: rbac - app.kubernetes.io/created-by: project - app.kubernetes.io/part-of: project + app.kubernetes.io/name: project app.kubernetes.io/managed-by: kustomize name: manager-role rules: diff --git a/docs/book/src/component-config-tutorial/testdata/project/config/rbac/role_binding.yaml b/docs/book/src/component-config-tutorial/testdata/project/config/rbac/role_binding.yaml index b8189618ab9..1e81c2443c8 100644 --- a/docs/book/src/component-config-tutorial/testdata/project/config/rbac/role_binding.yaml +++ b/docs/book/src/component-config-tutorial/testdata/project/config/rbac/role_binding.yaml @@ -2,11 +2,7 @@ apiVersion: rbac.authorization.k8s.io/v1 kind: ClusterRoleBinding metadata: labels: - app.kubernetes.io/name: clusterrolebinding - app.kubernetes.io/instance: manager-rolebinding - app.kubernetes.io/component: rbac - app.kubernetes.io/created-by: project - app.kubernetes.io/part-of: project + app.kubernetes.io/name: project app.kubernetes.io/managed-by: kustomize name: manager-rolebinding roleRef: diff --git a/docs/book/src/cronjob-tutorial/testdata/project/config/certmanager/certificate.yaml b/docs/book/src/cronjob-tutorial/testdata/project/config/certmanager/certificate.yaml index 36b9d42e69d..b51082a01e6 100644 --- a/docs/book/src/cronjob-tutorial/testdata/project/config/certmanager/certificate.yaml +++ b/docs/book/src/cronjob-tutorial/testdata/project/config/certmanager/certificate.yaml @@ -5,11 +5,7 @@ apiVersion: cert-manager.io/v1 kind: Issuer metadata: labels: - app.kubernetes.io/name: certificate - app.kubernetes.io/instance: serving-cert - app.kubernetes.io/component: certificate - app.kubernetes.io/created-by: project - app.kubernetes.io/part-of: project + app.kubernetes.io/name: project app.kubernetes.io/managed-by: kustomize name: selfsigned-issuer namespace: system diff --git a/docs/book/src/cronjob-tutorial/testdata/project/config/default/webhookcainjection_patch.yaml b/docs/book/src/cronjob-tutorial/testdata/project/config/default/webhookcainjection_patch.yaml index 202f1d83d52..fd03b33e746 100644 --- a/docs/book/src/cronjob-tutorial/testdata/project/config/default/webhookcainjection_patch.yaml +++ b/docs/book/src/cronjob-tutorial/testdata/project/config/default/webhookcainjection_patch.yaml @@ -4,11 +4,7 @@ apiVersion: admissionregistration.k8s.io/v1 kind: MutatingWebhookConfiguration metadata: labels: - app.kubernetes.io/name: mutatingwebhookconfiguration - app.kubernetes.io/instance: mutating-webhook-configuration - app.kubernetes.io/component: webhook - app.kubernetes.io/created-by: project - app.kubernetes.io/part-of: project + app.kubernetes.io/name: project app.kubernetes.io/managed-by: kustomize name: mutating-webhook-configuration annotations: diff --git a/docs/book/src/cronjob-tutorial/testdata/project/config/manager/manager.yaml b/docs/book/src/cronjob-tutorial/testdata/project/config/manager/manager.yaml index 30ecf899e68..839f4b67565 100644 --- a/docs/book/src/cronjob-tutorial/testdata/project/config/manager/manager.yaml +++ b/docs/book/src/cronjob-tutorial/testdata/project/config/manager/manager.yaml @@ -3,11 +3,7 @@ kind: Namespace metadata: labels: control-plane: controller-manager - app.kubernetes.io/name: namespace - app.kubernetes.io/instance: system - app.kubernetes.io/component: manager - app.kubernetes.io/created-by: project - app.kubernetes.io/part-of: project + app.kubernetes.io/name: project app.kubernetes.io/managed-by: kustomize name: system --- @@ -18,11 +14,7 @@ metadata: namespace: system labels: control-plane: controller-manager - app.kubernetes.io/name: deployment - app.kubernetes.io/instance: controller-manager - app.kubernetes.io/component: manager - app.kubernetes.io/created-by: project - app.kubernetes.io/part-of: project + app.kubernetes.io/name: project app.kubernetes.io/managed-by: kustomize spec: selector: diff --git a/docs/book/src/cronjob-tutorial/testdata/project/config/prometheus/monitor.yaml b/docs/book/src/cronjob-tutorial/testdata/project/config/prometheus/monitor.yaml index d67c6106f87..893610e2014 100644 --- a/docs/book/src/cronjob-tutorial/testdata/project/config/prometheus/monitor.yaml +++ b/docs/book/src/cronjob-tutorial/testdata/project/config/prometheus/monitor.yaml @@ -4,11 +4,7 @@ kind: ServiceMonitor metadata: labels: control-plane: controller-manager - app.kubernetes.io/name: servicemonitor - app.kubernetes.io/instance: controller-manager-metrics-monitor - app.kubernetes.io/component: metrics - app.kubernetes.io/created-by: project - app.kubernetes.io/part-of: project + app.kubernetes.io/name: project app.kubernetes.io/managed-by: kustomize name: controller-manager-metrics-monitor namespace: system diff --git a/docs/book/src/cronjob-tutorial/testdata/project/config/rbac/auth_proxy_client_clusterrole.yaml b/docs/book/src/cronjob-tutorial/testdata/project/config/rbac/auth_proxy_client_clusterrole.yaml index 500386b28f0..ac8e7be7bc9 100644 --- a/docs/book/src/cronjob-tutorial/testdata/project/config/rbac/auth_proxy_client_clusterrole.yaml +++ b/docs/book/src/cronjob-tutorial/testdata/project/config/rbac/auth_proxy_client_clusterrole.yaml @@ -2,11 +2,7 @@ apiVersion: rbac.authorization.k8s.io/v1 kind: ClusterRole metadata: labels: - app.kubernetes.io/name: clusterrole - app.kubernetes.io/instance: metrics-reader - app.kubernetes.io/component: kube-rbac-proxy - app.kubernetes.io/created-by: project - app.kubernetes.io/part-of: project + app.kubernetes.io/name: project app.kubernetes.io/managed-by: kustomize name: metrics-reader rules: diff --git a/docs/book/src/cronjob-tutorial/testdata/project/config/rbac/auth_proxy_role.yaml b/docs/book/src/cronjob-tutorial/testdata/project/config/rbac/auth_proxy_role.yaml index 85e39513cc1..17e0a11d32b 100644 --- a/docs/book/src/cronjob-tutorial/testdata/project/config/rbac/auth_proxy_role.yaml +++ b/docs/book/src/cronjob-tutorial/testdata/project/config/rbac/auth_proxy_role.yaml @@ -2,11 +2,7 @@ apiVersion: rbac.authorization.k8s.io/v1 kind: ClusterRole metadata: labels: - app.kubernetes.io/name: clusterrole - app.kubernetes.io/instance: proxy-role - app.kubernetes.io/component: kube-rbac-proxy - app.kubernetes.io/created-by: project - app.kubernetes.io/part-of: project + app.kubernetes.io/name: project app.kubernetes.io/managed-by: kustomize name: proxy-role rules: diff --git a/docs/book/src/cronjob-tutorial/testdata/project/config/rbac/auth_proxy_role_binding.yaml b/docs/book/src/cronjob-tutorial/testdata/project/config/rbac/auth_proxy_role_binding.yaml index 8b5ff114fa1..e1f50c3178a 100644 --- a/docs/book/src/cronjob-tutorial/testdata/project/config/rbac/auth_proxy_role_binding.yaml +++ b/docs/book/src/cronjob-tutorial/testdata/project/config/rbac/auth_proxy_role_binding.yaml @@ -2,11 +2,7 @@ apiVersion: rbac.authorization.k8s.io/v1 kind: ClusterRoleBinding metadata: labels: - app.kubernetes.io/name: clusterrolebinding - app.kubernetes.io/instance: proxy-rolebinding - app.kubernetes.io/component: kube-rbac-proxy - app.kubernetes.io/created-by: project - app.kubernetes.io/part-of: project + app.kubernetes.io/name: project app.kubernetes.io/managed-by: kustomize name: proxy-rolebinding roleRef: diff --git a/docs/book/src/cronjob-tutorial/testdata/project/config/rbac/auth_proxy_service.yaml b/docs/book/src/cronjob-tutorial/testdata/project/config/rbac/auth_proxy_service.yaml index f40b3d2c0bd..aff147e644a 100644 --- a/docs/book/src/cronjob-tutorial/testdata/project/config/rbac/auth_proxy_service.yaml +++ b/docs/book/src/cronjob-tutorial/testdata/project/config/rbac/auth_proxy_service.yaml @@ -3,11 +3,7 @@ kind: Service metadata: labels: control-plane: controller-manager - app.kubernetes.io/name: service - app.kubernetes.io/instance: controller-manager-metrics-service - app.kubernetes.io/component: kube-rbac-proxy - app.kubernetes.io/created-by: project - app.kubernetes.io/part-of: project + app.kubernetes.io/name: project app.kubernetes.io/managed-by: kustomize name: controller-manager-metrics-service namespace: system diff --git a/docs/book/src/cronjob-tutorial/testdata/project/config/rbac/cronjob_editor_role.yaml b/docs/book/src/cronjob-tutorial/testdata/project/config/rbac/cronjob_editor_role.yaml index f9bea3908e2..c36d86e55d6 100644 --- a/docs/book/src/cronjob-tutorial/testdata/project/config/rbac/cronjob_editor_role.yaml +++ b/docs/book/src/cronjob-tutorial/testdata/project/config/rbac/cronjob_editor_role.yaml @@ -3,11 +3,7 @@ apiVersion: rbac.authorization.k8s.io/v1 kind: ClusterRole metadata: labels: - app.kubernetes.io/name: clusterrole - app.kubernetes.io/instance: cronjob-editor-role - app.kubernetes.io/component: rbac - app.kubernetes.io/created-by: project - app.kubernetes.io/part-of: project + app.kubernetes.io/name: project app.kubernetes.io/managed-by: kustomize name: cronjob-editor-role rules: diff --git a/docs/book/src/cronjob-tutorial/testdata/project/config/rbac/cronjob_viewer_role.yaml b/docs/book/src/cronjob-tutorial/testdata/project/config/rbac/cronjob_viewer_role.yaml index d43e666ff5b..0bfb9809718 100644 --- a/docs/book/src/cronjob-tutorial/testdata/project/config/rbac/cronjob_viewer_role.yaml +++ b/docs/book/src/cronjob-tutorial/testdata/project/config/rbac/cronjob_viewer_role.yaml @@ -3,11 +3,7 @@ apiVersion: rbac.authorization.k8s.io/v1 kind: ClusterRole metadata: labels: - app.kubernetes.io/name: clusterrole - app.kubernetes.io/instance: cronjob-viewer-role - app.kubernetes.io/component: rbac - app.kubernetes.io/created-by: project - app.kubernetes.io/part-of: project + app.kubernetes.io/name: project app.kubernetes.io/managed-by: kustomize name: cronjob-viewer-role rules: diff --git a/docs/book/src/cronjob-tutorial/testdata/project/config/rbac/leader_election_role.yaml b/docs/book/src/cronjob-tutorial/testdata/project/config/rbac/leader_election_role.yaml index 1488e1ce2fc..e3fc403c0d9 100644 --- a/docs/book/src/cronjob-tutorial/testdata/project/config/rbac/leader_election_role.yaml +++ b/docs/book/src/cronjob-tutorial/testdata/project/config/rbac/leader_election_role.yaml @@ -3,11 +3,7 @@ apiVersion: rbac.authorization.k8s.io/v1 kind: Role metadata: labels: - app.kubernetes.io/name: role - app.kubernetes.io/instance: leader-election-role - app.kubernetes.io/component: rbac - app.kubernetes.io/created-by: project - app.kubernetes.io/part-of: project + app.kubernetes.io/name: project app.kubernetes.io/managed-by: kustomize name: leader-election-role rules: diff --git a/docs/book/src/cronjob-tutorial/testdata/project/config/rbac/leader_election_role_binding.yaml b/docs/book/src/cronjob-tutorial/testdata/project/config/rbac/leader_election_role_binding.yaml index e54e64cda0b..133026ff212 100644 --- a/docs/book/src/cronjob-tutorial/testdata/project/config/rbac/leader_election_role_binding.yaml +++ b/docs/book/src/cronjob-tutorial/testdata/project/config/rbac/leader_election_role_binding.yaml @@ -2,11 +2,7 @@ apiVersion: rbac.authorization.k8s.io/v1 kind: RoleBinding metadata: labels: - app.kubernetes.io/name: rolebinding - app.kubernetes.io/instance: leader-election-rolebinding - app.kubernetes.io/component: rbac - app.kubernetes.io/created-by: project - app.kubernetes.io/part-of: project + app.kubernetes.io/name: project app.kubernetes.io/managed-by: kustomize name: leader-election-rolebinding roleRef: diff --git a/docs/book/src/cronjob-tutorial/testdata/project/config/rbac/role_binding.yaml b/docs/book/src/cronjob-tutorial/testdata/project/config/rbac/role_binding.yaml index b8189618ab9..1e81c2443c8 100644 --- a/docs/book/src/cronjob-tutorial/testdata/project/config/rbac/role_binding.yaml +++ b/docs/book/src/cronjob-tutorial/testdata/project/config/rbac/role_binding.yaml @@ -2,11 +2,7 @@ apiVersion: rbac.authorization.k8s.io/v1 kind: ClusterRoleBinding metadata: labels: - app.kubernetes.io/name: clusterrolebinding - app.kubernetes.io/instance: manager-rolebinding - app.kubernetes.io/component: rbac - app.kubernetes.io/created-by: project - app.kubernetes.io/part-of: project + app.kubernetes.io/name: project app.kubernetes.io/managed-by: kustomize name: manager-rolebinding roleRef: diff --git a/docs/book/src/getting-started/testdata/project/config/manager/manager.yaml b/docs/book/src/getting-started/testdata/project/config/manager/manager.yaml index b4ba9334e80..60fe260a2d6 100644 --- a/docs/book/src/getting-started/testdata/project/config/manager/manager.yaml +++ b/docs/book/src/getting-started/testdata/project/config/manager/manager.yaml @@ -3,11 +3,7 @@ kind: Namespace metadata: labels: control-plane: controller-manager - app.kubernetes.io/name: namespace - app.kubernetes.io/instance: system - app.kubernetes.io/component: manager - app.kubernetes.io/created-by: project - app.kubernetes.io/part-of: project + app.kubernetes.io/name: project app.kubernetes.io/managed-by: kustomize name: system --- @@ -18,11 +14,7 @@ metadata: namespace: system labels: control-plane: controller-manager - app.kubernetes.io/name: deployment - app.kubernetes.io/instance: controller-manager - app.kubernetes.io/component: manager - app.kubernetes.io/created-by: project - app.kubernetes.io/part-of: project + app.kubernetes.io/name: project app.kubernetes.io/managed-by: kustomize spec: selector: diff --git a/docs/book/src/getting-started/testdata/project/config/prometheus/monitor.yaml b/docs/book/src/getting-started/testdata/project/config/prometheus/monitor.yaml index d67c6106f87..893610e2014 100644 --- a/docs/book/src/getting-started/testdata/project/config/prometheus/monitor.yaml +++ b/docs/book/src/getting-started/testdata/project/config/prometheus/monitor.yaml @@ -4,11 +4,7 @@ kind: ServiceMonitor metadata: labels: control-plane: controller-manager - app.kubernetes.io/name: servicemonitor - app.kubernetes.io/instance: controller-manager-metrics-monitor - app.kubernetes.io/component: metrics - app.kubernetes.io/created-by: project - app.kubernetes.io/part-of: project + app.kubernetes.io/name: project app.kubernetes.io/managed-by: kustomize name: controller-manager-metrics-monitor namespace: system diff --git a/docs/book/src/getting-started/testdata/project/config/rbac/auth_proxy_client_clusterrole.yaml b/docs/book/src/getting-started/testdata/project/config/rbac/auth_proxy_client_clusterrole.yaml index 500386b28f0..ac8e7be7bc9 100644 --- a/docs/book/src/getting-started/testdata/project/config/rbac/auth_proxy_client_clusterrole.yaml +++ b/docs/book/src/getting-started/testdata/project/config/rbac/auth_proxy_client_clusterrole.yaml @@ -2,11 +2,7 @@ apiVersion: rbac.authorization.k8s.io/v1 kind: ClusterRole metadata: labels: - app.kubernetes.io/name: clusterrole - app.kubernetes.io/instance: metrics-reader - app.kubernetes.io/component: kube-rbac-proxy - app.kubernetes.io/created-by: project - app.kubernetes.io/part-of: project + app.kubernetes.io/name: project app.kubernetes.io/managed-by: kustomize name: metrics-reader rules: diff --git a/docs/book/src/getting-started/testdata/project/config/rbac/auth_proxy_role.yaml b/docs/book/src/getting-started/testdata/project/config/rbac/auth_proxy_role.yaml index 85e39513cc1..17e0a11d32b 100644 --- a/docs/book/src/getting-started/testdata/project/config/rbac/auth_proxy_role.yaml +++ b/docs/book/src/getting-started/testdata/project/config/rbac/auth_proxy_role.yaml @@ -2,11 +2,7 @@ apiVersion: rbac.authorization.k8s.io/v1 kind: ClusterRole metadata: labels: - app.kubernetes.io/name: clusterrole - app.kubernetes.io/instance: proxy-role - app.kubernetes.io/component: kube-rbac-proxy - app.kubernetes.io/created-by: project - app.kubernetes.io/part-of: project + app.kubernetes.io/name: project app.kubernetes.io/managed-by: kustomize name: proxy-role rules: diff --git a/docs/book/src/getting-started/testdata/project/config/rbac/auth_proxy_role_binding.yaml b/docs/book/src/getting-started/testdata/project/config/rbac/auth_proxy_role_binding.yaml index 8b5ff114fa1..e1f50c3178a 100644 --- a/docs/book/src/getting-started/testdata/project/config/rbac/auth_proxy_role_binding.yaml +++ b/docs/book/src/getting-started/testdata/project/config/rbac/auth_proxy_role_binding.yaml @@ -2,11 +2,7 @@ apiVersion: rbac.authorization.k8s.io/v1 kind: ClusterRoleBinding metadata: labels: - app.kubernetes.io/name: clusterrolebinding - app.kubernetes.io/instance: proxy-rolebinding - app.kubernetes.io/component: kube-rbac-proxy - app.kubernetes.io/created-by: project - app.kubernetes.io/part-of: project + app.kubernetes.io/name: project app.kubernetes.io/managed-by: kustomize name: proxy-rolebinding roleRef: diff --git a/docs/book/src/getting-started/testdata/project/config/rbac/auth_proxy_service.yaml b/docs/book/src/getting-started/testdata/project/config/rbac/auth_proxy_service.yaml index f40b3d2c0bd..aff147e644a 100644 --- a/docs/book/src/getting-started/testdata/project/config/rbac/auth_proxy_service.yaml +++ b/docs/book/src/getting-started/testdata/project/config/rbac/auth_proxy_service.yaml @@ -3,11 +3,7 @@ kind: Service metadata: labels: control-plane: controller-manager - app.kubernetes.io/name: service - app.kubernetes.io/instance: controller-manager-metrics-service - app.kubernetes.io/component: kube-rbac-proxy - app.kubernetes.io/created-by: project - app.kubernetes.io/part-of: project + app.kubernetes.io/name: project app.kubernetes.io/managed-by: kustomize name: controller-manager-metrics-service namespace: system diff --git a/docs/book/src/getting-started/testdata/project/config/rbac/leader_election_role.yaml b/docs/book/src/getting-started/testdata/project/config/rbac/leader_election_role.yaml index 1488e1ce2fc..e3fc403c0d9 100644 --- a/docs/book/src/getting-started/testdata/project/config/rbac/leader_election_role.yaml +++ b/docs/book/src/getting-started/testdata/project/config/rbac/leader_election_role.yaml @@ -3,11 +3,7 @@ apiVersion: rbac.authorization.k8s.io/v1 kind: Role metadata: labels: - app.kubernetes.io/name: role - app.kubernetes.io/instance: leader-election-role - app.kubernetes.io/component: rbac - app.kubernetes.io/created-by: project - app.kubernetes.io/part-of: project + app.kubernetes.io/name: project app.kubernetes.io/managed-by: kustomize name: leader-election-role rules: diff --git a/docs/book/src/getting-started/testdata/project/config/rbac/leader_election_role_binding.yaml b/docs/book/src/getting-started/testdata/project/config/rbac/leader_election_role_binding.yaml index e54e64cda0b..133026ff212 100644 --- a/docs/book/src/getting-started/testdata/project/config/rbac/leader_election_role_binding.yaml +++ b/docs/book/src/getting-started/testdata/project/config/rbac/leader_election_role_binding.yaml @@ -2,11 +2,7 @@ apiVersion: rbac.authorization.k8s.io/v1 kind: RoleBinding metadata: labels: - app.kubernetes.io/name: rolebinding - app.kubernetes.io/instance: leader-election-rolebinding - app.kubernetes.io/component: rbac - app.kubernetes.io/created-by: project - app.kubernetes.io/part-of: project + app.kubernetes.io/name: project app.kubernetes.io/managed-by: kustomize name: leader-election-rolebinding roleRef: diff --git a/docs/book/src/getting-started/testdata/project/config/rbac/memcached_editor_role.yaml b/docs/book/src/getting-started/testdata/project/config/rbac/memcached_editor_role.yaml index 10f2d2c0b57..03058d077d2 100644 --- a/docs/book/src/getting-started/testdata/project/config/rbac/memcached_editor_role.yaml +++ b/docs/book/src/getting-started/testdata/project/config/rbac/memcached_editor_role.yaml @@ -3,11 +3,7 @@ apiVersion: rbac.authorization.k8s.io/v1 kind: ClusterRole metadata: labels: - app.kubernetes.io/name: clusterrole - app.kubernetes.io/instance: memcached-editor-role - app.kubernetes.io/component: rbac - app.kubernetes.io/created-by: project - app.kubernetes.io/part-of: project + app.kubernetes.io/name: project app.kubernetes.io/managed-by: kustomize name: memcached-editor-role rules: diff --git a/docs/book/src/getting-started/testdata/project/config/rbac/memcached_viewer_role.yaml b/docs/book/src/getting-started/testdata/project/config/rbac/memcached_viewer_role.yaml index b9f2efa5f8e..8ec26d3ffd5 100644 --- a/docs/book/src/getting-started/testdata/project/config/rbac/memcached_viewer_role.yaml +++ b/docs/book/src/getting-started/testdata/project/config/rbac/memcached_viewer_role.yaml @@ -3,11 +3,7 @@ apiVersion: rbac.authorization.k8s.io/v1 kind: ClusterRole metadata: labels: - app.kubernetes.io/name: clusterrole - app.kubernetes.io/instance: memcached-viewer-role - app.kubernetes.io/component: rbac - app.kubernetes.io/created-by: project - app.kubernetes.io/part-of: project + app.kubernetes.io/name: project app.kubernetes.io/managed-by: kustomize name: memcached-viewer-role rules: diff --git a/docs/book/src/getting-started/testdata/project/config/rbac/role_binding.yaml b/docs/book/src/getting-started/testdata/project/config/rbac/role_binding.yaml index b8189618ab9..1e81c2443c8 100644 --- a/docs/book/src/getting-started/testdata/project/config/rbac/role_binding.yaml +++ b/docs/book/src/getting-started/testdata/project/config/rbac/role_binding.yaml @@ -2,11 +2,7 @@ apiVersion: rbac.authorization.k8s.io/v1 kind: ClusterRoleBinding metadata: labels: - app.kubernetes.io/name: clusterrolebinding - app.kubernetes.io/instance: manager-rolebinding - app.kubernetes.io/component: rbac - app.kubernetes.io/created-by: project - app.kubernetes.io/part-of: project + app.kubernetes.io/name: project app.kubernetes.io/managed-by: kustomize name: manager-rolebinding roleRef: diff --git a/pkg/plugins/common/kustomize/v2/scaffolds/internal/templates/config/certmanager/certificate.go b/pkg/plugins/common/kustomize/v2/scaffolds/internal/templates/config/certmanager/certificate.go index ff1947d0b43..6a537631332 100644 --- a/pkg/plugins/common/kustomize/v2/scaffolds/internal/templates/config/certmanager/certificate.go +++ b/pkg/plugins/common/kustomize/v2/scaffolds/internal/templates/config/certmanager/certificate.go @@ -51,11 +51,7 @@ apiVersion: cert-manager.io/v1 kind: Issuer metadata: labels: - app.kubernetes.io/name: certificate - app.kubernetes.io/instance: serving-cert - app.kubernetes.io/component: certificate - app.kubernetes.io/created-by: {{ .ProjectName }} - app.kubernetes.io/part-of: {{ .ProjectName }} + app.kubernetes.io/name: {{ .ProjectName }} app.kubernetes.io/managed-by: kustomize name: selfsigned-issuer namespace: system diff --git a/pkg/plugins/common/kustomize/v2/scaffolds/internal/templates/config/kdefault/enablecainection_patch.go b/pkg/plugins/common/kustomize/v2/scaffolds/internal/templates/config/kdefault/enablecainection_patch.go index 9cd76aaf676..8420149f340 100644 --- a/pkg/plugins/common/kustomize/v2/scaffolds/internal/templates/config/kdefault/enablecainection_patch.go +++ b/pkg/plugins/common/kustomize/v2/scaffolds/internal/templates/config/kdefault/enablecainection_patch.go @@ -51,11 +51,7 @@ apiVersion: admissionregistration.k8s.io/{{ .Resource.Webhooks.WebhookVersion }} kind: MutatingWebhookConfiguration metadata: labels: - app.kubernetes.io/name: mutatingwebhookconfiguration - app.kubernetes.io/instance: mutating-webhook-configuration - app.kubernetes.io/component: webhook - app.kubernetes.io/created-by: {{ .ProjectName }} - app.kubernetes.io/part-of: {{ .ProjectName }} + app.kubernetes.io/name: {{ .ProjectName }} app.kubernetes.io/managed-by: kustomize name: mutating-webhook-configuration annotations: diff --git a/pkg/plugins/common/kustomize/v2/scaffolds/internal/templates/config/manager/config.go b/pkg/plugins/common/kustomize/v2/scaffolds/internal/templates/config/manager/config.go index 07a7e723cf9..271ccd633f2 100644 --- a/pkg/plugins/common/kustomize/v2/scaffolds/internal/templates/config/manager/config.go +++ b/pkg/plugins/common/kustomize/v2/scaffolds/internal/templates/config/manager/config.go @@ -50,11 +50,7 @@ kind: Namespace metadata: labels: control-plane: controller-manager - app.kubernetes.io/name: namespace - app.kubernetes.io/instance: system - app.kubernetes.io/component: manager - app.kubernetes.io/created-by: {{ .ProjectName }} - app.kubernetes.io/part-of: {{ .ProjectName }} + app.kubernetes.io/name: {{ .ProjectName }} app.kubernetes.io/managed-by: kustomize name: system --- @@ -65,11 +61,7 @@ metadata: namespace: system labels: control-plane: controller-manager - app.kubernetes.io/name: deployment - app.kubernetes.io/instance: controller-manager - app.kubernetes.io/component: manager - app.kubernetes.io/created-by: {{ .ProjectName }} - app.kubernetes.io/part-of: {{ .ProjectName }} + app.kubernetes.io/name: {{ .ProjectName }} app.kubernetes.io/managed-by: kustomize spec: selector: diff --git a/pkg/plugins/common/kustomize/v2/scaffolds/internal/templates/config/manager/controller_manager_config.go b/pkg/plugins/common/kustomize/v2/scaffolds/internal/templates/config/manager/controller_manager_config.go index 31735256005..90178e367db 100644 --- a/pkg/plugins/common/kustomize/v2/scaffolds/internal/templates/config/manager/controller_manager_config.go +++ b/pkg/plugins/common/kustomize/v2/scaffolds/internal/templates/config/manager/controller_manager_config.go @@ -49,11 +49,7 @@ const controllerManagerConfigTemplate = `apiVersion: controller-runtime.sigs.k8s kind: ControllerManagerConfig metadata: labels: - app.kubernetes.io/name: controllermanagerconfig - app.kubernetes.io/instance: controller-manager-configuration - app.kubernetes.io/component: manager - app.kubernetes.io/created-by: {{ .ProjectName }} - app.kubernetes.io/part-of: {{ .ProjectName }} + app.kubernetes.io/name: {{ .ProjectName }} app.kubernetes.io/managed-by: kustomize health: healthProbeBindAddress: :8081 diff --git a/pkg/plugins/common/kustomize/v2/scaffolds/internal/templates/config/prometheus/monitor.go b/pkg/plugins/common/kustomize/v2/scaffolds/internal/templates/config/prometheus/monitor.go index 5408fff0f59..339ca03f072 100644 --- a/pkg/plugins/common/kustomize/v2/scaffolds/internal/templates/config/prometheus/monitor.go +++ b/pkg/plugins/common/kustomize/v2/scaffolds/internal/templates/config/prometheus/monitor.go @@ -47,11 +47,7 @@ kind: ServiceMonitor metadata: labels: control-plane: controller-manager - app.kubernetes.io/name: servicemonitor - app.kubernetes.io/instance: controller-manager-metrics-monitor - app.kubernetes.io/component: metrics - app.kubernetes.io/created-by: {{ .ProjectName }} - app.kubernetes.io/part-of: {{ .ProjectName }} + app.kubernetes.io/name: {{ .ProjectName }} app.kubernetes.io/managed-by: kustomize name: controller-manager-metrics-monitor namespace: system diff --git a/pkg/plugins/common/kustomize/v2/scaffolds/internal/templates/config/rbac/auth_proxy_client_role.go b/pkg/plugins/common/kustomize/v2/scaffolds/internal/templates/config/rbac/auth_proxy_client_role.go index 680eae6375b..a348524ab4a 100644 --- a/pkg/plugins/common/kustomize/v2/scaffolds/internal/templates/config/rbac/auth_proxy_client_role.go +++ b/pkg/plugins/common/kustomize/v2/scaffolds/internal/templates/config/rbac/auth_proxy_client_role.go @@ -45,11 +45,7 @@ const clientClusterRoleTemplate = `apiVersion: rbac.authorization.k8s.io/v1 kind: ClusterRole metadata: labels: - app.kubernetes.io/name: clusterrole - app.kubernetes.io/instance: metrics-reader - app.kubernetes.io/component: kube-rbac-proxy - app.kubernetes.io/created-by: {{ .ProjectName }} - app.kubernetes.io/part-of: {{ .ProjectName }} + app.kubernetes.io/name: {{ .ProjectName }} app.kubernetes.io/managed-by: kustomize name: metrics-reader rules: diff --git a/pkg/plugins/common/kustomize/v2/scaffolds/internal/templates/config/rbac/auth_proxy_role.go b/pkg/plugins/common/kustomize/v2/scaffolds/internal/templates/config/rbac/auth_proxy_role.go index c08756c3295..d1b639c0ee3 100644 --- a/pkg/plugins/common/kustomize/v2/scaffolds/internal/templates/config/rbac/auth_proxy_role.go +++ b/pkg/plugins/common/kustomize/v2/scaffolds/internal/templates/config/rbac/auth_proxy_role.go @@ -45,11 +45,7 @@ const proxyRoleTemplate = `apiVersion: rbac.authorization.k8s.io/v1 kind: ClusterRole metadata: labels: - app.kubernetes.io/name: clusterrole - app.kubernetes.io/instance: proxy-role - app.kubernetes.io/component: kube-rbac-proxy - app.kubernetes.io/created-by: {{ .ProjectName }} - app.kubernetes.io/part-of: {{ .ProjectName }} + app.kubernetes.io/name: {{ .ProjectName }} app.kubernetes.io/managed-by: kustomize name: proxy-role rules: diff --git a/pkg/plugins/common/kustomize/v2/scaffolds/internal/templates/config/rbac/auth_proxy_role_binding.go b/pkg/plugins/common/kustomize/v2/scaffolds/internal/templates/config/rbac/auth_proxy_role_binding.go index c0df0d2d8c6..4ee86ed5c0f 100644 --- a/pkg/plugins/common/kustomize/v2/scaffolds/internal/templates/config/rbac/auth_proxy_role_binding.go +++ b/pkg/plugins/common/kustomize/v2/scaffolds/internal/templates/config/rbac/auth_proxy_role_binding.go @@ -45,11 +45,7 @@ const proxyRoleBindinggTemplate = `apiVersion: rbac.authorization.k8s.io/v1 kind: ClusterRoleBinding metadata: labels: - app.kubernetes.io/name: clusterrolebinding - app.kubernetes.io/instance: proxy-rolebinding - app.kubernetes.io/component: kube-rbac-proxy - app.kubernetes.io/created-by: {{ .ProjectName }} - app.kubernetes.io/part-of: {{ .ProjectName }} + app.kubernetes.io/name: {{ .ProjectName }} app.kubernetes.io/managed-by: kustomize name: proxy-rolebinding roleRef: diff --git a/pkg/plugins/common/kustomize/v2/scaffolds/internal/templates/config/rbac/auth_proxy_service.go b/pkg/plugins/common/kustomize/v2/scaffolds/internal/templates/config/rbac/auth_proxy_service.go index beda972e91e..219efc86ed7 100644 --- a/pkg/plugins/common/kustomize/v2/scaffolds/internal/templates/config/rbac/auth_proxy_service.go +++ b/pkg/plugins/common/kustomize/v2/scaffolds/internal/templates/config/rbac/auth_proxy_service.go @@ -46,11 +46,7 @@ kind: Service metadata: labels: control-plane: controller-manager - app.kubernetes.io/name: service - app.kubernetes.io/instance: controller-manager-metrics-service - app.kubernetes.io/component: kube-rbac-proxy - app.kubernetes.io/created-by: {{ .ProjectName }} - app.kubernetes.io/part-of: {{ .ProjectName }} + app.kubernetes.io/name: {{ .ProjectName }} app.kubernetes.io/managed-by: kustomize name: controller-manager-metrics-service namespace: system diff --git a/pkg/plugins/common/kustomize/v2/scaffolds/internal/templates/config/rbac/crd_editor_role.go b/pkg/plugins/common/kustomize/v2/scaffolds/internal/templates/config/rbac/crd_editor_role.go index 4335a3ca5a5..e1fc2b9ed47 100644 --- a/pkg/plugins/common/kustomize/v2/scaffolds/internal/templates/config/rbac/crd_editor_role.go +++ b/pkg/plugins/common/kustomize/v2/scaffolds/internal/templates/config/rbac/crd_editor_role.go @@ -70,11 +70,7 @@ apiVersion: rbac.authorization.k8s.io/v1 kind: ClusterRole metadata: labels: - app.kubernetes.io/name: clusterrole - app.kubernetes.io/instance: {{ lower .Resource.Kind }}-editor-role - app.kubernetes.io/component: rbac - app.kubernetes.io/created-by: {{ .ProjectName }} - app.kubernetes.io/part-of: {{ .ProjectName }} + app.kubernetes.io/name: {{ .ProjectName }} app.kubernetes.io/managed-by: kustomize name: {{ .RoleName }} rules: diff --git a/pkg/plugins/common/kustomize/v2/scaffolds/internal/templates/config/rbac/crd_viewer_role.go b/pkg/plugins/common/kustomize/v2/scaffolds/internal/templates/config/rbac/crd_viewer_role.go index 8e4db87902f..505e5ea4b92 100644 --- a/pkg/plugins/common/kustomize/v2/scaffolds/internal/templates/config/rbac/crd_viewer_role.go +++ b/pkg/plugins/common/kustomize/v2/scaffolds/internal/templates/config/rbac/crd_viewer_role.go @@ -70,11 +70,7 @@ apiVersion: rbac.authorization.k8s.io/v1 kind: ClusterRole metadata: labels: - app.kubernetes.io/name: clusterrole - app.kubernetes.io/instance: {{ lower .Resource.Kind }}-viewer-role - app.kubernetes.io/component: rbac - app.kubernetes.io/created-by: {{ .ProjectName }} - app.kubernetes.io/part-of: {{ .ProjectName }} + app.kubernetes.io/name: {{ .ProjectName }} app.kubernetes.io/managed-by: kustomize name: {{ .RoleName }} rules: diff --git a/pkg/plugins/common/kustomize/v2/scaffolds/internal/templates/config/rbac/leader_election_role.go b/pkg/plugins/common/kustomize/v2/scaffolds/internal/templates/config/rbac/leader_election_role.go index 79143b86cda..059c900c4cd 100644 --- a/pkg/plugins/common/kustomize/v2/scaffolds/internal/templates/config/rbac/leader_election_role.go +++ b/pkg/plugins/common/kustomize/v2/scaffolds/internal/templates/config/rbac/leader_election_role.go @@ -46,11 +46,7 @@ apiVersion: rbac.authorization.k8s.io/v1 kind: Role metadata: labels: - app.kubernetes.io/name: role - app.kubernetes.io/instance: leader-election-role - app.kubernetes.io/component: rbac - app.kubernetes.io/created-by: {{ .ProjectName }} - app.kubernetes.io/part-of: {{ .ProjectName }} + app.kubernetes.io/name: {{ .ProjectName }} app.kubernetes.io/managed-by: kustomize name: leader-election-role rules: diff --git a/pkg/plugins/common/kustomize/v2/scaffolds/internal/templates/config/rbac/leader_election_role_binding.go b/pkg/plugins/common/kustomize/v2/scaffolds/internal/templates/config/rbac/leader_election_role_binding.go index b40b4a5fa96..8a080f95a4f 100644 --- a/pkg/plugins/common/kustomize/v2/scaffolds/internal/templates/config/rbac/leader_election_role_binding.go +++ b/pkg/plugins/common/kustomize/v2/scaffolds/internal/templates/config/rbac/leader_election_role_binding.go @@ -45,11 +45,7 @@ const leaderElectionRoleBindingTemplate = `apiVersion: rbac.authorization.k8s.io kind: RoleBinding metadata: labels: - app.kubernetes.io/name: rolebinding - app.kubernetes.io/instance: leader-election-rolebinding - app.kubernetes.io/component: rbac - app.kubernetes.io/created-by: {{ .ProjectName }} - app.kubernetes.io/part-of: {{ .ProjectName }} + app.kubernetes.io/name: {{ .ProjectName }} app.kubernetes.io/managed-by: kustomize name: leader-election-rolebinding roleRef: diff --git a/pkg/plugins/common/kustomize/v2/scaffolds/internal/templates/config/rbac/role.go b/pkg/plugins/common/kustomize/v2/scaffolds/internal/templates/config/rbac/role.go index 4b3dd815deb..1a80d1db5a6 100644 --- a/pkg/plugins/common/kustomize/v2/scaffolds/internal/templates/config/rbac/role.go +++ b/pkg/plugins/common/kustomize/v2/scaffolds/internal/templates/config/rbac/role.go @@ -47,11 +47,7 @@ const managerRoleTemplate = `apiVersion: rbac.authorization.k8s.io/v1 kind: ClusterRole metadata: labels: - app.kubernetes.io/name: clusterrole - app.kubernetes.io/instance: manager-role - app.kubernetes.io/component: rbac - app.kubernetes.io/created-by: {{ .ProjectName }} - app.kubernetes.io/part-of: {{ .ProjectName }} + app.kubernetes.io/name: {{ .ProjectName }} app.kubernetes.io/managed-by: kustomize name: manager-role rules: diff --git a/pkg/plugins/common/kustomize/v2/scaffolds/internal/templates/config/rbac/role_binding.go b/pkg/plugins/common/kustomize/v2/scaffolds/internal/templates/config/rbac/role_binding.go index f975ee97ace..5dd937b7ebf 100644 --- a/pkg/plugins/common/kustomize/v2/scaffolds/internal/templates/config/rbac/role_binding.go +++ b/pkg/plugins/common/kustomize/v2/scaffolds/internal/templates/config/rbac/role_binding.go @@ -45,11 +45,7 @@ const managerBindingTemplate = `apiVersion: rbac.authorization.k8s.io/v1 kind: ClusterRoleBinding metadata: labels: - app.kubernetes.io/name: clusterrolebinding - app.kubernetes.io/instance: manager-rolebinding - app.kubernetes.io/component: rbac - app.kubernetes.io/created-by: {{ .ProjectName }} - app.kubernetes.io/part-of: {{ .ProjectName }} + app.kubernetes.io/name: {{ .ProjectName }} app.kubernetes.io/managed-by: kustomize name: manager-rolebinding roleRef: diff --git a/testdata/project-v4-multigroup-with-deploy-image/config/certmanager/certificate.yaml b/testdata/project-v4-multigroup-with-deploy-image/config/certmanager/certificate.yaml index 67a1128b1cd..baf7c627d73 100644 --- a/testdata/project-v4-multigroup-with-deploy-image/config/certmanager/certificate.yaml +++ b/testdata/project-v4-multigroup-with-deploy-image/config/certmanager/certificate.yaml @@ -5,11 +5,7 @@ apiVersion: cert-manager.io/v1 kind: Issuer metadata: labels: - app.kubernetes.io/name: certificate - app.kubernetes.io/instance: serving-cert - app.kubernetes.io/component: certificate - app.kubernetes.io/created-by: project-v4-multigroup-with-deploy-image - app.kubernetes.io/part-of: project-v4-multigroup-with-deploy-image + app.kubernetes.io/name: project-v4-multigroup-with-deploy-image app.kubernetes.io/managed-by: kustomize name: selfsigned-issuer namespace: system diff --git a/testdata/project-v4-multigroup-with-deploy-image/config/default/webhookcainjection_patch.yaml b/testdata/project-v4-multigroup-with-deploy-image/config/default/webhookcainjection_patch.yaml index f5129665598..78417368c6f 100644 --- a/testdata/project-v4-multigroup-with-deploy-image/config/default/webhookcainjection_patch.yaml +++ b/testdata/project-v4-multigroup-with-deploy-image/config/default/webhookcainjection_patch.yaml @@ -4,11 +4,7 @@ apiVersion: admissionregistration.k8s.io/v1 kind: MutatingWebhookConfiguration metadata: labels: - app.kubernetes.io/name: mutatingwebhookconfiguration - app.kubernetes.io/instance: mutating-webhook-configuration - app.kubernetes.io/component: webhook - app.kubernetes.io/created-by: project-v4-multigroup-with-deploy-image - app.kubernetes.io/part-of: project-v4-multigroup-with-deploy-image + app.kubernetes.io/name: project-v4-multigroup-with-deploy-image app.kubernetes.io/managed-by: kustomize name: mutating-webhook-configuration annotations: diff --git a/testdata/project-v4-multigroup-with-deploy-image/config/manager/manager.yaml b/testdata/project-v4-multigroup-with-deploy-image/config/manager/manager.yaml index 6d105508039..22430e2a678 100644 --- a/testdata/project-v4-multigroup-with-deploy-image/config/manager/manager.yaml +++ b/testdata/project-v4-multigroup-with-deploy-image/config/manager/manager.yaml @@ -3,11 +3,7 @@ kind: Namespace metadata: labels: control-plane: controller-manager - app.kubernetes.io/name: namespace - app.kubernetes.io/instance: system - app.kubernetes.io/component: manager - app.kubernetes.io/created-by: project-v4-multigroup-with-deploy-image - app.kubernetes.io/part-of: project-v4-multigroup-with-deploy-image + app.kubernetes.io/name: project-v4-multigroup-with-deploy-image app.kubernetes.io/managed-by: kustomize name: system --- @@ -18,11 +14,7 @@ metadata: namespace: system labels: control-plane: controller-manager - app.kubernetes.io/name: deployment - app.kubernetes.io/instance: controller-manager - app.kubernetes.io/component: manager - app.kubernetes.io/created-by: project-v4-multigroup-with-deploy-image - app.kubernetes.io/part-of: project-v4-multigroup-with-deploy-image + app.kubernetes.io/name: project-v4-multigroup-with-deploy-image app.kubernetes.io/managed-by: kustomize spec: selector: diff --git a/testdata/project-v4-multigroup-with-deploy-image/config/prometheus/monitor.yaml b/testdata/project-v4-multigroup-with-deploy-image/config/prometheus/monitor.yaml index bf55d64ae3a..c7e880652bc 100644 --- a/testdata/project-v4-multigroup-with-deploy-image/config/prometheus/monitor.yaml +++ b/testdata/project-v4-multigroup-with-deploy-image/config/prometheus/monitor.yaml @@ -4,11 +4,7 @@ kind: ServiceMonitor metadata: labels: control-plane: controller-manager - app.kubernetes.io/name: servicemonitor - app.kubernetes.io/instance: controller-manager-metrics-monitor - app.kubernetes.io/component: metrics - app.kubernetes.io/created-by: project-v4-multigroup-with-deploy-image - app.kubernetes.io/part-of: project-v4-multigroup-with-deploy-image + app.kubernetes.io/name: project-v4-multigroup-with-deploy-image app.kubernetes.io/managed-by: kustomize name: controller-manager-metrics-monitor namespace: system diff --git a/testdata/project-v4-multigroup-with-deploy-image/config/rbac/auth_proxy_client_clusterrole.yaml b/testdata/project-v4-multigroup-with-deploy-image/config/rbac/auth_proxy_client_clusterrole.yaml index 3c9ad11fc52..8f3b7014f0b 100644 --- a/testdata/project-v4-multigroup-with-deploy-image/config/rbac/auth_proxy_client_clusterrole.yaml +++ b/testdata/project-v4-multigroup-with-deploy-image/config/rbac/auth_proxy_client_clusterrole.yaml @@ -2,11 +2,7 @@ apiVersion: rbac.authorization.k8s.io/v1 kind: ClusterRole metadata: labels: - app.kubernetes.io/name: clusterrole - app.kubernetes.io/instance: metrics-reader - app.kubernetes.io/component: kube-rbac-proxy - app.kubernetes.io/created-by: project-v4-multigroup-with-deploy-image - app.kubernetes.io/part-of: project-v4-multigroup-with-deploy-image + app.kubernetes.io/name: project-v4-multigroup-with-deploy-image app.kubernetes.io/managed-by: kustomize name: metrics-reader rules: diff --git a/testdata/project-v4-multigroup-with-deploy-image/config/rbac/auth_proxy_role.yaml b/testdata/project-v4-multigroup-with-deploy-image/config/rbac/auth_proxy_role.yaml index 0050db22e36..13038ff7689 100644 --- a/testdata/project-v4-multigroup-with-deploy-image/config/rbac/auth_proxy_role.yaml +++ b/testdata/project-v4-multigroup-with-deploy-image/config/rbac/auth_proxy_role.yaml @@ -2,11 +2,7 @@ apiVersion: rbac.authorization.k8s.io/v1 kind: ClusterRole metadata: labels: - app.kubernetes.io/name: clusterrole - app.kubernetes.io/instance: proxy-role - app.kubernetes.io/component: kube-rbac-proxy - app.kubernetes.io/created-by: project-v4-multigroup-with-deploy-image - app.kubernetes.io/part-of: project-v4-multigroup-with-deploy-image + app.kubernetes.io/name: project-v4-multigroup-with-deploy-image app.kubernetes.io/managed-by: kustomize name: proxy-role rules: diff --git a/testdata/project-v4-multigroup-with-deploy-image/config/rbac/auth_proxy_role_binding.yaml b/testdata/project-v4-multigroup-with-deploy-image/config/rbac/auth_proxy_role_binding.yaml index 2865bf6007b..aae73208a49 100644 --- a/testdata/project-v4-multigroup-with-deploy-image/config/rbac/auth_proxy_role_binding.yaml +++ b/testdata/project-v4-multigroup-with-deploy-image/config/rbac/auth_proxy_role_binding.yaml @@ -2,11 +2,7 @@ apiVersion: rbac.authorization.k8s.io/v1 kind: ClusterRoleBinding metadata: labels: - app.kubernetes.io/name: clusterrolebinding - app.kubernetes.io/instance: proxy-rolebinding - app.kubernetes.io/component: kube-rbac-proxy - app.kubernetes.io/created-by: project-v4-multigroup-with-deploy-image - app.kubernetes.io/part-of: project-v4-multigroup-with-deploy-image + app.kubernetes.io/name: project-v4-multigroup-with-deploy-image app.kubernetes.io/managed-by: kustomize name: proxy-rolebinding roleRef: diff --git a/testdata/project-v4-multigroup-with-deploy-image/config/rbac/auth_proxy_service.yaml b/testdata/project-v4-multigroup-with-deploy-image/config/rbac/auth_proxy_service.yaml index eaa3581887a..32b2aac0952 100644 --- a/testdata/project-v4-multigroup-with-deploy-image/config/rbac/auth_proxy_service.yaml +++ b/testdata/project-v4-multigroup-with-deploy-image/config/rbac/auth_proxy_service.yaml @@ -3,11 +3,7 @@ kind: Service metadata: labels: control-plane: controller-manager - app.kubernetes.io/name: service - app.kubernetes.io/instance: controller-manager-metrics-service - app.kubernetes.io/component: kube-rbac-proxy - app.kubernetes.io/created-by: project-v4-multigroup-with-deploy-image - app.kubernetes.io/part-of: project-v4-multigroup-with-deploy-image + app.kubernetes.io/name: project-v4-multigroup-with-deploy-image app.kubernetes.io/managed-by: kustomize name: controller-manager-metrics-service namespace: system diff --git a/testdata/project-v4-multigroup-with-deploy-image/config/rbac/crew_captain_editor_role.yaml b/testdata/project-v4-multigroup-with-deploy-image/config/rbac/crew_captain_editor_role.yaml index 1f0ac5ea74b..68ef9aa89e4 100644 --- a/testdata/project-v4-multigroup-with-deploy-image/config/rbac/crew_captain_editor_role.yaml +++ b/testdata/project-v4-multigroup-with-deploy-image/config/rbac/crew_captain_editor_role.yaml @@ -3,11 +3,7 @@ apiVersion: rbac.authorization.k8s.io/v1 kind: ClusterRole metadata: labels: - app.kubernetes.io/name: clusterrole - app.kubernetes.io/instance: captain-editor-role - app.kubernetes.io/component: rbac - app.kubernetes.io/created-by: project-v4-multigroup-with-deploy-image - app.kubernetes.io/part-of: project-v4-multigroup-with-deploy-image + app.kubernetes.io/name: project-v4-multigroup-with-deploy-image app.kubernetes.io/managed-by: kustomize name: crew-captain-editor-role rules: diff --git a/testdata/project-v4-multigroup-with-deploy-image/config/rbac/crew_captain_viewer_role.yaml b/testdata/project-v4-multigroup-with-deploy-image/config/rbac/crew_captain_viewer_role.yaml index df850790ebd..3f638c7766e 100644 --- a/testdata/project-v4-multigroup-with-deploy-image/config/rbac/crew_captain_viewer_role.yaml +++ b/testdata/project-v4-multigroup-with-deploy-image/config/rbac/crew_captain_viewer_role.yaml @@ -3,11 +3,7 @@ apiVersion: rbac.authorization.k8s.io/v1 kind: ClusterRole metadata: labels: - app.kubernetes.io/name: clusterrole - app.kubernetes.io/instance: captain-viewer-role - app.kubernetes.io/component: rbac - app.kubernetes.io/created-by: project-v4-multigroup-with-deploy-image - app.kubernetes.io/part-of: project-v4-multigroup-with-deploy-image + app.kubernetes.io/name: project-v4-multigroup-with-deploy-image app.kubernetes.io/managed-by: kustomize name: crew-captain-viewer-role rules: diff --git a/testdata/project-v4-multigroup-with-deploy-image/config/rbac/fiz_bar_editor_role.yaml b/testdata/project-v4-multigroup-with-deploy-image/config/rbac/fiz_bar_editor_role.yaml index 20b491b02a2..336f67a59bf 100644 --- a/testdata/project-v4-multigroup-with-deploy-image/config/rbac/fiz_bar_editor_role.yaml +++ b/testdata/project-v4-multigroup-with-deploy-image/config/rbac/fiz_bar_editor_role.yaml @@ -3,11 +3,7 @@ apiVersion: rbac.authorization.k8s.io/v1 kind: ClusterRole metadata: labels: - app.kubernetes.io/name: clusterrole - app.kubernetes.io/instance: bar-editor-role - app.kubernetes.io/component: rbac - app.kubernetes.io/created-by: project-v4-multigroup-with-deploy-image - app.kubernetes.io/part-of: project-v4-multigroup-with-deploy-image + app.kubernetes.io/name: project-v4-multigroup-with-deploy-image app.kubernetes.io/managed-by: kustomize name: fiz-bar-editor-role rules: diff --git a/testdata/project-v4-multigroup-with-deploy-image/config/rbac/fiz_bar_viewer_role.yaml b/testdata/project-v4-multigroup-with-deploy-image/config/rbac/fiz_bar_viewer_role.yaml index 1f42ef04e5f..66ab8490b61 100644 --- a/testdata/project-v4-multigroup-with-deploy-image/config/rbac/fiz_bar_viewer_role.yaml +++ b/testdata/project-v4-multigroup-with-deploy-image/config/rbac/fiz_bar_viewer_role.yaml @@ -3,11 +3,7 @@ apiVersion: rbac.authorization.k8s.io/v1 kind: ClusterRole metadata: labels: - app.kubernetes.io/name: clusterrole - app.kubernetes.io/instance: bar-viewer-role - app.kubernetes.io/component: rbac - app.kubernetes.io/created-by: project-v4-multigroup-with-deploy-image - app.kubernetes.io/part-of: project-v4-multigroup-with-deploy-image + app.kubernetes.io/name: project-v4-multigroup-with-deploy-image app.kubernetes.io/managed-by: kustomize name: fiz-bar-viewer-role rules: diff --git a/testdata/project-v4-multigroup-with-deploy-image/config/rbac/foo.policy_healthcheckpolicy_editor_role.yaml b/testdata/project-v4-multigroup-with-deploy-image/config/rbac/foo.policy_healthcheckpolicy_editor_role.yaml index bfa3256a50b..1c7824d9942 100644 --- a/testdata/project-v4-multigroup-with-deploy-image/config/rbac/foo.policy_healthcheckpolicy_editor_role.yaml +++ b/testdata/project-v4-multigroup-with-deploy-image/config/rbac/foo.policy_healthcheckpolicy_editor_role.yaml @@ -3,11 +3,7 @@ apiVersion: rbac.authorization.k8s.io/v1 kind: ClusterRole metadata: labels: - app.kubernetes.io/name: clusterrole - app.kubernetes.io/instance: healthcheckpolicy-editor-role - app.kubernetes.io/component: rbac - app.kubernetes.io/created-by: project-v4-multigroup-with-deploy-image - app.kubernetes.io/part-of: project-v4-multigroup-with-deploy-image + app.kubernetes.io/name: project-v4-multigroup-with-deploy-image app.kubernetes.io/managed-by: kustomize name: foo.policy-healthcheckpolicy-editor-role rules: diff --git a/testdata/project-v4-multigroup-with-deploy-image/config/rbac/foo.policy_healthcheckpolicy_viewer_role.yaml b/testdata/project-v4-multigroup-with-deploy-image/config/rbac/foo.policy_healthcheckpolicy_viewer_role.yaml index 3f2ce7b5a7b..b4ad7c339a3 100644 --- a/testdata/project-v4-multigroup-with-deploy-image/config/rbac/foo.policy_healthcheckpolicy_viewer_role.yaml +++ b/testdata/project-v4-multigroup-with-deploy-image/config/rbac/foo.policy_healthcheckpolicy_viewer_role.yaml @@ -3,11 +3,7 @@ apiVersion: rbac.authorization.k8s.io/v1 kind: ClusterRole metadata: labels: - app.kubernetes.io/name: clusterrole - app.kubernetes.io/instance: healthcheckpolicy-viewer-role - app.kubernetes.io/component: rbac - app.kubernetes.io/created-by: project-v4-multigroup-with-deploy-image - app.kubernetes.io/part-of: project-v4-multigroup-with-deploy-image + app.kubernetes.io/name: project-v4-multigroup-with-deploy-image app.kubernetes.io/managed-by: kustomize name: foo.policy-healthcheckpolicy-viewer-role rules: diff --git a/testdata/project-v4-multigroup-with-deploy-image/config/rbac/foo_bar_editor_role.yaml b/testdata/project-v4-multigroup-with-deploy-image/config/rbac/foo_bar_editor_role.yaml index 986f998c639..b20dabf9bad 100644 --- a/testdata/project-v4-multigroup-with-deploy-image/config/rbac/foo_bar_editor_role.yaml +++ b/testdata/project-v4-multigroup-with-deploy-image/config/rbac/foo_bar_editor_role.yaml @@ -3,11 +3,7 @@ apiVersion: rbac.authorization.k8s.io/v1 kind: ClusterRole metadata: labels: - app.kubernetes.io/name: clusterrole - app.kubernetes.io/instance: bar-editor-role - app.kubernetes.io/component: rbac - app.kubernetes.io/created-by: project-v4-multigroup-with-deploy-image - app.kubernetes.io/part-of: project-v4-multigroup-with-deploy-image + app.kubernetes.io/name: project-v4-multigroup-with-deploy-image app.kubernetes.io/managed-by: kustomize name: foo-bar-editor-role rules: diff --git a/testdata/project-v4-multigroup-with-deploy-image/config/rbac/foo_bar_viewer_role.yaml b/testdata/project-v4-multigroup-with-deploy-image/config/rbac/foo_bar_viewer_role.yaml index 6133770379e..0994bd6706a 100644 --- a/testdata/project-v4-multigroup-with-deploy-image/config/rbac/foo_bar_viewer_role.yaml +++ b/testdata/project-v4-multigroup-with-deploy-image/config/rbac/foo_bar_viewer_role.yaml @@ -3,11 +3,7 @@ apiVersion: rbac.authorization.k8s.io/v1 kind: ClusterRole metadata: labels: - app.kubernetes.io/name: clusterrole - app.kubernetes.io/instance: bar-viewer-role - app.kubernetes.io/component: rbac - app.kubernetes.io/created-by: project-v4-multigroup-with-deploy-image - app.kubernetes.io/part-of: project-v4-multigroup-with-deploy-image + app.kubernetes.io/name: project-v4-multigroup-with-deploy-image app.kubernetes.io/managed-by: kustomize name: foo-bar-viewer-role rules: diff --git a/testdata/project-v4-multigroup-with-deploy-image/config/rbac/lakers_editor_role.yaml b/testdata/project-v4-multigroup-with-deploy-image/config/rbac/lakers_editor_role.yaml index a714b834cec..d77c7e58169 100644 --- a/testdata/project-v4-multigroup-with-deploy-image/config/rbac/lakers_editor_role.yaml +++ b/testdata/project-v4-multigroup-with-deploy-image/config/rbac/lakers_editor_role.yaml @@ -3,11 +3,7 @@ apiVersion: rbac.authorization.k8s.io/v1 kind: ClusterRole metadata: labels: - app.kubernetes.io/name: clusterrole - app.kubernetes.io/instance: lakers-editor-role - app.kubernetes.io/component: rbac - app.kubernetes.io/created-by: project-v4-multigroup-with-deploy-image - app.kubernetes.io/part-of: project-v4-multigroup-with-deploy-image + app.kubernetes.io/name: project-v4-multigroup-with-deploy-image app.kubernetes.io/managed-by: kustomize name: lakers-editor-role rules: diff --git a/testdata/project-v4-multigroup-with-deploy-image/config/rbac/lakers_viewer_role.yaml b/testdata/project-v4-multigroup-with-deploy-image/config/rbac/lakers_viewer_role.yaml index 5aa120091d9..e0863e68a65 100644 --- a/testdata/project-v4-multigroup-with-deploy-image/config/rbac/lakers_viewer_role.yaml +++ b/testdata/project-v4-multigroup-with-deploy-image/config/rbac/lakers_viewer_role.yaml @@ -3,11 +3,7 @@ apiVersion: rbac.authorization.k8s.io/v1 kind: ClusterRole metadata: labels: - app.kubernetes.io/name: clusterrole - app.kubernetes.io/instance: lakers-viewer-role - app.kubernetes.io/component: rbac - app.kubernetes.io/created-by: project-v4-multigroup-with-deploy-image - app.kubernetes.io/part-of: project-v4-multigroup-with-deploy-image + app.kubernetes.io/name: project-v4-multigroup-with-deploy-image app.kubernetes.io/managed-by: kustomize name: lakers-viewer-role rules: diff --git a/testdata/project-v4-multigroup-with-deploy-image/config/rbac/leader_election_role.yaml b/testdata/project-v4-multigroup-with-deploy-image/config/rbac/leader_election_role.yaml index 71eb53be354..f844786953c 100644 --- a/testdata/project-v4-multigroup-with-deploy-image/config/rbac/leader_election_role.yaml +++ b/testdata/project-v4-multigroup-with-deploy-image/config/rbac/leader_election_role.yaml @@ -3,11 +3,7 @@ apiVersion: rbac.authorization.k8s.io/v1 kind: Role metadata: labels: - app.kubernetes.io/name: role - app.kubernetes.io/instance: leader-election-role - app.kubernetes.io/component: rbac - app.kubernetes.io/created-by: project-v4-multigroup-with-deploy-image - app.kubernetes.io/part-of: project-v4-multigroup-with-deploy-image + app.kubernetes.io/name: project-v4-multigroup-with-deploy-image app.kubernetes.io/managed-by: kustomize name: leader-election-role rules: diff --git a/testdata/project-v4-multigroup-with-deploy-image/config/rbac/leader_election_role_binding.yaml b/testdata/project-v4-multigroup-with-deploy-image/config/rbac/leader_election_role_binding.yaml index 46b200947c6..7612b3e3f66 100644 --- a/testdata/project-v4-multigroup-with-deploy-image/config/rbac/leader_election_role_binding.yaml +++ b/testdata/project-v4-multigroup-with-deploy-image/config/rbac/leader_election_role_binding.yaml @@ -2,11 +2,7 @@ apiVersion: rbac.authorization.k8s.io/v1 kind: RoleBinding metadata: labels: - app.kubernetes.io/name: rolebinding - app.kubernetes.io/instance: leader-election-rolebinding - app.kubernetes.io/component: rbac - app.kubernetes.io/created-by: project-v4-multigroup-with-deploy-image - app.kubernetes.io/part-of: project-v4-multigroup-with-deploy-image + app.kubernetes.io/name: project-v4-multigroup-with-deploy-image app.kubernetes.io/managed-by: kustomize name: leader-election-rolebinding roleRef: diff --git a/testdata/project-v4-multigroup-with-deploy-image/config/rbac/role_binding.yaml b/testdata/project-v4-multigroup-with-deploy-image/config/rbac/role_binding.yaml index a21e269bbeb..599a71b991f 100644 --- a/testdata/project-v4-multigroup-with-deploy-image/config/rbac/role_binding.yaml +++ b/testdata/project-v4-multigroup-with-deploy-image/config/rbac/role_binding.yaml @@ -2,11 +2,7 @@ apiVersion: rbac.authorization.k8s.io/v1 kind: ClusterRoleBinding metadata: labels: - app.kubernetes.io/name: clusterrolebinding - app.kubernetes.io/instance: manager-rolebinding - app.kubernetes.io/component: rbac - app.kubernetes.io/created-by: project-v4-multigroup-with-deploy-image - app.kubernetes.io/part-of: project-v4-multigroup-with-deploy-image + app.kubernetes.io/name: project-v4-multigroup-with-deploy-image app.kubernetes.io/managed-by: kustomize name: manager-rolebinding roleRef: diff --git a/testdata/project-v4-multigroup-with-deploy-image/config/rbac/sea-creatures_kraken_editor_role.yaml b/testdata/project-v4-multigroup-with-deploy-image/config/rbac/sea-creatures_kraken_editor_role.yaml index 725d7fd6f59..4424f108e5b 100644 --- a/testdata/project-v4-multigroup-with-deploy-image/config/rbac/sea-creatures_kraken_editor_role.yaml +++ b/testdata/project-v4-multigroup-with-deploy-image/config/rbac/sea-creatures_kraken_editor_role.yaml @@ -3,11 +3,7 @@ apiVersion: rbac.authorization.k8s.io/v1 kind: ClusterRole metadata: labels: - app.kubernetes.io/name: clusterrole - app.kubernetes.io/instance: kraken-editor-role - app.kubernetes.io/component: rbac - app.kubernetes.io/created-by: project-v4-multigroup-with-deploy-image - app.kubernetes.io/part-of: project-v4-multigroup-with-deploy-image + app.kubernetes.io/name: project-v4-multigroup-with-deploy-image app.kubernetes.io/managed-by: kustomize name: sea-creatures-kraken-editor-role rules: diff --git a/testdata/project-v4-multigroup-with-deploy-image/config/rbac/sea-creatures_kraken_viewer_role.yaml b/testdata/project-v4-multigroup-with-deploy-image/config/rbac/sea-creatures_kraken_viewer_role.yaml index e760ceab618..1912dd24ffb 100644 --- a/testdata/project-v4-multigroup-with-deploy-image/config/rbac/sea-creatures_kraken_viewer_role.yaml +++ b/testdata/project-v4-multigroup-with-deploy-image/config/rbac/sea-creatures_kraken_viewer_role.yaml @@ -3,11 +3,7 @@ apiVersion: rbac.authorization.k8s.io/v1 kind: ClusterRole metadata: labels: - app.kubernetes.io/name: clusterrole - app.kubernetes.io/instance: kraken-viewer-role - app.kubernetes.io/component: rbac - app.kubernetes.io/created-by: project-v4-multigroup-with-deploy-image - app.kubernetes.io/part-of: project-v4-multigroup-with-deploy-image + app.kubernetes.io/name: project-v4-multigroup-with-deploy-image app.kubernetes.io/managed-by: kustomize name: sea-creatures-kraken-viewer-role rules: diff --git a/testdata/project-v4-multigroup-with-deploy-image/config/rbac/sea-creatures_leviathan_editor_role.yaml b/testdata/project-v4-multigroup-with-deploy-image/config/rbac/sea-creatures_leviathan_editor_role.yaml index fa3c5369f38..b856daabda2 100644 --- a/testdata/project-v4-multigroup-with-deploy-image/config/rbac/sea-creatures_leviathan_editor_role.yaml +++ b/testdata/project-v4-multigroup-with-deploy-image/config/rbac/sea-creatures_leviathan_editor_role.yaml @@ -3,11 +3,7 @@ apiVersion: rbac.authorization.k8s.io/v1 kind: ClusterRole metadata: labels: - app.kubernetes.io/name: clusterrole - app.kubernetes.io/instance: leviathan-editor-role - app.kubernetes.io/component: rbac - app.kubernetes.io/created-by: project-v4-multigroup-with-deploy-image - app.kubernetes.io/part-of: project-v4-multigroup-with-deploy-image + app.kubernetes.io/name: project-v4-multigroup-with-deploy-image app.kubernetes.io/managed-by: kustomize name: sea-creatures-leviathan-editor-role rules: diff --git a/testdata/project-v4-multigroup-with-deploy-image/config/rbac/sea-creatures_leviathan_viewer_role.yaml b/testdata/project-v4-multigroup-with-deploy-image/config/rbac/sea-creatures_leviathan_viewer_role.yaml index 44e97a9781a..cb22d2cc7ea 100644 --- a/testdata/project-v4-multigroup-with-deploy-image/config/rbac/sea-creatures_leviathan_viewer_role.yaml +++ b/testdata/project-v4-multigroup-with-deploy-image/config/rbac/sea-creatures_leviathan_viewer_role.yaml @@ -3,11 +3,7 @@ apiVersion: rbac.authorization.k8s.io/v1 kind: ClusterRole metadata: labels: - app.kubernetes.io/name: clusterrole - app.kubernetes.io/instance: leviathan-viewer-role - app.kubernetes.io/component: rbac - app.kubernetes.io/created-by: project-v4-multigroup-with-deploy-image - app.kubernetes.io/part-of: project-v4-multigroup-with-deploy-image + app.kubernetes.io/name: project-v4-multigroup-with-deploy-image app.kubernetes.io/managed-by: kustomize name: sea-creatures-leviathan-viewer-role rules: diff --git a/testdata/project-v4-multigroup-with-deploy-image/config/rbac/ship_cruiser_editor_role.yaml b/testdata/project-v4-multigroup-with-deploy-image/config/rbac/ship_cruiser_editor_role.yaml index 7ea815b37b0..f9e767b202b 100644 --- a/testdata/project-v4-multigroup-with-deploy-image/config/rbac/ship_cruiser_editor_role.yaml +++ b/testdata/project-v4-multigroup-with-deploy-image/config/rbac/ship_cruiser_editor_role.yaml @@ -3,11 +3,7 @@ apiVersion: rbac.authorization.k8s.io/v1 kind: ClusterRole metadata: labels: - app.kubernetes.io/name: clusterrole - app.kubernetes.io/instance: cruiser-editor-role - app.kubernetes.io/component: rbac - app.kubernetes.io/created-by: project-v4-multigroup-with-deploy-image - app.kubernetes.io/part-of: project-v4-multigroup-with-deploy-image + app.kubernetes.io/name: project-v4-multigroup-with-deploy-image app.kubernetes.io/managed-by: kustomize name: ship-cruiser-editor-role rules: diff --git a/testdata/project-v4-multigroup-with-deploy-image/config/rbac/ship_cruiser_viewer_role.yaml b/testdata/project-v4-multigroup-with-deploy-image/config/rbac/ship_cruiser_viewer_role.yaml index 04fb3754475..b3ab524cd6d 100644 --- a/testdata/project-v4-multigroup-with-deploy-image/config/rbac/ship_cruiser_viewer_role.yaml +++ b/testdata/project-v4-multigroup-with-deploy-image/config/rbac/ship_cruiser_viewer_role.yaml @@ -3,11 +3,7 @@ apiVersion: rbac.authorization.k8s.io/v1 kind: ClusterRole metadata: labels: - app.kubernetes.io/name: clusterrole - app.kubernetes.io/instance: cruiser-viewer-role - app.kubernetes.io/component: rbac - app.kubernetes.io/created-by: project-v4-multigroup-with-deploy-image - app.kubernetes.io/part-of: project-v4-multigroup-with-deploy-image + app.kubernetes.io/name: project-v4-multigroup-with-deploy-image app.kubernetes.io/managed-by: kustomize name: ship-cruiser-viewer-role rules: diff --git a/testdata/project-v4-multigroup-with-deploy-image/config/rbac/ship_destroyer_editor_role.yaml b/testdata/project-v4-multigroup-with-deploy-image/config/rbac/ship_destroyer_editor_role.yaml index c7d0d5767e2..2aa4623823d 100644 --- a/testdata/project-v4-multigroup-with-deploy-image/config/rbac/ship_destroyer_editor_role.yaml +++ b/testdata/project-v4-multigroup-with-deploy-image/config/rbac/ship_destroyer_editor_role.yaml @@ -3,11 +3,7 @@ apiVersion: rbac.authorization.k8s.io/v1 kind: ClusterRole metadata: labels: - app.kubernetes.io/name: clusterrole - app.kubernetes.io/instance: destroyer-editor-role - app.kubernetes.io/component: rbac - app.kubernetes.io/created-by: project-v4-multigroup-with-deploy-image - app.kubernetes.io/part-of: project-v4-multigroup-with-deploy-image + app.kubernetes.io/name: project-v4-multigroup-with-deploy-image app.kubernetes.io/managed-by: kustomize name: ship-destroyer-editor-role rules: diff --git a/testdata/project-v4-multigroup-with-deploy-image/config/rbac/ship_destroyer_viewer_role.yaml b/testdata/project-v4-multigroup-with-deploy-image/config/rbac/ship_destroyer_viewer_role.yaml index 1b3ad9d7672..e35439a76ee 100644 --- a/testdata/project-v4-multigroup-with-deploy-image/config/rbac/ship_destroyer_viewer_role.yaml +++ b/testdata/project-v4-multigroup-with-deploy-image/config/rbac/ship_destroyer_viewer_role.yaml @@ -3,11 +3,7 @@ apiVersion: rbac.authorization.k8s.io/v1 kind: ClusterRole metadata: labels: - app.kubernetes.io/name: clusterrole - app.kubernetes.io/instance: destroyer-viewer-role - app.kubernetes.io/component: rbac - app.kubernetes.io/created-by: project-v4-multigroup-with-deploy-image - app.kubernetes.io/part-of: project-v4-multigroup-with-deploy-image + app.kubernetes.io/name: project-v4-multigroup-with-deploy-image app.kubernetes.io/managed-by: kustomize name: ship-destroyer-viewer-role rules: diff --git a/testdata/project-v4-multigroup-with-deploy-image/config/rbac/ship_frigate_editor_role.yaml b/testdata/project-v4-multigroup-with-deploy-image/config/rbac/ship_frigate_editor_role.yaml index 506978a6b79..6938a6b55ea 100644 --- a/testdata/project-v4-multigroup-with-deploy-image/config/rbac/ship_frigate_editor_role.yaml +++ b/testdata/project-v4-multigroup-with-deploy-image/config/rbac/ship_frigate_editor_role.yaml @@ -3,11 +3,7 @@ apiVersion: rbac.authorization.k8s.io/v1 kind: ClusterRole metadata: labels: - app.kubernetes.io/name: clusterrole - app.kubernetes.io/instance: frigate-editor-role - app.kubernetes.io/component: rbac - app.kubernetes.io/created-by: project-v4-multigroup-with-deploy-image - app.kubernetes.io/part-of: project-v4-multigroup-with-deploy-image + app.kubernetes.io/name: project-v4-multigroup-with-deploy-image app.kubernetes.io/managed-by: kustomize name: ship-frigate-editor-role rules: diff --git a/testdata/project-v4-multigroup-with-deploy-image/config/rbac/ship_frigate_viewer_role.yaml b/testdata/project-v4-multigroup-with-deploy-image/config/rbac/ship_frigate_viewer_role.yaml index a5400bfe7ea..4d12c969627 100644 --- a/testdata/project-v4-multigroup-with-deploy-image/config/rbac/ship_frigate_viewer_role.yaml +++ b/testdata/project-v4-multigroup-with-deploy-image/config/rbac/ship_frigate_viewer_role.yaml @@ -3,11 +3,7 @@ apiVersion: rbac.authorization.k8s.io/v1 kind: ClusterRole metadata: labels: - app.kubernetes.io/name: clusterrole - app.kubernetes.io/instance: frigate-viewer-role - app.kubernetes.io/component: rbac - app.kubernetes.io/created-by: project-v4-multigroup-with-deploy-image - app.kubernetes.io/part-of: project-v4-multigroup-with-deploy-image + app.kubernetes.io/name: project-v4-multigroup-with-deploy-image app.kubernetes.io/managed-by: kustomize name: ship-frigate-viewer-role rules: diff --git a/testdata/project-v4-multigroup-with-deploy-image/dist/install.yaml b/testdata/project-v4-multigroup-with-deploy-image/dist/install.yaml index de7ab9a9859..26592d65d9a 100644 --- a/testdata/project-v4-multigroup-with-deploy-image/dist/install.yaml +++ b/testdata/project-v4-multigroup-with-deploy-image/dist/install.yaml @@ -2,12 +2,8 @@ apiVersion: v1 kind: Namespace metadata: labels: - app.kubernetes.io/component: manager - app.kubernetes.io/created-by: project-v4-multigroup-with-deploy-image - app.kubernetes.io/instance: system app.kubernetes.io/managed-by: kustomize - app.kubernetes.io/name: namespace - app.kubernetes.io/part-of: project-v4-multigroup-with-deploy-image + app.kubernetes.io/name: project-v4-multigroup-with-deploy-image control-plane: controller-manager name: project-v4-multigroup-with-deploy-image-system --- @@ -614,12 +610,8 @@ apiVersion: rbac.authorization.k8s.io/v1 kind: Role metadata: labels: - app.kubernetes.io/component: rbac - app.kubernetes.io/created-by: project-v4-multigroup-with-deploy-image - app.kubernetes.io/instance: leader-election-role app.kubernetes.io/managed-by: kustomize - app.kubernetes.io/name: role - app.kubernetes.io/part-of: project-v4-multigroup-with-deploy-image + app.kubernetes.io/name: project-v4-multigroup-with-deploy-image name: project-v4-multigroup-with-deploy-image-leader-election-role namespace: project-v4-multigroup-with-deploy-image-system rules: @@ -659,12 +651,8 @@ apiVersion: rbac.authorization.k8s.io/v1 kind: ClusterRole metadata: labels: - app.kubernetes.io/component: rbac - app.kubernetes.io/created-by: project-v4-multigroup-with-deploy-image - app.kubernetes.io/instance: captain-editor-role app.kubernetes.io/managed-by: kustomize - app.kubernetes.io/name: clusterrole - app.kubernetes.io/part-of: project-v4-multigroup-with-deploy-image + app.kubernetes.io/name: project-v4-multigroup-with-deploy-image name: project-v4-multigroup-with-deploy-image-crew-captain-editor-role rules: - apiGroups: @@ -690,12 +678,8 @@ apiVersion: rbac.authorization.k8s.io/v1 kind: ClusterRole metadata: labels: - app.kubernetes.io/component: rbac - app.kubernetes.io/created-by: project-v4-multigroup-with-deploy-image - app.kubernetes.io/instance: captain-viewer-role app.kubernetes.io/managed-by: kustomize - app.kubernetes.io/name: clusterrole - app.kubernetes.io/part-of: project-v4-multigroup-with-deploy-image + app.kubernetes.io/name: project-v4-multigroup-with-deploy-image name: project-v4-multigroup-with-deploy-image-crew-captain-viewer-role rules: - apiGroups: @@ -717,12 +701,8 @@ apiVersion: rbac.authorization.k8s.io/v1 kind: ClusterRole metadata: labels: - app.kubernetes.io/component: rbac - app.kubernetes.io/created-by: project-v4-multigroup-with-deploy-image - app.kubernetes.io/instance: bar-editor-role app.kubernetes.io/managed-by: kustomize - app.kubernetes.io/name: clusterrole - app.kubernetes.io/part-of: project-v4-multigroup-with-deploy-image + app.kubernetes.io/name: project-v4-multigroup-with-deploy-image name: project-v4-multigroup-with-deploy-image-fiz-bar-editor-role rules: - apiGroups: @@ -748,12 +728,8 @@ apiVersion: rbac.authorization.k8s.io/v1 kind: ClusterRole metadata: labels: - app.kubernetes.io/component: rbac - app.kubernetes.io/created-by: project-v4-multigroup-with-deploy-image - app.kubernetes.io/instance: bar-viewer-role app.kubernetes.io/managed-by: kustomize - app.kubernetes.io/name: clusterrole - app.kubernetes.io/part-of: project-v4-multigroup-with-deploy-image + app.kubernetes.io/name: project-v4-multigroup-with-deploy-image name: project-v4-multigroup-with-deploy-image-fiz-bar-viewer-role rules: - apiGroups: @@ -775,12 +751,8 @@ apiVersion: rbac.authorization.k8s.io/v1 kind: ClusterRole metadata: labels: - app.kubernetes.io/component: rbac - app.kubernetes.io/created-by: project-v4-multigroup-with-deploy-image - app.kubernetes.io/instance: bar-editor-role app.kubernetes.io/managed-by: kustomize - app.kubernetes.io/name: clusterrole - app.kubernetes.io/part-of: project-v4-multigroup-with-deploy-image + app.kubernetes.io/name: project-v4-multigroup-with-deploy-image name: project-v4-multigroup-with-deploy-image-foo-bar-editor-role rules: - apiGroups: @@ -806,12 +778,8 @@ apiVersion: rbac.authorization.k8s.io/v1 kind: ClusterRole metadata: labels: - app.kubernetes.io/component: rbac - app.kubernetes.io/created-by: project-v4-multigroup-with-deploy-image - app.kubernetes.io/instance: bar-viewer-role app.kubernetes.io/managed-by: kustomize - app.kubernetes.io/name: clusterrole - app.kubernetes.io/part-of: project-v4-multigroup-with-deploy-image + app.kubernetes.io/name: project-v4-multigroup-with-deploy-image name: project-v4-multigroup-with-deploy-image-foo-bar-viewer-role rules: - apiGroups: @@ -833,12 +801,8 @@ apiVersion: rbac.authorization.k8s.io/v1 kind: ClusterRole metadata: labels: - app.kubernetes.io/component: rbac - app.kubernetes.io/created-by: project-v4-multigroup-with-deploy-image - app.kubernetes.io/instance: healthcheckpolicy-editor-role app.kubernetes.io/managed-by: kustomize - app.kubernetes.io/name: clusterrole - app.kubernetes.io/part-of: project-v4-multigroup-with-deploy-image + app.kubernetes.io/name: project-v4-multigroup-with-deploy-image name: project-v4-multigroup-with-deploy-image-foo.policy-healthcheckpolicy-editor-role rules: - apiGroups: @@ -864,12 +828,8 @@ apiVersion: rbac.authorization.k8s.io/v1 kind: ClusterRole metadata: labels: - app.kubernetes.io/component: rbac - app.kubernetes.io/created-by: project-v4-multigroup-with-deploy-image - app.kubernetes.io/instance: healthcheckpolicy-viewer-role app.kubernetes.io/managed-by: kustomize - app.kubernetes.io/name: clusterrole - app.kubernetes.io/part-of: project-v4-multigroup-with-deploy-image + app.kubernetes.io/name: project-v4-multigroup-with-deploy-image name: project-v4-multigroup-with-deploy-image-foo.policy-healthcheckpolicy-viewer-role rules: - apiGroups: @@ -891,12 +851,8 @@ apiVersion: rbac.authorization.k8s.io/v1 kind: ClusterRole metadata: labels: - app.kubernetes.io/component: rbac - app.kubernetes.io/created-by: project-v4-multigroup-with-deploy-image - app.kubernetes.io/instance: lakers-editor-role app.kubernetes.io/managed-by: kustomize - app.kubernetes.io/name: clusterrole - app.kubernetes.io/part-of: project-v4-multigroup-with-deploy-image + app.kubernetes.io/name: project-v4-multigroup-with-deploy-image name: project-v4-multigroup-with-deploy-image-lakers-editor-role rules: - apiGroups: @@ -922,12 +878,8 @@ apiVersion: rbac.authorization.k8s.io/v1 kind: ClusterRole metadata: labels: - app.kubernetes.io/component: rbac - app.kubernetes.io/created-by: project-v4-multigroup-with-deploy-image - app.kubernetes.io/instance: lakers-viewer-role app.kubernetes.io/managed-by: kustomize - app.kubernetes.io/name: clusterrole - app.kubernetes.io/part-of: project-v4-multigroup-with-deploy-image + app.kubernetes.io/name: project-v4-multigroup-with-deploy-image name: project-v4-multigroup-with-deploy-image-lakers-viewer-role rules: - apiGroups: @@ -1241,12 +1193,8 @@ apiVersion: rbac.authorization.k8s.io/v1 kind: ClusterRole metadata: labels: - app.kubernetes.io/component: kube-rbac-proxy - app.kubernetes.io/created-by: project-v4-multigroup-with-deploy-image - app.kubernetes.io/instance: metrics-reader app.kubernetes.io/managed-by: kustomize - app.kubernetes.io/name: clusterrole - app.kubernetes.io/part-of: project-v4-multigroup-with-deploy-image + app.kubernetes.io/name: project-v4-multigroup-with-deploy-image name: project-v4-multigroup-with-deploy-image-metrics-reader rules: - nonResourceURLs: @@ -1258,12 +1206,8 @@ apiVersion: rbac.authorization.k8s.io/v1 kind: ClusterRole metadata: labels: - app.kubernetes.io/component: kube-rbac-proxy - app.kubernetes.io/created-by: project-v4-multigroup-with-deploy-image - app.kubernetes.io/instance: proxy-role app.kubernetes.io/managed-by: kustomize - app.kubernetes.io/name: clusterrole - app.kubernetes.io/part-of: project-v4-multigroup-with-deploy-image + app.kubernetes.io/name: project-v4-multigroup-with-deploy-image name: project-v4-multigroup-with-deploy-image-proxy-role rules: - apiGroups: @@ -1283,12 +1227,8 @@ apiVersion: rbac.authorization.k8s.io/v1 kind: ClusterRole metadata: labels: - app.kubernetes.io/component: rbac - app.kubernetes.io/created-by: project-v4-multigroup-with-deploy-image - app.kubernetes.io/instance: kraken-editor-role app.kubernetes.io/managed-by: kustomize - app.kubernetes.io/name: clusterrole - app.kubernetes.io/part-of: project-v4-multigroup-with-deploy-image + app.kubernetes.io/name: project-v4-multigroup-with-deploy-image name: project-v4-multigroup-with-deploy-image-sea-creatures-kraken-editor-role rules: - apiGroups: @@ -1314,12 +1254,8 @@ apiVersion: rbac.authorization.k8s.io/v1 kind: ClusterRole metadata: labels: - app.kubernetes.io/component: rbac - app.kubernetes.io/created-by: project-v4-multigroup-with-deploy-image - app.kubernetes.io/instance: kraken-viewer-role app.kubernetes.io/managed-by: kustomize - app.kubernetes.io/name: clusterrole - app.kubernetes.io/part-of: project-v4-multigroup-with-deploy-image + app.kubernetes.io/name: project-v4-multigroup-with-deploy-image name: project-v4-multigroup-with-deploy-image-sea-creatures-kraken-viewer-role rules: - apiGroups: @@ -1341,12 +1277,8 @@ apiVersion: rbac.authorization.k8s.io/v1 kind: ClusterRole metadata: labels: - app.kubernetes.io/component: rbac - app.kubernetes.io/created-by: project-v4-multigroup-with-deploy-image - app.kubernetes.io/instance: leviathan-editor-role app.kubernetes.io/managed-by: kustomize - app.kubernetes.io/name: clusterrole - app.kubernetes.io/part-of: project-v4-multigroup-with-deploy-image + app.kubernetes.io/name: project-v4-multigroup-with-deploy-image name: project-v4-multigroup-with-deploy-image-sea-creatures-leviathan-editor-role rules: - apiGroups: @@ -1372,12 +1304,8 @@ apiVersion: rbac.authorization.k8s.io/v1 kind: ClusterRole metadata: labels: - app.kubernetes.io/component: rbac - app.kubernetes.io/created-by: project-v4-multigroup-with-deploy-image - app.kubernetes.io/instance: leviathan-viewer-role app.kubernetes.io/managed-by: kustomize - app.kubernetes.io/name: clusterrole - app.kubernetes.io/part-of: project-v4-multigroup-with-deploy-image + app.kubernetes.io/name: project-v4-multigroup-with-deploy-image name: project-v4-multigroup-with-deploy-image-sea-creatures-leviathan-viewer-role rules: - apiGroups: @@ -1399,12 +1327,8 @@ apiVersion: rbac.authorization.k8s.io/v1 kind: ClusterRole metadata: labels: - app.kubernetes.io/component: rbac - app.kubernetes.io/created-by: project-v4-multigroup-with-deploy-image - app.kubernetes.io/instance: cruiser-editor-role app.kubernetes.io/managed-by: kustomize - app.kubernetes.io/name: clusterrole - app.kubernetes.io/part-of: project-v4-multigroup-with-deploy-image + app.kubernetes.io/name: project-v4-multigroup-with-deploy-image name: project-v4-multigroup-with-deploy-image-ship-cruiser-editor-role rules: - apiGroups: @@ -1430,12 +1354,8 @@ apiVersion: rbac.authorization.k8s.io/v1 kind: ClusterRole metadata: labels: - app.kubernetes.io/component: rbac - app.kubernetes.io/created-by: project-v4-multigroup-with-deploy-image - app.kubernetes.io/instance: cruiser-viewer-role app.kubernetes.io/managed-by: kustomize - app.kubernetes.io/name: clusterrole - app.kubernetes.io/part-of: project-v4-multigroup-with-deploy-image + app.kubernetes.io/name: project-v4-multigroup-with-deploy-image name: project-v4-multigroup-with-deploy-image-ship-cruiser-viewer-role rules: - apiGroups: @@ -1457,12 +1377,8 @@ apiVersion: rbac.authorization.k8s.io/v1 kind: ClusterRole metadata: labels: - app.kubernetes.io/component: rbac - app.kubernetes.io/created-by: project-v4-multigroup-with-deploy-image - app.kubernetes.io/instance: destroyer-editor-role app.kubernetes.io/managed-by: kustomize - app.kubernetes.io/name: clusterrole - app.kubernetes.io/part-of: project-v4-multigroup-with-deploy-image + app.kubernetes.io/name: project-v4-multigroup-with-deploy-image name: project-v4-multigroup-with-deploy-image-ship-destroyer-editor-role rules: - apiGroups: @@ -1488,12 +1404,8 @@ apiVersion: rbac.authorization.k8s.io/v1 kind: ClusterRole metadata: labels: - app.kubernetes.io/component: rbac - app.kubernetes.io/created-by: project-v4-multigroup-with-deploy-image - app.kubernetes.io/instance: destroyer-viewer-role app.kubernetes.io/managed-by: kustomize - app.kubernetes.io/name: clusterrole - app.kubernetes.io/part-of: project-v4-multigroup-with-deploy-image + app.kubernetes.io/name: project-v4-multigroup-with-deploy-image name: project-v4-multigroup-with-deploy-image-ship-destroyer-viewer-role rules: - apiGroups: @@ -1515,12 +1427,8 @@ apiVersion: rbac.authorization.k8s.io/v1 kind: ClusterRole metadata: labels: - app.kubernetes.io/component: rbac - app.kubernetes.io/created-by: project-v4-multigroup-with-deploy-image - app.kubernetes.io/instance: frigate-editor-role app.kubernetes.io/managed-by: kustomize - app.kubernetes.io/name: clusterrole - app.kubernetes.io/part-of: project-v4-multigroup-with-deploy-image + app.kubernetes.io/name: project-v4-multigroup-with-deploy-image name: project-v4-multigroup-with-deploy-image-ship-frigate-editor-role rules: - apiGroups: @@ -1546,12 +1454,8 @@ apiVersion: rbac.authorization.k8s.io/v1 kind: ClusterRole metadata: labels: - app.kubernetes.io/component: rbac - app.kubernetes.io/created-by: project-v4-multigroup-with-deploy-image - app.kubernetes.io/instance: frigate-viewer-role app.kubernetes.io/managed-by: kustomize - app.kubernetes.io/name: clusterrole - app.kubernetes.io/part-of: project-v4-multigroup-with-deploy-image + app.kubernetes.io/name: project-v4-multigroup-with-deploy-image name: project-v4-multigroup-with-deploy-image-ship-frigate-viewer-role rules: - apiGroups: @@ -1573,12 +1477,8 @@ apiVersion: rbac.authorization.k8s.io/v1 kind: RoleBinding metadata: labels: - app.kubernetes.io/component: rbac - app.kubernetes.io/created-by: project-v4-multigroup-with-deploy-image - app.kubernetes.io/instance: leader-election-rolebinding app.kubernetes.io/managed-by: kustomize - app.kubernetes.io/name: rolebinding - app.kubernetes.io/part-of: project-v4-multigroup-with-deploy-image + app.kubernetes.io/name: project-v4-multigroup-with-deploy-image name: project-v4-multigroup-with-deploy-image-leader-election-rolebinding namespace: project-v4-multigroup-with-deploy-image-system roleRef: @@ -1594,12 +1494,8 @@ apiVersion: rbac.authorization.k8s.io/v1 kind: ClusterRoleBinding metadata: labels: - app.kubernetes.io/component: rbac - app.kubernetes.io/created-by: project-v4-multigroup-with-deploy-image - app.kubernetes.io/instance: manager-rolebinding app.kubernetes.io/managed-by: kustomize - app.kubernetes.io/name: clusterrolebinding - app.kubernetes.io/part-of: project-v4-multigroup-with-deploy-image + app.kubernetes.io/name: project-v4-multigroup-with-deploy-image name: project-v4-multigroup-with-deploy-image-manager-rolebinding roleRef: apiGroup: rbac.authorization.k8s.io @@ -1614,12 +1510,8 @@ apiVersion: rbac.authorization.k8s.io/v1 kind: ClusterRoleBinding metadata: labels: - app.kubernetes.io/component: kube-rbac-proxy - app.kubernetes.io/created-by: project-v4-multigroup-with-deploy-image - app.kubernetes.io/instance: proxy-rolebinding app.kubernetes.io/managed-by: kustomize - app.kubernetes.io/name: clusterrolebinding - app.kubernetes.io/part-of: project-v4-multigroup-with-deploy-image + app.kubernetes.io/name: project-v4-multigroup-with-deploy-image name: project-v4-multigroup-with-deploy-image-proxy-rolebinding roleRef: apiGroup: rbac.authorization.k8s.io @@ -1634,12 +1526,8 @@ apiVersion: v1 kind: Service metadata: labels: - app.kubernetes.io/component: kube-rbac-proxy - app.kubernetes.io/created-by: project-v4-multigroup-with-deploy-image - app.kubernetes.io/instance: controller-manager-metrics-service app.kubernetes.io/managed-by: kustomize - app.kubernetes.io/name: service - app.kubernetes.io/part-of: project-v4-multigroup-with-deploy-image + app.kubernetes.io/name: project-v4-multigroup-with-deploy-image control-plane: controller-manager name: project-v4-multigroup-with-deploy-image-controller-manager-metrics-service namespace: project-v4-multigroup-with-deploy-image-system @@ -1672,12 +1560,8 @@ apiVersion: apps/v1 kind: Deployment metadata: labels: - app.kubernetes.io/component: manager - app.kubernetes.io/created-by: project-v4-multigroup-with-deploy-image - app.kubernetes.io/instance: controller-manager app.kubernetes.io/managed-by: kustomize - app.kubernetes.io/name: deployment - app.kubernetes.io/part-of: project-v4-multigroup-with-deploy-image + app.kubernetes.io/name: project-v4-multigroup-with-deploy-image control-plane: controller-manager name: project-v4-multigroup-with-deploy-image-controller-manager namespace: project-v4-multigroup-with-deploy-image-system diff --git a/testdata/project-v4-multigroup/config/certmanager/certificate.yaml b/testdata/project-v4-multigroup/config/certmanager/certificate.yaml index be52fc0e55a..d6bd556f1b4 100644 --- a/testdata/project-v4-multigroup/config/certmanager/certificate.yaml +++ b/testdata/project-v4-multigroup/config/certmanager/certificate.yaml @@ -5,11 +5,7 @@ apiVersion: cert-manager.io/v1 kind: Issuer metadata: labels: - app.kubernetes.io/name: certificate - app.kubernetes.io/instance: serving-cert - app.kubernetes.io/component: certificate - app.kubernetes.io/created-by: project-v4-multigroup - app.kubernetes.io/part-of: project-v4-multigroup + app.kubernetes.io/name: project-v4-multigroup app.kubernetes.io/managed-by: kustomize name: selfsigned-issuer namespace: system diff --git a/testdata/project-v4-multigroup/config/default/webhookcainjection_patch.yaml b/testdata/project-v4-multigroup/config/default/webhookcainjection_patch.yaml index b4b3ad4191f..5a278ed6e95 100644 --- a/testdata/project-v4-multigroup/config/default/webhookcainjection_patch.yaml +++ b/testdata/project-v4-multigroup/config/default/webhookcainjection_patch.yaml @@ -4,11 +4,7 @@ apiVersion: admissionregistration.k8s.io/v1 kind: MutatingWebhookConfiguration metadata: labels: - app.kubernetes.io/name: mutatingwebhookconfiguration - app.kubernetes.io/instance: mutating-webhook-configuration - app.kubernetes.io/component: webhook - app.kubernetes.io/created-by: project-v4-multigroup - app.kubernetes.io/part-of: project-v4-multigroup + app.kubernetes.io/name: project-v4-multigroup app.kubernetes.io/managed-by: kustomize name: mutating-webhook-configuration annotations: diff --git a/testdata/project-v4-multigroup/config/manager/manager.yaml b/testdata/project-v4-multigroup/config/manager/manager.yaml index 81485d6e660..d80c8f33132 100644 --- a/testdata/project-v4-multigroup/config/manager/manager.yaml +++ b/testdata/project-v4-multigroup/config/manager/manager.yaml @@ -3,11 +3,7 @@ kind: Namespace metadata: labels: control-plane: controller-manager - app.kubernetes.io/name: namespace - app.kubernetes.io/instance: system - app.kubernetes.io/component: manager - app.kubernetes.io/created-by: project-v4-multigroup - app.kubernetes.io/part-of: project-v4-multigroup + app.kubernetes.io/name: project-v4-multigroup app.kubernetes.io/managed-by: kustomize name: system --- @@ -18,11 +14,7 @@ metadata: namespace: system labels: control-plane: controller-manager - app.kubernetes.io/name: deployment - app.kubernetes.io/instance: controller-manager - app.kubernetes.io/component: manager - app.kubernetes.io/created-by: project-v4-multigroup - app.kubernetes.io/part-of: project-v4-multigroup + app.kubernetes.io/name: project-v4-multigroup app.kubernetes.io/managed-by: kustomize spec: selector: diff --git a/testdata/project-v4-multigroup/config/prometheus/monitor.yaml b/testdata/project-v4-multigroup/config/prometheus/monitor.yaml index b4435aa9aaa..bb60c0d334a 100644 --- a/testdata/project-v4-multigroup/config/prometheus/monitor.yaml +++ b/testdata/project-v4-multigroup/config/prometheus/monitor.yaml @@ -4,11 +4,7 @@ kind: ServiceMonitor metadata: labels: control-plane: controller-manager - app.kubernetes.io/name: servicemonitor - app.kubernetes.io/instance: controller-manager-metrics-monitor - app.kubernetes.io/component: metrics - app.kubernetes.io/created-by: project-v4-multigroup - app.kubernetes.io/part-of: project-v4-multigroup + app.kubernetes.io/name: project-v4-multigroup app.kubernetes.io/managed-by: kustomize name: controller-manager-metrics-monitor namespace: system diff --git a/testdata/project-v4-multigroup/config/rbac/auth_proxy_client_clusterrole.yaml b/testdata/project-v4-multigroup/config/rbac/auth_proxy_client_clusterrole.yaml index bc61e75af6b..53613e3eeef 100644 --- a/testdata/project-v4-multigroup/config/rbac/auth_proxy_client_clusterrole.yaml +++ b/testdata/project-v4-multigroup/config/rbac/auth_proxy_client_clusterrole.yaml @@ -2,11 +2,7 @@ apiVersion: rbac.authorization.k8s.io/v1 kind: ClusterRole metadata: labels: - app.kubernetes.io/name: clusterrole - app.kubernetes.io/instance: metrics-reader - app.kubernetes.io/component: kube-rbac-proxy - app.kubernetes.io/created-by: project-v4-multigroup - app.kubernetes.io/part-of: project-v4-multigroup + app.kubernetes.io/name: project-v4-multigroup app.kubernetes.io/managed-by: kustomize name: metrics-reader rules: diff --git a/testdata/project-v4-multigroup/config/rbac/auth_proxy_role.yaml b/testdata/project-v4-multigroup/config/rbac/auth_proxy_role.yaml index fa5805cf8a5..56c97ddca82 100644 --- a/testdata/project-v4-multigroup/config/rbac/auth_proxy_role.yaml +++ b/testdata/project-v4-multigroup/config/rbac/auth_proxy_role.yaml @@ -2,11 +2,7 @@ apiVersion: rbac.authorization.k8s.io/v1 kind: ClusterRole metadata: labels: - app.kubernetes.io/name: clusterrole - app.kubernetes.io/instance: proxy-role - app.kubernetes.io/component: kube-rbac-proxy - app.kubernetes.io/created-by: project-v4-multigroup - app.kubernetes.io/part-of: project-v4-multigroup + app.kubernetes.io/name: project-v4-multigroup app.kubernetes.io/managed-by: kustomize name: proxy-role rules: diff --git a/testdata/project-v4-multigroup/config/rbac/auth_proxy_role_binding.yaml b/testdata/project-v4-multigroup/config/rbac/auth_proxy_role_binding.yaml index 0bb48978f41..10f89301cdb 100644 --- a/testdata/project-v4-multigroup/config/rbac/auth_proxy_role_binding.yaml +++ b/testdata/project-v4-multigroup/config/rbac/auth_proxy_role_binding.yaml @@ -2,11 +2,7 @@ apiVersion: rbac.authorization.k8s.io/v1 kind: ClusterRoleBinding metadata: labels: - app.kubernetes.io/name: clusterrolebinding - app.kubernetes.io/instance: proxy-rolebinding - app.kubernetes.io/component: kube-rbac-proxy - app.kubernetes.io/created-by: project-v4-multigroup - app.kubernetes.io/part-of: project-v4-multigroup + app.kubernetes.io/name: project-v4-multigroup app.kubernetes.io/managed-by: kustomize name: proxy-rolebinding roleRef: diff --git a/testdata/project-v4-multigroup/config/rbac/auth_proxy_service.yaml b/testdata/project-v4-multigroup/config/rbac/auth_proxy_service.yaml index 88321dc14d5..b168382998d 100644 --- a/testdata/project-v4-multigroup/config/rbac/auth_proxy_service.yaml +++ b/testdata/project-v4-multigroup/config/rbac/auth_proxy_service.yaml @@ -3,11 +3,7 @@ kind: Service metadata: labels: control-plane: controller-manager - app.kubernetes.io/name: service - app.kubernetes.io/instance: controller-manager-metrics-service - app.kubernetes.io/component: kube-rbac-proxy - app.kubernetes.io/created-by: project-v4-multigroup - app.kubernetes.io/part-of: project-v4-multigroup + app.kubernetes.io/name: project-v4-multigroup app.kubernetes.io/managed-by: kustomize name: controller-manager-metrics-service namespace: system diff --git a/testdata/project-v4-multigroup/config/rbac/crew_captain_editor_role.yaml b/testdata/project-v4-multigroup/config/rbac/crew_captain_editor_role.yaml index a1c328db350..c6a33cbfbda 100644 --- a/testdata/project-v4-multigroup/config/rbac/crew_captain_editor_role.yaml +++ b/testdata/project-v4-multigroup/config/rbac/crew_captain_editor_role.yaml @@ -3,11 +3,7 @@ apiVersion: rbac.authorization.k8s.io/v1 kind: ClusterRole metadata: labels: - app.kubernetes.io/name: clusterrole - app.kubernetes.io/instance: captain-editor-role - app.kubernetes.io/component: rbac - app.kubernetes.io/created-by: project-v4-multigroup - app.kubernetes.io/part-of: project-v4-multigroup + app.kubernetes.io/name: project-v4-multigroup app.kubernetes.io/managed-by: kustomize name: crew-captain-editor-role rules: diff --git a/testdata/project-v4-multigroup/config/rbac/crew_captain_viewer_role.yaml b/testdata/project-v4-multigroup/config/rbac/crew_captain_viewer_role.yaml index 220c3cbf99c..7d723490e56 100644 --- a/testdata/project-v4-multigroup/config/rbac/crew_captain_viewer_role.yaml +++ b/testdata/project-v4-multigroup/config/rbac/crew_captain_viewer_role.yaml @@ -3,11 +3,7 @@ apiVersion: rbac.authorization.k8s.io/v1 kind: ClusterRole metadata: labels: - app.kubernetes.io/name: clusterrole - app.kubernetes.io/instance: captain-viewer-role - app.kubernetes.io/component: rbac - app.kubernetes.io/created-by: project-v4-multigroup - app.kubernetes.io/part-of: project-v4-multigroup + app.kubernetes.io/name: project-v4-multigroup app.kubernetes.io/managed-by: kustomize name: crew-captain-viewer-role rules: diff --git a/testdata/project-v4-multigroup/config/rbac/fiz_bar_editor_role.yaml b/testdata/project-v4-multigroup/config/rbac/fiz_bar_editor_role.yaml index 004c80758a8..6ce5d8f2ef9 100644 --- a/testdata/project-v4-multigroup/config/rbac/fiz_bar_editor_role.yaml +++ b/testdata/project-v4-multigroup/config/rbac/fiz_bar_editor_role.yaml @@ -3,11 +3,7 @@ apiVersion: rbac.authorization.k8s.io/v1 kind: ClusterRole metadata: labels: - app.kubernetes.io/name: clusterrole - app.kubernetes.io/instance: bar-editor-role - app.kubernetes.io/component: rbac - app.kubernetes.io/created-by: project-v4-multigroup - app.kubernetes.io/part-of: project-v4-multigroup + app.kubernetes.io/name: project-v4-multigroup app.kubernetes.io/managed-by: kustomize name: fiz-bar-editor-role rules: diff --git a/testdata/project-v4-multigroup/config/rbac/fiz_bar_viewer_role.yaml b/testdata/project-v4-multigroup/config/rbac/fiz_bar_viewer_role.yaml index d6160fad409..744a0a955c0 100644 --- a/testdata/project-v4-multigroup/config/rbac/fiz_bar_viewer_role.yaml +++ b/testdata/project-v4-multigroup/config/rbac/fiz_bar_viewer_role.yaml @@ -3,11 +3,7 @@ apiVersion: rbac.authorization.k8s.io/v1 kind: ClusterRole metadata: labels: - app.kubernetes.io/name: clusterrole - app.kubernetes.io/instance: bar-viewer-role - app.kubernetes.io/component: rbac - app.kubernetes.io/created-by: project-v4-multigroup - app.kubernetes.io/part-of: project-v4-multigroup + app.kubernetes.io/name: project-v4-multigroup app.kubernetes.io/managed-by: kustomize name: fiz-bar-viewer-role rules: diff --git a/testdata/project-v4-multigroup/config/rbac/foo.policy_healthcheckpolicy_editor_role.yaml b/testdata/project-v4-multigroup/config/rbac/foo.policy_healthcheckpolicy_editor_role.yaml index 2c37beb5c2b..66fa7944f70 100644 --- a/testdata/project-v4-multigroup/config/rbac/foo.policy_healthcheckpolicy_editor_role.yaml +++ b/testdata/project-v4-multigroup/config/rbac/foo.policy_healthcheckpolicy_editor_role.yaml @@ -3,11 +3,7 @@ apiVersion: rbac.authorization.k8s.io/v1 kind: ClusterRole metadata: labels: - app.kubernetes.io/name: clusterrole - app.kubernetes.io/instance: healthcheckpolicy-editor-role - app.kubernetes.io/component: rbac - app.kubernetes.io/created-by: project-v4-multigroup - app.kubernetes.io/part-of: project-v4-multigroup + app.kubernetes.io/name: project-v4-multigroup app.kubernetes.io/managed-by: kustomize name: foo.policy-healthcheckpolicy-editor-role rules: diff --git a/testdata/project-v4-multigroup/config/rbac/foo.policy_healthcheckpolicy_viewer_role.yaml b/testdata/project-v4-multigroup/config/rbac/foo.policy_healthcheckpolicy_viewer_role.yaml index bc0610123ee..dff3ea7abc0 100644 --- a/testdata/project-v4-multigroup/config/rbac/foo.policy_healthcheckpolicy_viewer_role.yaml +++ b/testdata/project-v4-multigroup/config/rbac/foo.policy_healthcheckpolicy_viewer_role.yaml @@ -3,11 +3,7 @@ apiVersion: rbac.authorization.k8s.io/v1 kind: ClusterRole metadata: labels: - app.kubernetes.io/name: clusterrole - app.kubernetes.io/instance: healthcheckpolicy-viewer-role - app.kubernetes.io/component: rbac - app.kubernetes.io/created-by: project-v4-multigroup - app.kubernetes.io/part-of: project-v4-multigroup + app.kubernetes.io/name: project-v4-multigroup app.kubernetes.io/managed-by: kustomize name: foo.policy-healthcheckpolicy-viewer-role rules: diff --git a/testdata/project-v4-multigroup/config/rbac/foo_bar_editor_role.yaml b/testdata/project-v4-multigroup/config/rbac/foo_bar_editor_role.yaml index ec070318f27..f05089941a4 100644 --- a/testdata/project-v4-multigroup/config/rbac/foo_bar_editor_role.yaml +++ b/testdata/project-v4-multigroup/config/rbac/foo_bar_editor_role.yaml @@ -3,11 +3,7 @@ apiVersion: rbac.authorization.k8s.io/v1 kind: ClusterRole metadata: labels: - app.kubernetes.io/name: clusterrole - app.kubernetes.io/instance: bar-editor-role - app.kubernetes.io/component: rbac - app.kubernetes.io/created-by: project-v4-multigroup - app.kubernetes.io/part-of: project-v4-multigroup + app.kubernetes.io/name: project-v4-multigroup app.kubernetes.io/managed-by: kustomize name: foo-bar-editor-role rules: diff --git a/testdata/project-v4-multigroup/config/rbac/foo_bar_viewer_role.yaml b/testdata/project-v4-multigroup/config/rbac/foo_bar_viewer_role.yaml index 7727898a8f6..eabf9ee517b 100644 --- a/testdata/project-v4-multigroup/config/rbac/foo_bar_viewer_role.yaml +++ b/testdata/project-v4-multigroup/config/rbac/foo_bar_viewer_role.yaml @@ -3,11 +3,7 @@ apiVersion: rbac.authorization.k8s.io/v1 kind: ClusterRole metadata: labels: - app.kubernetes.io/name: clusterrole - app.kubernetes.io/instance: bar-viewer-role - app.kubernetes.io/component: rbac - app.kubernetes.io/created-by: project-v4-multigroup - app.kubernetes.io/part-of: project-v4-multigroup + app.kubernetes.io/name: project-v4-multigroup app.kubernetes.io/managed-by: kustomize name: foo-bar-viewer-role rules: diff --git a/testdata/project-v4-multigroup/config/rbac/lakers_editor_role.yaml b/testdata/project-v4-multigroup/config/rbac/lakers_editor_role.yaml index 916ecfe0cb5..d2ee17631dd 100644 --- a/testdata/project-v4-multigroup/config/rbac/lakers_editor_role.yaml +++ b/testdata/project-v4-multigroup/config/rbac/lakers_editor_role.yaml @@ -3,11 +3,7 @@ apiVersion: rbac.authorization.k8s.io/v1 kind: ClusterRole metadata: labels: - app.kubernetes.io/name: clusterrole - app.kubernetes.io/instance: lakers-editor-role - app.kubernetes.io/component: rbac - app.kubernetes.io/created-by: project-v4-multigroup - app.kubernetes.io/part-of: project-v4-multigroup + app.kubernetes.io/name: project-v4-multigroup app.kubernetes.io/managed-by: kustomize name: lakers-editor-role rules: diff --git a/testdata/project-v4-multigroup/config/rbac/lakers_viewer_role.yaml b/testdata/project-v4-multigroup/config/rbac/lakers_viewer_role.yaml index f3c0846c3d0..3097aa81c5e 100644 --- a/testdata/project-v4-multigroup/config/rbac/lakers_viewer_role.yaml +++ b/testdata/project-v4-multigroup/config/rbac/lakers_viewer_role.yaml @@ -3,11 +3,7 @@ apiVersion: rbac.authorization.k8s.io/v1 kind: ClusterRole metadata: labels: - app.kubernetes.io/name: clusterrole - app.kubernetes.io/instance: lakers-viewer-role - app.kubernetes.io/component: rbac - app.kubernetes.io/created-by: project-v4-multigroup - app.kubernetes.io/part-of: project-v4-multigroup + app.kubernetes.io/name: project-v4-multigroup app.kubernetes.io/managed-by: kustomize name: lakers-viewer-role rules: diff --git a/testdata/project-v4-multigroup/config/rbac/leader_election_role.yaml b/testdata/project-v4-multigroup/config/rbac/leader_election_role.yaml index c1d90a40792..14015b3499d 100644 --- a/testdata/project-v4-multigroup/config/rbac/leader_election_role.yaml +++ b/testdata/project-v4-multigroup/config/rbac/leader_election_role.yaml @@ -3,11 +3,7 @@ apiVersion: rbac.authorization.k8s.io/v1 kind: Role metadata: labels: - app.kubernetes.io/name: role - app.kubernetes.io/instance: leader-election-role - app.kubernetes.io/component: rbac - app.kubernetes.io/created-by: project-v4-multigroup - app.kubernetes.io/part-of: project-v4-multigroup + app.kubernetes.io/name: project-v4-multigroup app.kubernetes.io/managed-by: kustomize name: leader-election-role rules: diff --git a/testdata/project-v4-multigroup/config/rbac/leader_election_role_binding.yaml b/testdata/project-v4-multigroup/config/rbac/leader_election_role_binding.yaml index 20458efc82d..7af36fa2d81 100644 --- a/testdata/project-v4-multigroup/config/rbac/leader_election_role_binding.yaml +++ b/testdata/project-v4-multigroup/config/rbac/leader_election_role_binding.yaml @@ -2,11 +2,7 @@ apiVersion: rbac.authorization.k8s.io/v1 kind: RoleBinding metadata: labels: - app.kubernetes.io/name: rolebinding - app.kubernetes.io/instance: leader-election-rolebinding - app.kubernetes.io/component: rbac - app.kubernetes.io/created-by: project-v4-multigroup - app.kubernetes.io/part-of: project-v4-multigroup + app.kubernetes.io/name: project-v4-multigroup app.kubernetes.io/managed-by: kustomize name: leader-election-rolebinding roleRef: diff --git a/testdata/project-v4-multigroup/config/rbac/role_binding.yaml b/testdata/project-v4-multigroup/config/rbac/role_binding.yaml index 68aa48df1e3..ae53b6529da 100644 --- a/testdata/project-v4-multigroup/config/rbac/role_binding.yaml +++ b/testdata/project-v4-multigroup/config/rbac/role_binding.yaml @@ -2,11 +2,7 @@ apiVersion: rbac.authorization.k8s.io/v1 kind: ClusterRoleBinding metadata: labels: - app.kubernetes.io/name: clusterrolebinding - app.kubernetes.io/instance: manager-rolebinding - app.kubernetes.io/component: rbac - app.kubernetes.io/created-by: project-v4-multigroup - app.kubernetes.io/part-of: project-v4-multigroup + app.kubernetes.io/name: project-v4-multigroup app.kubernetes.io/managed-by: kustomize name: manager-rolebinding roleRef: diff --git a/testdata/project-v4-multigroup/config/rbac/sea-creatures_kraken_editor_role.yaml b/testdata/project-v4-multigroup/config/rbac/sea-creatures_kraken_editor_role.yaml index 0d7d67b0137..1d372dccf66 100644 --- a/testdata/project-v4-multigroup/config/rbac/sea-creatures_kraken_editor_role.yaml +++ b/testdata/project-v4-multigroup/config/rbac/sea-creatures_kraken_editor_role.yaml @@ -3,11 +3,7 @@ apiVersion: rbac.authorization.k8s.io/v1 kind: ClusterRole metadata: labels: - app.kubernetes.io/name: clusterrole - app.kubernetes.io/instance: kraken-editor-role - app.kubernetes.io/component: rbac - app.kubernetes.io/created-by: project-v4-multigroup - app.kubernetes.io/part-of: project-v4-multigroup + app.kubernetes.io/name: project-v4-multigroup app.kubernetes.io/managed-by: kustomize name: sea-creatures-kraken-editor-role rules: diff --git a/testdata/project-v4-multigroup/config/rbac/sea-creatures_kraken_viewer_role.yaml b/testdata/project-v4-multigroup/config/rbac/sea-creatures_kraken_viewer_role.yaml index c4643dcaa1e..a65c4916546 100644 --- a/testdata/project-v4-multigroup/config/rbac/sea-creatures_kraken_viewer_role.yaml +++ b/testdata/project-v4-multigroup/config/rbac/sea-creatures_kraken_viewer_role.yaml @@ -3,11 +3,7 @@ apiVersion: rbac.authorization.k8s.io/v1 kind: ClusterRole metadata: labels: - app.kubernetes.io/name: clusterrole - app.kubernetes.io/instance: kraken-viewer-role - app.kubernetes.io/component: rbac - app.kubernetes.io/created-by: project-v4-multigroup - app.kubernetes.io/part-of: project-v4-multigroup + app.kubernetes.io/name: project-v4-multigroup app.kubernetes.io/managed-by: kustomize name: sea-creatures-kraken-viewer-role rules: diff --git a/testdata/project-v4-multigroup/config/rbac/sea-creatures_leviathan_editor_role.yaml b/testdata/project-v4-multigroup/config/rbac/sea-creatures_leviathan_editor_role.yaml index 7427f9588de..77d2ff19c22 100644 --- a/testdata/project-v4-multigroup/config/rbac/sea-creatures_leviathan_editor_role.yaml +++ b/testdata/project-v4-multigroup/config/rbac/sea-creatures_leviathan_editor_role.yaml @@ -3,11 +3,7 @@ apiVersion: rbac.authorization.k8s.io/v1 kind: ClusterRole metadata: labels: - app.kubernetes.io/name: clusterrole - app.kubernetes.io/instance: leviathan-editor-role - app.kubernetes.io/component: rbac - app.kubernetes.io/created-by: project-v4-multigroup - app.kubernetes.io/part-of: project-v4-multigroup + app.kubernetes.io/name: project-v4-multigroup app.kubernetes.io/managed-by: kustomize name: sea-creatures-leviathan-editor-role rules: diff --git a/testdata/project-v4-multigroup/config/rbac/sea-creatures_leviathan_viewer_role.yaml b/testdata/project-v4-multigroup/config/rbac/sea-creatures_leviathan_viewer_role.yaml index a1922888d9c..e0344e4699b 100644 --- a/testdata/project-v4-multigroup/config/rbac/sea-creatures_leviathan_viewer_role.yaml +++ b/testdata/project-v4-multigroup/config/rbac/sea-creatures_leviathan_viewer_role.yaml @@ -3,11 +3,7 @@ apiVersion: rbac.authorization.k8s.io/v1 kind: ClusterRole metadata: labels: - app.kubernetes.io/name: clusterrole - app.kubernetes.io/instance: leviathan-viewer-role - app.kubernetes.io/component: rbac - app.kubernetes.io/created-by: project-v4-multigroup - app.kubernetes.io/part-of: project-v4-multigroup + app.kubernetes.io/name: project-v4-multigroup app.kubernetes.io/managed-by: kustomize name: sea-creatures-leviathan-viewer-role rules: diff --git a/testdata/project-v4-multigroup/config/rbac/ship_cruiser_editor_role.yaml b/testdata/project-v4-multigroup/config/rbac/ship_cruiser_editor_role.yaml index 31b489d923c..32a0bcaf91e 100644 --- a/testdata/project-v4-multigroup/config/rbac/ship_cruiser_editor_role.yaml +++ b/testdata/project-v4-multigroup/config/rbac/ship_cruiser_editor_role.yaml @@ -3,11 +3,7 @@ apiVersion: rbac.authorization.k8s.io/v1 kind: ClusterRole metadata: labels: - app.kubernetes.io/name: clusterrole - app.kubernetes.io/instance: cruiser-editor-role - app.kubernetes.io/component: rbac - app.kubernetes.io/created-by: project-v4-multigroup - app.kubernetes.io/part-of: project-v4-multigroup + app.kubernetes.io/name: project-v4-multigroup app.kubernetes.io/managed-by: kustomize name: ship-cruiser-editor-role rules: diff --git a/testdata/project-v4-multigroup/config/rbac/ship_cruiser_viewer_role.yaml b/testdata/project-v4-multigroup/config/rbac/ship_cruiser_viewer_role.yaml index 6e93833d3f5..287ffcc397a 100644 --- a/testdata/project-v4-multigroup/config/rbac/ship_cruiser_viewer_role.yaml +++ b/testdata/project-v4-multigroup/config/rbac/ship_cruiser_viewer_role.yaml @@ -3,11 +3,7 @@ apiVersion: rbac.authorization.k8s.io/v1 kind: ClusterRole metadata: labels: - app.kubernetes.io/name: clusterrole - app.kubernetes.io/instance: cruiser-viewer-role - app.kubernetes.io/component: rbac - app.kubernetes.io/created-by: project-v4-multigroup - app.kubernetes.io/part-of: project-v4-multigroup + app.kubernetes.io/name: project-v4-multigroup app.kubernetes.io/managed-by: kustomize name: ship-cruiser-viewer-role rules: diff --git a/testdata/project-v4-multigroup/config/rbac/ship_destroyer_editor_role.yaml b/testdata/project-v4-multigroup/config/rbac/ship_destroyer_editor_role.yaml index f39e048d8d5..8b0aa1da540 100644 --- a/testdata/project-v4-multigroup/config/rbac/ship_destroyer_editor_role.yaml +++ b/testdata/project-v4-multigroup/config/rbac/ship_destroyer_editor_role.yaml @@ -3,11 +3,7 @@ apiVersion: rbac.authorization.k8s.io/v1 kind: ClusterRole metadata: labels: - app.kubernetes.io/name: clusterrole - app.kubernetes.io/instance: destroyer-editor-role - app.kubernetes.io/component: rbac - app.kubernetes.io/created-by: project-v4-multigroup - app.kubernetes.io/part-of: project-v4-multigroup + app.kubernetes.io/name: project-v4-multigroup app.kubernetes.io/managed-by: kustomize name: ship-destroyer-editor-role rules: diff --git a/testdata/project-v4-multigroup/config/rbac/ship_destroyer_viewer_role.yaml b/testdata/project-v4-multigroup/config/rbac/ship_destroyer_viewer_role.yaml index 682f09bb9c1..027ff57455a 100644 --- a/testdata/project-v4-multigroup/config/rbac/ship_destroyer_viewer_role.yaml +++ b/testdata/project-v4-multigroup/config/rbac/ship_destroyer_viewer_role.yaml @@ -3,11 +3,7 @@ apiVersion: rbac.authorization.k8s.io/v1 kind: ClusterRole metadata: labels: - app.kubernetes.io/name: clusterrole - app.kubernetes.io/instance: destroyer-viewer-role - app.kubernetes.io/component: rbac - app.kubernetes.io/created-by: project-v4-multigroup - app.kubernetes.io/part-of: project-v4-multigroup + app.kubernetes.io/name: project-v4-multigroup app.kubernetes.io/managed-by: kustomize name: ship-destroyer-viewer-role rules: diff --git a/testdata/project-v4-multigroup/config/rbac/ship_frigate_editor_role.yaml b/testdata/project-v4-multigroup/config/rbac/ship_frigate_editor_role.yaml index 1f7d76d728e..d0b243c8886 100644 --- a/testdata/project-v4-multigroup/config/rbac/ship_frigate_editor_role.yaml +++ b/testdata/project-v4-multigroup/config/rbac/ship_frigate_editor_role.yaml @@ -3,11 +3,7 @@ apiVersion: rbac.authorization.k8s.io/v1 kind: ClusterRole metadata: labels: - app.kubernetes.io/name: clusterrole - app.kubernetes.io/instance: frigate-editor-role - app.kubernetes.io/component: rbac - app.kubernetes.io/created-by: project-v4-multigroup - app.kubernetes.io/part-of: project-v4-multigroup + app.kubernetes.io/name: project-v4-multigroup app.kubernetes.io/managed-by: kustomize name: ship-frigate-editor-role rules: diff --git a/testdata/project-v4-multigroup/config/rbac/ship_frigate_viewer_role.yaml b/testdata/project-v4-multigroup/config/rbac/ship_frigate_viewer_role.yaml index 8eb231d9c45..f8d54802480 100644 --- a/testdata/project-v4-multigroup/config/rbac/ship_frigate_viewer_role.yaml +++ b/testdata/project-v4-multigroup/config/rbac/ship_frigate_viewer_role.yaml @@ -3,11 +3,7 @@ apiVersion: rbac.authorization.k8s.io/v1 kind: ClusterRole metadata: labels: - app.kubernetes.io/name: clusterrole - app.kubernetes.io/instance: frigate-viewer-role - app.kubernetes.io/component: rbac - app.kubernetes.io/created-by: project-v4-multigroup - app.kubernetes.io/part-of: project-v4-multigroup + app.kubernetes.io/name: project-v4-multigroup app.kubernetes.io/managed-by: kustomize name: ship-frigate-viewer-role rules: diff --git a/testdata/project-v4-multigroup/dist/install.yaml b/testdata/project-v4-multigroup/dist/install.yaml index 28c4aca2293..e2584bdeac2 100644 --- a/testdata/project-v4-multigroup/dist/install.yaml +++ b/testdata/project-v4-multigroup/dist/install.yaml @@ -2,12 +2,8 @@ apiVersion: v1 kind: Namespace metadata: labels: - app.kubernetes.io/component: manager - app.kubernetes.io/created-by: project-v4-multigroup - app.kubernetes.io/instance: system app.kubernetes.io/managed-by: kustomize - app.kubernetes.io/name: namespace - app.kubernetes.io/part-of: project-v4-multigroup + app.kubernetes.io/name: project-v4-multigroup control-plane: controller-manager name: project-v4-multigroup-system --- @@ -614,12 +610,8 @@ apiVersion: rbac.authorization.k8s.io/v1 kind: Role metadata: labels: - app.kubernetes.io/component: rbac - app.kubernetes.io/created-by: project-v4-multigroup - app.kubernetes.io/instance: leader-election-role app.kubernetes.io/managed-by: kustomize - app.kubernetes.io/name: role - app.kubernetes.io/part-of: project-v4-multigroup + app.kubernetes.io/name: project-v4-multigroup name: project-v4-multigroup-leader-election-role namespace: project-v4-multigroup-system rules: @@ -659,12 +651,8 @@ apiVersion: rbac.authorization.k8s.io/v1 kind: ClusterRole metadata: labels: - app.kubernetes.io/component: rbac - app.kubernetes.io/created-by: project-v4-multigroup - app.kubernetes.io/instance: captain-editor-role app.kubernetes.io/managed-by: kustomize - app.kubernetes.io/name: clusterrole - app.kubernetes.io/part-of: project-v4-multigroup + app.kubernetes.io/name: project-v4-multigroup name: project-v4-multigroup-crew-captain-editor-role rules: - apiGroups: @@ -690,12 +678,8 @@ apiVersion: rbac.authorization.k8s.io/v1 kind: ClusterRole metadata: labels: - app.kubernetes.io/component: rbac - app.kubernetes.io/created-by: project-v4-multigroup - app.kubernetes.io/instance: captain-viewer-role app.kubernetes.io/managed-by: kustomize - app.kubernetes.io/name: clusterrole - app.kubernetes.io/part-of: project-v4-multigroup + app.kubernetes.io/name: project-v4-multigroup name: project-v4-multigroup-crew-captain-viewer-role rules: - apiGroups: @@ -717,12 +701,8 @@ apiVersion: rbac.authorization.k8s.io/v1 kind: ClusterRole metadata: labels: - app.kubernetes.io/component: rbac - app.kubernetes.io/created-by: project-v4-multigroup - app.kubernetes.io/instance: bar-editor-role app.kubernetes.io/managed-by: kustomize - app.kubernetes.io/name: clusterrole - app.kubernetes.io/part-of: project-v4-multigroup + app.kubernetes.io/name: project-v4-multigroup name: project-v4-multigroup-fiz-bar-editor-role rules: - apiGroups: @@ -748,12 +728,8 @@ apiVersion: rbac.authorization.k8s.io/v1 kind: ClusterRole metadata: labels: - app.kubernetes.io/component: rbac - app.kubernetes.io/created-by: project-v4-multigroup - app.kubernetes.io/instance: bar-viewer-role app.kubernetes.io/managed-by: kustomize - app.kubernetes.io/name: clusterrole - app.kubernetes.io/part-of: project-v4-multigroup + app.kubernetes.io/name: project-v4-multigroup name: project-v4-multigroup-fiz-bar-viewer-role rules: - apiGroups: @@ -775,12 +751,8 @@ apiVersion: rbac.authorization.k8s.io/v1 kind: ClusterRole metadata: labels: - app.kubernetes.io/component: rbac - app.kubernetes.io/created-by: project-v4-multigroup - app.kubernetes.io/instance: bar-editor-role app.kubernetes.io/managed-by: kustomize - app.kubernetes.io/name: clusterrole - app.kubernetes.io/part-of: project-v4-multigroup + app.kubernetes.io/name: project-v4-multigroup name: project-v4-multigroup-foo-bar-editor-role rules: - apiGroups: @@ -806,12 +778,8 @@ apiVersion: rbac.authorization.k8s.io/v1 kind: ClusterRole metadata: labels: - app.kubernetes.io/component: rbac - app.kubernetes.io/created-by: project-v4-multigroup - app.kubernetes.io/instance: bar-viewer-role app.kubernetes.io/managed-by: kustomize - app.kubernetes.io/name: clusterrole - app.kubernetes.io/part-of: project-v4-multigroup + app.kubernetes.io/name: project-v4-multigroup name: project-v4-multigroup-foo-bar-viewer-role rules: - apiGroups: @@ -833,12 +801,8 @@ apiVersion: rbac.authorization.k8s.io/v1 kind: ClusterRole metadata: labels: - app.kubernetes.io/component: rbac - app.kubernetes.io/created-by: project-v4-multigroup - app.kubernetes.io/instance: healthcheckpolicy-editor-role app.kubernetes.io/managed-by: kustomize - app.kubernetes.io/name: clusterrole - app.kubernetes.io/part-of: project-v4-multigroup + app.kubernetes.io/name: project-v4-multigroup name: project-v4-multigroup-foo.policy-healthcheckpolicy-editor-role rules: - apiGroups: @@ -864,12 +828,8 @@ apiVersion: rbac.authorization.k8s.io/v1 kind: ClusterRole metadata: labels: - app.kubernetes.io/component: rbac - app.kubernetes.io/created-by: project-v4-multigroup - app.kubernetes.io/instance: healthcheckpolicy-viewer-role app.kubernetes.io/managed-by: kustomize - app.kubernetes.io/name: clusterrole - app.kubernetes.io/part-of: project-v4-multigroup + app.kubernetes.io/name: project-v4-multigroup name: project-v4-multigroup-foo.policy-healthcheckpolicy-viewer-role rules: - apiGroups: @@ -891,12 +851,8 @@ apiVersion: rbac.authorization.k8s.io/v1 kind: ClusterRole metadata: labels: - app.kubernetes.io/component: rbac - app.kubernetes.io/created-by: project-v4-multigroup - app.kubernetes.io/instance: lakers-editor-role app.kubernetes.io/managed-by: kustomize - app.kubernetes.io/name: clusterrole - app.kubernetes.io/part-of: project-v4-multigroup + app.kubernetes.io/name: project-v4-multigroup name: project-v4-multigroup-lakers-editor-role rules: - apiGroups: @@ -922,12 +878,8 @@ apiVersion: rbac.authorization.k8s.io/v1 kind: ClusterRole metadata: labels: - app.kubernetes.io/component: rbac - app.kubernetes.io/created-by: project-v4-multigroup - app.kubernetes.io/instance: lakers-viewer-role app.kubernetes.io/managed-by: kustomize - app.kubernetes.io/name: clusterrole - app.kubernetes.io/part-of: project-v4-multigroup + app.kubernetes.io/name: project-v4-multigroup name: project-v4-multigroup-lakers-viewer-role rules: - apiGroups: @@ -1241,12 +1193,8 @@ apiVersion: rbac.authorization.k8s.io/v1 kind: ClusterRole metadata: labels: - app.kubernetes.io/component: kube-rbac-proxy - app.kubernetes.io/created-by: project-v4-multigroup - app.kubernetes.io/instance: metrics-reader app.kubernetes.io/managed-by: kustomize - app.kubernetes.io/name: clusterrole - app.kubernetes.io/part-of: project-v4-multigroup + app.kubernetes.io/name: project-v4-multigroup name: project-v4-multigroup-metrics-reader rules: - nonResourceURLs: @@ -1258,12 +1206,8 @@ apiVersion: rbac.authorization.k8s.io/v1 kind: ClusterRole metadata: labels: - app.kubernetes.io/component: kube-rbac-proxy - app.kubernetes.io/created-by: project-v4-multigroup - app.kubernetes.io/instance: proxy-role app.kubernetes.io/managed-by: kustomize - app.kubernetes.io/name: clusterrole - app.kubernetes.io/part-of: project-v4-multigroup + app.kubernetes.io/name: project-v4-multigroup name: project-v4-multigroup-proxy-role rules: - apiGroups: @@ -1283,12 +1227,8 @@ apiVersion: rbac.authorization.k8s.io/v1 kind: ClusterRole metadata: labels: - app.kubernetes.io/component: rbac - app.kubernetes.io/created-by: project-v4-multigroup - app.kubernetes.io/instance: kraken-editor-role app.kubernetes.io/managed-by: kustomize - app.kubernetes.io/name: clusterrole - app.kubernetes.io/part-of: project-v4-multigroup + app.kubernetes.io/name: project-v4-multigroup name: project-v4-multigroup-sea-creatures-kraken-editor-role rules: - apiGroups: @@ -1314,12 +1254,8 @@ apiVersion: rbac.authorization.k8s.io/v1 kind: ClusterRole metadata: labels: - app.kubernetes.io/component: rbac - app.kubernetes.io/created-by: project-v4-multigroup - app.kubernetes.io/instance: kraken-viewer-role app.kubernetes.io/managed-by: kustomize - app.kubernetes.io/name: clusterrole - app.kubernetes.io/part-of: project-v4-multigroup + app.kubernetes.io/name: project-v4-multigroup name: project-v4-multigroup-sea-creatures-kraken-viewer-role rules: - apiGroups: @@ -1341,12 +1277,8 @@ apiVersion: rbac.authorization.k8s.io/v1 kind: ClusterRole metadata: labels: - app.kubernetes.io/component: rbac - app.kubernetes.io/created-by: project-v4-multigroup - app.kubernetes.io/instance: leviathan-editor-role app.kubernetes.io/managed-by: kustomize - app.kubernetes.io/name: clusterrole - app.kubernetes.io/part-of: project-v4-multigroup + app.kubernetes.io/name: project-v4-multigroup name: project-v4-multigroup-sea-creatures-leviathan-editor-role rules: - apiGroups: @@ -1372,12 +1304,8 @@ apiVersion: rbac.authorization.k8s.io/v1 kind: ClusterRole metadata: labels: - app.kubernetes.io/component: rbac - app.kubernetes.io/created-by: project-v4-multigroup - app.kubernetes.io/instance: leviathan-viewer-role app.kubernetes.io/managed-by: kustomize - app.kubernetes.io/name: clusterrole - app.kubernetes.io/part-of: project-v4-multigroup + app.kubernetes.io/name: project-v4-multigroup name: project-v4-multigroup-sea-creatures-leviathan-viewer-role rules: - apiGroups: @@ -1399,12 +1327,8 @@ apiVersion: rbac.authorization.k8s.io/v1 kind: ClusterRole metadata: labels: - app.kubernetes.io/component: rbac - app.kubernetes.io/created-by: project-v4-multigroup - app.kubernetes.io/instance: cruiser-editor-role app.kubernetes.io/managed-by: kustomize - app.kubernetes.io/name: clusterrole - app.kubernetes.io/part-of: project-v4-multigroup + app.kubernetes.io/name: project-v4-multigroup name: project-v4-multigroup-ship-cruiser-editor-role rules: - apiGroups: @@ -1430,12 +1354,8 @@ apiVersion: rbac.authorization.k8s.io/v1 kind: ClusterRole metadata: labels: - app.kubernetes.io/component: rbac - app.kubernetes.io/created-by: project-v4-multigroup - app.kubernetes.io/instance: cruiser-viewer-role app.kubernetes.io/managed-by: kustomize - app.kubernetes.io/name: clusterrole - app.kubernetes.io/part-of: project-v4-multigroup + app.kubernetes.io/name: project-v4-multigroup name: project-v4-multigroup-ship-cruiser-viewer-role rules: - apiGroups: @@ -1457,12 +1377,8 @@ apiVersion: rbac.authorization.k8s.io/v1 kind: ClusterRole metadata: labels: - app.kubernetes.io/component: rbac - app.kubernetes.io/created-by: project-v4-multigroup - app.kubernetes.io/instance: destroyer-editor-role app.kubernetes.io/managed-by: kustomize - app.kubernetes.io/name: clusterrole - app.kubernetes.io/part-of: project-v4-multigroup + app.kubernetes.io/name: project-v4-multigroup name: project-v4-multigroup-ship-destroyer-editor-role rules: - apiGroups: @@ -1488,12 +1404,8 @@ apiVersion: rbac.authorization.k8s.io/v1 kind: ClusterRole metadata: labels: - app.kubernetes.io/component: rbac - app.kubernetes.io/created-by: project-v4-multigroup - app.kubernetes.io/instance: destroyer-viewer-role app.kubernetes.io/managed-by: kustomize - app.kubernetes.io/name: clusterrole - app.kubernetes.io/part-of: project-v4-multigroup + app.kubernetes.io/name: project-v4-multigroup name: project-v4-multigroup-ship-destroyer-viewer-role rules: - apiGroups: @@ -1515,12 +1427,8 @@ apiVersion: rbac.authorization.k8s.io/v1 kind: ClusterRole metadata: labels: - app.kubernetes.io/component: rbac - app.kubernetes.io/created-by: project-v4-multigroup - app.kubernetes.io/instance: frigate-editor-role app.kubernetes.io/managed-by: kustomize - app.kubernetes.io/name: clusterrole - app.kubernetes.io/part-of: project-v4-multigroup + app.kubernetes.io/name: project-v4-multigroup name: project-v4-multigroup-ship-frigate-editor-role rules: - apiGroups: @@ -1546,12 +1454,8 @@ apiVersion: rbac.authorization.k8s.io/v1 kind: ClusterRole metadata: labels: - app.kubernetes.io/component: rbac - app.kubernetes.io/created-by: project-v4-multigroup - app.kubernetes.io/instance: frigate-viewer-role app.kubernetes.io/managed-by: kustomize - app.kubernetes.io/name: clusterrole - app.kubernetes.io/part-of: project-v4-multigroup + app.kubernetes.io/name: project-v4-multigroup name: project-v4-multigroup-ship-frigate-viewer-role rules: - apiGroups: @@ -1573,12 +1477,8 @@ apiVersion: rbac.authorization.k8s.io/v1 kind: RoleBinding metadata: labels: - app.kubernetes.io/component: rbac - app.kubernetes.io/created-by: project-v4-multigroup - app.kubernetes.io/instance: leader-election-rolebinding app.kubernetes.io/managed-by: kustomize - app.kubernetes.io/name: rolebinding - app.kubernetes.io/part-of: project-v4-multigroup + app.kubernetes.io/name: project-v4-multigroup name: project-v4-multigroup-leader-election-rolebinding namespace: project-v4-multigroup-system roleRef: @@ -1594,12 +1494,8 @@ apiVersion: rbac.authorization.k8s.io/v1 kind: ClusterRoleBinding metadata: labels: - app.kubernetes.io/component: rbac - app.kubernetes.io/created-by: project-v4-multigroup - app.kubernetes.io/instance: manager-rolebinding app.kubernetes.io/managed-by: kustomize - app.kubernetes.io/name: clusterrolebinding - app.kubernetes.io/part-of: project-v4-multigroup + app.kubernetes.io/name: project-v4-multigroup name: project-v4-multigroup-manager-rolebinding roleRef: apiGroup: rbac.authorization.k8s.io @@ -1614,12 +1510,8 @@ apiVersion: rbac.authorization.k8s.io/v1 kind: ClusterRoleBinding metadata: labels: - app.kubernetes.io/component: kube-rbac-proxy - app.kubernetes.io/created-by: project-v4-multigroup - app.kubernetes.io/instance: proxy-rolebinding app.kubernetes.io/managed-by: kustomize - app.kubernetes.io/name: clusterrolebinding - app.kubernetes.io/part-of: project-v4-multigroup + app.kubernetes.io/name: project-v4-multigroup name: project-v4-multigroup-proxy-rolebinding roleRef: apiGroup: rbac.authorization.k8s.io @@ -1634,12 +1526,8 @@ apiVersion: v1 kind: Service metadata: labels: - app.kubernetes.io/component: kube-rbac-proxy - app.kubernetes.io/created-by: project-v4-multigroup - app.kubernetes.io/instance: controller-manager-metrics-service app.kubernetes.io/managed-by: kustomize - app.kubernetes.io/name: service - app.kubernetes.io/part-of: project-v4-multigroup + app.kubernetes.io/name: project-v4-multigroup control-plane: controller-manager name: project-v4-multigroup-controller-manager-metrics-service namespace: project-v4-multigroup-system @@ -1672,12 +1560,8 @@ apiVersion: apps/v1 kind: Deployment metadata: labels: - app.kubernetes.io/component: manager - app.kubernetes.io/created-by: project-v4-multigroup - app.kubernetes.io/instance: controller-manager app.kubernetes.io/managed-by: kustomize - app.kubernetes.io/name: deployment - app.kubernetes.io/part-of: project-v4-multigroup + app.kubernetes.io/name: project-v4-multigroup control-plane: controller-manager name: project-v4-multigroup-controller-manager namespace: project-v4-multigroup-system diff --git a/testdata/project-v4-with-deploy-image/config/certmanager/certificate.yaml b/testdata/project-v4-with-deploy-image/config/certmanager/certificate.yaml index 12e376b4912..57aab1d5e54 100644 --- a/testdata/project-v4-with-deploy-image/config/certmanager/certificate.yaml +++ b/testdata/project-v4-with-deploy-image/config/certmanager/certificate.yaml @@ -5,11 +5,7 @@ apiVersion: cert-manager.io/v1 kind: Issuer metadata: labels: - app.kubernetes.io/name: certificate - app.kubernetes.io/instance: serving-cert - app.kubernetes.io/component: certificate - app.kubernetes.io/created-by: project-v4-with-deploy-image - app.kubernetes.io/part-of: project-v4-with-deploy-image + app.kubernetes.io/name: project-v4-with-deploy-image app.kubernetes.io/managed-by: kustomize name: selfsigned-issuer namespace: system diff --git a/testdata/project-v4-with-deploy-image/config/default/webhookcainjection_patch.yaml b/testdata/project-v4-with-deploy-image/config/default/webhookcainjection_patch.yaml index fff7f0f9270..b2301beb6c6 100644 --- a/testdata/project-v4-with-deploy-image/config/default/webhookcainjection_patch.yaml +++ b/testdata/project-v4-with-deploy-image/config/default/webhookcainjection_patch.yaml @@ -4,11 +4,7 @@ apiVersion: admissionregistration.k8s.io/v1 kind: MutatingWebhookConfiguration metadata: labels: - app.kubernetes.io/name: mutatingwebhookconfiguration - app.kubernetes.io/instance: mutating-webhook-configuration - app.kubernetes.io/component: webhook - app.kubernetes.io/created-by: project-v4-with-deploy-image - app.kubernetes.io/part-of: project-v4-with-deploy-image + app.kubernetes.io/name: project-v4-with-deploy-image app.kubernetes.io/managed-by: kustomize name: mutating-webhook-configuration annotations: diff --git a/testdata/project-v4-with-deploy-image/config/manager/manager.yaml b/testdata/project-v4-with-deploy-image/config/manager/manager.yaml index 307a8d4cbd0..f232684fa6b 100644 --- a/testdata/project-v4-with-deploy-image/config/manager/manager.yaml +++ b/testdata/project-v4-with-deploy-image/config/manager/manager.yaml @@ -3,11 +3,7 @@ kind: Namespace metadata: labels: control-plane: controller-manager - app.kubernetes.io/name: namespace - app.kubernetes.io/instance: system - app.kubernetes.io/component: manager - app.kubernetes.io/created-by: project-v4-with-deploy-image - app.kubernetes.io/part-of: project-v4-with-deploy-image + app.kubernetes.io/name: project-v4-with-deploy-image app.kubernetes.io/managed-by: kustomize name: system --- @@ -18,11 +14,7 @@ metadata: namespace: system labels: control-plane: controller-manager - app.kubernetes.io/name: deployment - app.kubernetes.io/instance: controller-manager - app.kubernetes.io/component: manager - app.kubernetes.io/created-by: project-v4-with-deploy-image - app.kubernetes.io/part-of: project-v4-with-deploy-image + app.kubernetes.io/name: project-v4-with-deploy-image app.kubernetes.io/managed-by: kustomize spec: selector: diff --git a/testdata/project-v4-with-deploy-image/config/prometheus/monitor.yaml b/testdata/project-v4-with-deploy-image/config/prometheus/monitor.yaml index 7f52a66ad36..0f805f2c2e7 100644 --- a/testdata/project-v4-with-deploy-image/config/prometheus/monitor.yaml +++ b/testdata/project-v4-with-deploy-image/config/prometheus/monitor.yaml @@ -4,11 +4,7 @@ kind: ServiceMonitor metadata: labels: control-plane: controller-manager - app.kubernetes.io/name: servicemonitor - app.kubernetes.io/instance: controller-manager-metrics-monitor - app.kubernetes.io/component: metrics - app.kubernetes.io/created-by: project-v4-with-deploy-image - app.kubernetes.io/part-of: project-v4-with-deploy-image + app.kubernetes.io/name: project-v4-with-deploy-image app.kubernetes.io/managed-by: kustomize name: controller-manager-metrics-monitor namespace: system diff --git a/testdata/project-v4-with-deploy-image/config/rbac/auth_proxy_client_clusterrole.yaml b/testdata/project-v4-with-deploy-image/config/rbac/auth_proxy_client_clusterrole.yaml index 3b930da4bb1..b439cad7f2c 100644 --- a/testdata/project-v4-with-deploy-image/config/rbac/auth_proxy_client_clusterrole.yaml +++ b/testdata/project-v4-with-deploy-image/config/rbac/auth_proxy_client_clusterrole.yaml @@ -2,11 +2,7 @@ apiVersion: rbac.authorization.k8s.io/v1 kind: ClusterRole metadata: labels: - app.kubernetes.io/name: clusterrole - app.kubernetes.io/instance: metrics-reader - app.kubernetes.io/component: kube-rbac-proxy - app.kubernetes.io/created-by: project-v4-with-deploy-image - app.kubernetes.io/part-of: project-v4-with-deploy-image + app.kubernetes.io/name: project-v4-with-deploy-image app.kubernetes.io/managed-by: kustomize name: metrics-reader rules: diff --git a/testdata/project-v4-with-deploy-image/config/rbac/auth_proxy_role.yaml b/testdata/project-v4-with-deploy-image/config/rbac/auth_proxy_role.yaml index 149a84a43c5..438d9bd0702 100644 --- a/testdata/project-v4-with-deploy-image/config/rbac/auth_proxy_role.yaml +++ b/testdata/project-v4-with-deploy-image/config/rbac/auth_proxy_role.yaml @@ -2,11 +2,7 @@ apiVersion: rbac.authorization.k8s.io/v1 kind: ClusterRole metadata: labels: - app.kubernetes.io/name: clusterrole - app.kubernetes.io/instance: proxy-role - app.kubernetes.io/component: kube-rbac-proxy - app.kubernetes.io/created-by: project-v4-with-deploy-image - app.kubernetes.io/part-of: project-v4-with-deploy-image + app.kubernetes.io/name: project-v4-with-deploy-image app.kubernetes.io/managed-by: kustomize name: proxy-role rules: diff --git a/testdata/project-v4-with-deploy-image/config/rbac/auth_proxy_role_binding.yaml b/testdata/project-v4-with-deploy-image/config/rbac/auth_proxy_role_binding.yaml index 450754625d0..3be0002395d 100644 --- a/testdata/project-v4-with-deploy-image/config/rbac/auth_proxy_role_binding.yaml +++ b/testdata/project-v4-with-deploy-image/config/rbac/auth_proxy_role_binding.yaml @@ -2,11 +2,7 @@ apiVersion: rbac.authorization.k8s.io/v1 kind: ClusterRoleBinding metadata: labels: - app.kubernetes.io/name: clusterrolebinding - app.kubernetes.io/instance: proxy-rolebinding - app.kubernetes.io/component: kube-rbac-proxy - app.kubernetes.io/created-by: project-v4-with-deploy-image - app.kubernetes.io/part-of: project-v4-with-deploy-image + app.kubernetes.io/name: project-v4-with-deploy-image app.kubernetes.io/managed-by: kustomize name: proxy-rolebinding roleRef: diff --git a/testdata/project-v4-with-deploy-image/config/rbac/auth_proxy_service.yaml b/testdata/project-v4-with-deploy-image/config/rbac/auth_proxy_service.yaml index ac5f66d3182..80efb4fa08c 100644 --- a/testdata/project-v4-with-deploy-image/config/rbac/auth_proxy_service.yaml +++ b/testdata/project-v4-with-deploy-image/config/rbac/auth_proxy_service.yaml @@ -3,11 +3,7 @@ kind: Service metadata: labels: control-plane: controller-manager - app.kubernetes.io/name: service - app.kubernetes.io/instance: controller-manager-metrics-service - app.kubernetes.io/component: kube-rbac-proxy - app.kubernetes.io/created-by: project-v4-with-deploy-image - app.kubernetes.io/part-of: project-v4-with-deploy-image + app.kubernetes.io/name: project-v4-with-deploy-image app.kubernetes.io/managed-by: kustomize name: controller-manager-metrics-service namespace: system diff --git a/testdata/project-v4-with-deploy-image/config/rbac/busybox_editor_role.yaml b/testdata/project-v4-with-deploy-image/config/rbac/busybox_editor_role.yaml index 18495166a24..1148b24f263 100644 --- a/testdata/project-v4-with-deploy-image/config/rbac/busybox_editor_role.yaml +++ b/testdata/project-v4-with-deploy-image/config/rbac/busybox_editor_role.yaml @@ -3,11 +3,7 @@ apiVersion: rbac.authorization.k8s.io/v1 kind: ClusterRole metadata: labels: - app.kubernetes.io/name: clusterrole - app.kubernetes.io/instance: busybox-editor-role - app.kubernetes.io/component: rbac - app.kubernetes.io/created-by: project-v4-with-deploy-image - app.kubernetes.io/part-of: project-v4-with-deploy-image + app.kubernetes.io/name: project-v4-with-deploy-image app.kubernetes.io/managed-by: kustomize name: busybox-editor-role rules: diff --git a/testdata/project-v4-with-deploy-image/config/rbac/busybox_viewer_role.yaml b/testdata/project-v4-with-deploy-image/config/rbac/busybox_viewer_role.yaml index 0f1e7690dbb..cb50fa03407 100644 --- a/testdata/project-v4-with-deploy-image/config/rbac/busybox_viewer_role.yaml +++ b/testdata/project-v4-with-deploy-image/config/rbac/busybox_viewer_role.yaml @@ -3,11 +3,7 @@ apiVersion: rbac.authorization.k8s.io/v1 kind: ClusterRole metadata: labels: - app.kubernetes.io/name: clusterrole - app.kubernetes.io/instance: busybox-viewer-role - app.kubernetes.io/component: rbac - app.kubernetes.io/created-by: project-v4-with-deploy-image - app.kubernetes.io/part-of: project-v4-with-deploy-image + app.kubernetes.io/name: project-v4-with-deploy-image app.kubernetes.io/managed-by: kustomize name: busybox-viewer-role rules: diff --git a/testdata/project-v4-with-deploy-image/config/rbac/leader_election_role.yaml b/testdata/project-v4-with-deploy-image/config/rbac/leader_election_role.yaml index 8865042f191..260a6f9e5db 100644 --- a/testdata/project-v4-with-deploy-image/config/rbac/leader_election_role.yaml +++ b/testdata/project-v4-with-deploy-image/config/rbac/leader_election_role.yaml @@ -3,11 +3,7 @@ apiVersion: rbac.authorization.k8s.io/v1 kind: Role metadata: labels: - app.kubernetes.io/name: role - app.kubernetes.io/instance: leader-election-role - app.kubernetes.io/component: rbac - app.kubernetes.io/created-by: project-v4-with-deploy-image - app.kubernetes.io/part-of: project-v4-with-deploy-image + app.kubernetes.io/name: project-v4-with-deploy-image app.kubernetes.io/managed-by: kustomize name: leader-election-role rules: diff --git a/testdata/project-v4-with-deploy-image/config/rbac/leader_election_role_binding.yaml b/testdata/project-v4-with-deploy-image/config/rbac/leader_election_role_binding.yaml index af1363343b9..c3425c4bcc0 100644 --- a/testdata/project-v4-with-deploy-image/config/rbac/leader_election_role_binding.yaml +++ b/testdata/project-v4-with-deploy-image/config/rbac/leader_election_role_binding.yaml @@ -2,11 +2,7 @@ apiVersion: rbac.authorization.k8s.io/v1 kind: RoleBinding metadata: labels: - app.kubernetes.io/name: rolebinding - app.kubernetes.io/instance: leader-election-rolebinding - app.kubernetes.io/component: rbac - app.kubernetes.io/created-by: project-v4-with-deploy-image - app.kubernetes.io/part-of: project-v4-with-deploy-image + app.kubernetes.io/name: project-v4-with-deploy-image app.kubernetes.io/managed-by: kustomize name: leader-election-rolebinding roleRef: diff --git a/testdata/project-v4-with-deploy-image/config/rbac/memcached_editor_role.yaml b/testdata/project-v4-with-deploy-image/config/rbac/memcached_editor_role.yaml index 523ecd3275f..49009c8a25e 100644 --- a/testdata/project-v4-with-deploy-image/config/rbac/memcached_editor_role.yaml +++ b/testdata/project-v4-with-deploy-image/config/rbac/memcached_editor_role.yaml @@ -3,11 +3,7 @@ apiVersion: rbac.authorization.k8s.io/v1 kind: ClusterRole metadata: labels: - app.kubernetes.io/name: clusterrole - app.kubernetes.io/instance: memcached-editor-role - app.kubernetes.io/component: rbac - app.kubernetes.io/created-by: project-v4-with-deploy-image - app.kubernetes.io/part-of: project-v4-with-deploy-image + app.kubernetes.io/name: project-v4-with-deploy-image app.kubernetes.io/managed-by: kustomize name: memcached-editor-role rules: diff --git a/testdata/project-v4-with-deploy-image/config/rbac/memcached_viewer_role.yaml b/testdata/project-v4-with-deploy-image/config/rbac/memcached_viewer_role.yaml index 00f28d4854a..b9c45fa10ba 100644 --- a/testdata/project-v4-with-deploy-image/config/rbac/memcached_viewer_role.yaml +++ b/testdata/project-v4-with-deploy-image/config/rbac/memcached_viewer_role.yaml @@ -3,11 +3,7 @@ apiVersion: rbac.authorization.k8s.io/v1 kind: ClusterRole metadata: labels: - app.kubernetes.io/name: clusterrole - app.kubernetes.io/instance: memcached-viewer-role - app.kubernetes.io/component: rbac - app.kubernetes.io/created-by: project-v4-with-deploy-image - app.kubernetes.io/part-of: project-v4-with-deploy-image + app.kubernetes.io/name: project-v4-with-deploy-image app.kubernetes.io/managed-by: kustomize name: memcached-viewer-role rules: diff --git a/testdata/project-v4-with-deploy-image/config/rbac/role_binding.yaml b/testdata/project-v4-with-deploy-image/config/rbac/role_binding.yaml index e779e76e4ac..d0bc8dd159f 100644 --- a/testdata/project-v4-with-deploy-image/config/rbac/role_binding.yaml +++ b/testdata/project-v4-with-deploy-image/config/rbac/role_binding.yaml @@ -2,11 +2,7 @@ apiVersion: rbac.authorization.k8s.io/v1 kind: ClusterRoleBinding metadata: labels: - app.kubernetes.io/name: clusterrolebinding - app.kubernetes.io/instance: manager-rolebinding - app.kubernetes.io/component: rbac - app.kubernetes.io/created-by: project-v4-with-deploy-image - app.kubernetes.io/part-of: project-v4-with-deploy-image + app.kubernetes.io/name: project-v4-with-deploy-image app.kubernetes.io/managed-by: kustomize name: manager-rolebinding roleRef: diff --git a/testdata/project-v4-with-deploy-image/dist/install.yaml b/testdata/project-v4-with-deploy-image/dist/install.yaml index a6b113e4fe1..70babe98cbe 100644 --- a/testdata/project-v4-with-deploy-image/dist/install.yaml +++ b/testdata/project-v4-with-deploy-image/dist/install.yaml @@ -2,12 +2,8 @@ apiVersion: v1 kind: Namespace metadata: labels: - app.kubernetes.io/component: manager - app.kubernetes.io/created-by: project-v4-with-deploy-image - app.kubernetes.io/instance: system app.kubernetes.io/managed-by: kustomize - app.kubernetes.io/name: namespace - app.kubernetes.io/part-of: project-v4-with-deploy-image + app.kubernetes.io/name: project-v4-with-deploy-image control-plane: controller-manager name: project-v4-with-deploy-image-system --- @@ -297,12 +293,8 @@ apiVersion: rbac.authorization.k8s.io/v1 kind: Role metadata: labels: - app.kubernetes.io/component: rbac - app.kubernetes.io/created-by: project-v4-with-deploy-image - app.kubernetes.io/instance: leader-election-role app.kubernetes.io/managed-by: kustomize - app.kubernetes.io/name: role - app.kubernetes.io/part-of: project-v4-with-deploy-image + app.kubernetes.io/name: project-v4-with-deploy-image name: project-v4-with-deploy-image-leader-election-role namespace: project-v4-with-deploy-image-system rules: @@ -342,12 +334,8 @@ apiVersion: rbac.authorization.k8s.io/v1 kind: ClusterRole metadata: labels: - app.kubernetes.io/component: rbac - app.kubernetes.io/created-by: project-v4-with-deploy-image - app.kubernetes.io/instance: busybox-editor-role app.kubernetes.io/managed-by: kustomize - app.kubernetes.io/name: clusterrole - app.kubernetes.io/part-of: project-v4-with-deploy-image + app.kubernetes.io/name: project-v4-with-deploy-image name: project-v4-with-deploy-image-busybox-editor-role rules: - apiGroups: @@ -373,12 +361,8 @@ apiVersion: rbac.authorization.k8s.io/v1 kind: ClusterRole metadata: labels: - app.kubernetes.io/component: rbac - app.kubernetes.io/created-by: project-v4-with-deploy-image - app.kubernetes.io/instance: busybox-viewer-role app.kubernetes.io/managed-by: kustomize - app.kubernetes.io/name: clusterrole - app.kubernetes.io/part-of: project-v4-with-deploy-image + app.kubernetes.io/name: project-v4-with-deploy-image name: project-v4-with-deploy-image-busybox-viewer-role rules: - apiGroups: @@ -485,12 +469,8 @@ apiVersion: rbac.authorization.k8s.io/v1 kind: ClusterRole metadata: labels: - app.kubernetes.io/component: rbac - app.kubernetes.io/created-by: project-v4-with-deploy-image - app.kubernetes.io/instance: memcached-editor-role app.kubernetes.io/managed-by: kustomize - app.kubernetes.io/name: clusterrole - app.kubernetes.io/part-of: project-v4-with-deploy-image + app.kubernetes.io/name: project-v4-with-deploy-image name: project-v4-with-deploy-image-memcached-editor-role rules: - apiGroups: @@ -516,12 +496,8 @@ apiVersion: rbac.authorization.k8s.io/v1 kind: ClusterRole metadata: labels: - app.kubernetes.io/component: rbac - app.kubernetes.io/created-by: project-v4-with-deploy-image - app.kubernetes.io/instance: memcached-viewer-role app.kubernetes.io/managed-by: kustomize - app.kubernetes.io/name: clusterrole - app.kubernetes.io/part-of: project-v4-with-deploy-image + app.kubernetes.io/name: project-v4-with-deploy-image name: project-v4-with-deploy-image-memcached-viewer-role rules: - apiGroups: @@ -543,12 +519,8 @@ apiVersion: rbac.authorization.k8s.io/v1 kind: ClusterRole metadata: labels: - app.kubernetes.io/component: kube-rbac-proxy - app.kubernetes.io/created-by: project-v4-with-deploy-image - app.kubernetes.io/instance: metrics-reader app.kubernetes.io/managed-by: kustomize - app.kubernetes.io/name: clusterrole - app.kubernetes.io/part-of: project-v4-with-deploy-image + app.kubernetes.io/name: project-v4-with-deploy-image name: project-v4-with-deploy-image-metrics-reader rules: - nonResourceURLs: @@ -560,12 +532,8 @@ apiVersion: rbac.authorization.k8s.io/v1 kind: ClusterRole metadata: labels: - app.kubernetes.io/component: kube-rbac-proxy - app.kubernetes.io/created-by: project-v4-with-deploy-image - app.kubernetes.io/instance: proxy-role app.kubernetes.io/managed-by: kustomize - app.kubernetes.io/name: clusterrole - app.kubernetes.io/part-of: project-v4-with-deploy-image + app.kubernetes.io/name: project-v4-with-deploy-image name: project-v4-with-deploy-image-proxy-role rules: - apiGroups: @@ -585,12 +553,8 @@ apiVersion: rbac.authorization.k8s.io/v1 kind: RoleBinding metadata: labels: - app.kubernetes.io/component: rbac - app.kubernetes.io/created-by: project-v4-with-deploy-image - app.kubernetes.io/instance: leader-election-rolebinding app.kubernetes.io/managed-by: kustomize - app.kubernetes.io/name: rolebinding - app.kubernetes.io/part-of: project-v4-with-deploy-image + app.kubernetes.io/name: project-v4-with-deploy-image name: project-v4-with-deploy-image-leader-election-rolebinding namespace: project-v4-with-deploy-image-system roleRef: @@ -606,12 +570,8 @@ apiVersion: rbac.authorization.k8s.io/v1 kind: ClusterRoleBinding metadata: labels: - app.kubernetes.io/component: rbac - app.kubernetes.io/created-by: project-v4-with-deploy-image - app.kubernetes.io/instance: manager-rolebinding app.kubernetes.io/managed-by: kustomize - app.kubernetes.io/name: clusterrolebinding - app.kubernetes.io/part-of: project-v4-with-deploy-image + app.kubernetes.io/name: project-v4-with-deploy-image name: project-v4-with-deploy-image-manager-rolebinding roleRef: apiGroup: rbac.authorization.k8s.io @@ -626,12 +586,8 @@ apiVersion: rbac.authorization.k8s.io/v1 kind: ClusterRoleBinding metadata: labels: - app.kubernetes.io/component: kube-rbac-proxy - app.kubernetes.io/created-by: project-v4-with-deploy-image - app.kubernetes.io/instance: proxy-rolebinding app.kubernetes.io/managed-by: kustomize - app.kubernetes.io/name: clusterrolebinding - app.kubernetes.io/part-of: project-v4-with-deploy-image + app.kubernetes.io/name: project-v4-with-deploy-image name: project-v4-with-deploy-image-proxy-rolebinding roleRef: apiGroup: rbac.authorization.k8s.io @@ -646,12 +602,8 @@ apiVersion: v1 kind: Service metadata: labels: - app.kubernetes.io/component: kube-rbac-proxy - app.kubernetes.io/created-by: project-v4-with-deploy-image - app.kubernetes.io/instance: controller-manager-metrics-service app.kubernetes.io/managed-by: kustomize - app.kubernetes.io/name: service - app.kubernetes.io/part-of: project-v4-with-deploy-image + app.kubernetes.io/name: project-v4-with-deploy-image control-plane: controller-manager name: project-v4-with-deploy-image-controller-manager-metrics-service namespace: project-v4-with-deploy-image-system @@ -684,12 +636,8 @@ apiVersion: apps/v1 kind: Deployment metadata: labels: - app.kubernetes.io/component: manager - app.kubernetes.io/created-by: project-v4-with-deploy-image - app.kubernetes.io/instance: controller-manager app.kubernetes.io/managed-by: kustomize - app.kubernetes.io/name: deployment - app.kubernetes.io/part-of: project-v4-with-deploy-image + app.kubernetes.io/name: project-v4-with-deploy-image control-plane: controller-manager name: project-v4-with-deploy-image-controller-manager namespace: project-v4-with-deploy-image-system diff --git a/testdata/project-v4-with-grafana/config/manager/manager.yaml b/testdata/project-v4-with-grafana/config/manager/manager.yaml index f5c922126f2..3d44ae43d62 100644 --- a/testdata/project-v4-with-grafana/config/manager/manager.yaml +++ b/testdata/project-v4-with-grafana/config/manager/manager.yaml @@ -3,11 +3,7 @@ kind: Namespace metadata: labels: control-plane: controller-manager - app.kubernetes.io/name: namespace - app.kubernetes.io/instance: system - app.kubernetes.io/component: manager - app.kubernetes.io/created-by: project-v4-with-grafana - app.kubernetes.io/part-of: project-v4-with-grafana + app.kubernetes.io/name: project-v4-with-grafana app.kubernetes.io/managed-by: kustomize name: system --- @@ -18,11 +14,7 @@ metadata: namespace: system labels: control-plane: controller-manager - app.kubernetes.io/name: deployment - app.kubernetes.io/instance: controller-manager - app.kubernetes.io/component: manager - app.kubernetes.io/created-by: project-v4-with-grafana - app.kubernetes.io/part-of: project-v4-with-grafana + app.kubernetes.io/name: project-v4-with-grafana app.kubernetes.io/managed-by: kustomize spec: selector: diff --git a/testdata/project-v4-with-grafana/config/prometheus/monitor.yaml b/testdata/project-v4-with-grafana/config/prometheus/monitor.yaml index 910e297d3bb..8505bfa5bfc 100644 --- a/testdata/project-v4-with-grafana/config/prometheus/monitor.yaml +++ b/testdata/project-v4-with-grafana/config/prometheus/monitor.yaml @@ -4,11 +4,7 @@ kind: ServiceMonitor metadata: labels: control-plane: controller-manager - app.kubernetes.io/name: servicemonitor - app.kubernetes.io/instance: controller-manager-metrics-monitor - app.kubernetes.io/component: metrics - app.kubernetes.io/created-by: project-v4-with-grafana - app.kubernetes.io/part-of: project-v4-with-grafana + app.kubernetes.io/name: project-v4-with-grafana app.kubernetes.io/managed-by: kustomize name: controller-manager-metrics-monitor namespace: system diff --git a/testdata/project-v4-with-grafana/config/rbac/auth_proxy_client_clusterrole.yaml b/testdata/project-v4-with-grafana/config/rbac/auth_proxy_client_clusterrole.yaml index 1a349448805..5a5a1d0259d 100644 --- a/testdata/project-v4-with-grafana/config/rbac/auth_proxy_client_clusterrole.yaml +++ b/testdata/project-v4-with-grafana/config/rbac/auth_proxy_client_clusterrole.yaml @@ -2,11 +2,7 @@ apiVersion: rbac.authorization.k8s.io/v1 kind: ClusterRole metadata: labels: - app.kubernetes.io/name: clusterrole - app.kubernetes.io/instance: metrics-reader - app.kubernetes.io/component: kube-rbac-proxy - app.kubernetes.io/created-by: project-v4-with-grafana - app.kubernetes.io/part-of: project-v4-with-grafana + app.kubernetes.io/name: project-v4-with-grafana app.kubernetes.io/managed-by: kustomize name: metrics-reader rules: diff --git a/testdata/project-v4-with-grafana/config/rbac/auth_proxy_role.yaml b/testdata/project-v4-with-grafana/config/rbac/auth_proxy_role.yaml index 78751f31b46..979bc272f7a 100644 --- a/testdata/project-v4-with-grafana/config/rbac/auth_proxy_role.yaml +++ b/testdata/project-v4-with-grafana/config/rbac/auth_proxy_role.yaml @@ -2,11 +2,7 @@ apiVersion: rbac.authorization.k8s.io/v1 kind: ClusterRole metadata: labels: - app.kubernetes.io/name: clusterrole - app.kubernetes.io/instance: proxy-role - app.kubernetes.io/component: kube-rbac-proxy - app.kubernetes.io/created-by: project-v4-with-grafana - app.kubernetes.io/part-of: project-v4-with-grafana + app.kubernetes.io/name: project-v4-with-grafana app.kubernetes.io/managed-by: kustomize name: proxy-role rules: diff --git a/testdata/project-v4-with-grafana/config/rbac/auth_proxy_role_binding.yaml b/testdata/project-v4-with-grafana/config/rbac/auth_proxy_role_binding.yaml index 65e551ad032..b5302ea3805 100644 --- a/testdata/project-v4-with-grafana/config/rbac/auth_proxy_role_binding.yaml +++ b/testdata/project-v4-with-grafana/config/rbac/auth_proxy_role_binding.yaml @@ -2,11 +2,7 @@ apiVersion: rbac.authorization.k8s.io/v1 kind: ClusterRoleBinding metadata: labels: - app.kubernetes.io/name: clusterrolebinding - app.kubernetes.io/instance: proxy-rolebinding - app.kubernetes.io/component: kube-rbac-proxy - app.kubernetes.io/created-by: project-v4-with-grafana - app.kubernetes.io/part-of: project-v4-with-grafana + app.kubernetes.io/name: project-v4-with-grafana app.kubernetes.io/managed-by: kustomize name: proxy-rolebinding roleRef: diff --git a/testdata/project-v4-with-grafana/config/rbac/auth_proxy_service.yaml b/testdata/project-v4-with-grafana/config/rbac/auth_proxy_service.yaml index 55993935fab..b52e2ef0f4d 100644 --- a/testdata/project-v4-with-grafana/config/rbac/auth_proxy_service.yaml +++ b/testdata/project-v4-with-grafana/config/rbac/auth_proxy_service.yaml @@ -3,11 +3,7 @@ kind: Service metadata: labels: control-plane: controller-manager - app.kubernetes.io/name: service - app.kubernetes.io/instance: controller-manager-metrics-service - app.kubernetes.io/component: kube-rbac-proxy - app.kubernetes.io/created-by: project-v4-with-grafana - app.kubernetes.io/part-of: project-v4-with-grafana + app.kubernetes.io/name: project-v4-with-grafana app.kubernetes.io/managed-by: kustomize name: controller-manager-metrics-service namespace: system diff --git a/testdata/project-v4-with-grafana/config/rbac/leader_election_role.yaml b/testdata/project-v4-with-grafana/config/rbac/leader_election_role.yaml index 90dec8af280..67c3dc38640 100644 --- a/testdata/project-v4-with-grafana/config/rbac/leader_election_role.yaml +++ b/testdata/project-v4-with-grafana/config/rbac/leader_election_role.yaml @@ -3,11 +3,7 @@ apiVersion: rbac.authorization.k8s.io/v1 kind: Role metadata: labels: - app.kubernetes.io/name: role - app.kubernetes.io/instance: leader-election-role - app.kubernetes.io/component: rbac - app.kubernetes.io/created-by: project-v4-with-grafana - app.kubernetes.io/part-of: project-v4-with-grafana + app.kubernetes.io/name: project-v4-with-grafana app.kubernetes.io/managed-by: kustomize name: leader-election-role rules: diff --git a/testdata/project-v4-with-grafana/config/rbac/leader_election_role_binding.yaml b/testdata/project-v4-with-grafana/config/rbac/leader_election_role_binding.yaml index d07e4f7a407..24ead23b976 100644 --- a/testdata/project-v4-with-grafana/config/rbac/leader_election_role_binding.yaml +++ b/testdata/project-v4-with-grafana/config/rbac/leader_election_role_binding.yaml @@ -2,11 +2,7 @@ apiVersion: rbac.authorization.k8s.io/v1 kind: RoleBinding metadata: labels: - app.kubernetes.io/name: rolebinding - app.kubernetes.io/instance: leader-election-rolebinding - app.kubernetes.io/component: rbac - app.kubernetes.io/created-by: project-v4-with-grafana - app.kubernetes.io/part-of: project-v4-with-grafana + app.kubernetes.io/name: project-v4-with-grafana app.kubernetes.io/managed-by: kustomize name: leader-election-rolebinding roleRef: diff --git a/testdata/project-v4-with-grafana/config/rbac/role.yaml b/testdata/project-v4-with-grafana/config/rbac/role.yaml index 7d58c9ed049..cb2161ed361 100644 --- a/testdata/project-v4-with-grafana/config/rbac/role.yaml +++ b/testdata/project-v4-with-grafana/config/rbac/role.yaml @@ -2,11 +2,7 @@ apiVersion: rbac.authorization.k8s.io/v1 kind: ClusterRole metadata: labels: - app.kubernetes.io/name: clusterrole - app.kubernetes.io/instance: manager-role - app.kubernetes.io/component: rbac - app.kubernetes.io/created-by: project-v4-with-grafana - app.kubernetes.io/part-of: project-v4-with-grafana + app.kubernetes.io/name: project-v4-with-grafana app.kubernetes.io/managed-by: kustomize name: manager-role rules: diff --git a/testdata/project-v4-with-grafana/config/rbac/role_binding.yaml b/testdata/project-v4-with-grafana/config/rbac/role_binding.yaml index 45f4d19a378..ea0f0189035 100644 --- a/testdata/project-v4-with-grafana/config/rbac/role_binding.yaml +++ b/testdata/project-v4-with-grafana/config/rbac/role_binding.yaml @@ -2,11 +2,7 @@ apiVersion: rbac.authorization.k8s.io/v1 kind: ClusterRoleBinding metadata: labels: - app.kubernetes.io/name: clusterrolebinding - app.kubernetes.io/instance: manager-rolebinding - app.kubernetes.io/component: rbac - app.kubernetes.io/created-by: project-v4-with-grafana - app.kubernetes.io/part-of: project-v4-with-grafana + app.kubernetes.io/name: project-v4-with-grafana app.kubernetes.io/managed-by: kustomize name: manager-rolebinding roleRef: diff --git a/testdata/project-v4-with-grafana/dist/install.yaml b/testdata/project-v4-with-grafana/dist/install.yaml index 4432c399bc2..5877a647805 100644 --- a/testdata/project-v4-with-grafana/dist/install.yaml +++ b/testdata/project-v4-with-grafana/dist/install.yaml @@ -2,12 +2,8 @@ apiVersion: v1 kind: Namespace metadata: labels: - app.kubernetes.io/component: manager - app.kubernetes.io/created-by: project-v4-with-grafana - app.kubernetes.io/instance: system app.kubernetes.io/managed-by: kustomize - app.kubernetes.io/name: namespace - app.kubernetes.io/part-of: project-v4-with-grafana + app.kubernetes.io/name: project-v4-with-grafana control-plane: controller-manager name: project-v4-with-grafana-system --- @@ -24,12 +20,8 @@ apiVersion: rbac.authorization.k8s.io/v1 kind: Role metadata: labels: - app.kubernetes.io/component: rbac - app.kubernetes.io/created-by: project-v4-with-grafana - app.kubernetes.io/instance: leader-election-role app.kubernetes.io/managed-by: kustomize - app.kubernetes.io/name: role - app.kubernetes.io/part-of: project-v4-with-grafana + app.kubernetes.io/name: project-v4-with-grafana name: project-v4-with-grafana-leader-election-role namespace: project-v4-with-grafana-system rules: @@ -69,12 +61,8 @@ apiVersion: rbac.authorization.k8s.io/v1 kind: ClusterRole metadata: labels: - app.kubernetes.io/component: rbac - app.kubernetes.io/created-by: project-v4-with-grafana - app.kubernetes.io/instance: manager-role app.kubernetes.io/managed-by: kustomize - app.kubernetes.io/name: clusterrole - app.kubernetes.io/part-of: project-v4-with-grafana + app.kubernetes.io/name: project-v4-with-grafana name: project-v4-with-grafana-manager-role rules: - apiGroups: @@ -90,12 +78,8 @@ apiVersion: rbac.authorization.k8s.io/v1 kind: ClusterRole metadata: labels: - app.kubernetes.io/component: kube-rbac-proxy - app.kubernetes.io/created-by: project-v4-with-grafana - app.kubernetes.io/instance: metrics-reader app.kubernetes.io/managed-by: kustomize - app.kubernetes.io/name: clusterrole - app.kubernetes.io/part-of: project-v4-with-grafana + app.kubernetes.io/name: project-v4-with-grafana name: project-v4-with-grafana-metrics-reader rules: - nonResourceURLs: @@ -107,12 +91,8 @@ apiVersion: rbac.authorization.k8s.io/v1 kind: ClusterRole metadata: labels: - app.kubernetes.io/component: kube-rbac-proxy - app.kubernetes.io/created-by: project-v4-with-grafana - app.kubernetes.io/instance: proxy-role app.kubernetes.io/managed-by: kustomize - app.kubernetes.io/name: clusterrole - app.kubernetes.io/part-of: project-v4-with-grafana + app.kubernetes.io/name: project-v4-with-grafana name: project-v4-with-grafana-proxy-role rules: - apiGroups: @@ -132,12 +112,8 @@ apiVersion: rbac.authorization.k8s.io/v1 kind: RoleBinding metadata: labels: - app.kubernetes.io/component: rbac - app.kubernetes.io/created-by: project-v4-with-grafana - app.kubernetes.io/instance: leader-election-rolebinding app.kubernetes.io/managed-by: kustomize - app.kubernetes.io/name: rolebinding - app.kubernetes.io/part-of: project-v4-with-grafana + app.kubernetes.io/name: project-v4-with-grafana name: project-v4-with-grafana-leader-election-rolebinding namespace: project-v4-with-grafana-system roleRef: @@ -153,12 +129,8 @@ apiVersion: rbac.authorization.k8s.io/v1 kind: ClusterRoleBinding metadata: labels: - app.kubernetes.io/component: rbac - app.kubernetes.io/created-by: project-v4-with-grafana - app.kubernetes.io/instance: manager-rolebinding app.kubernetes.io/managed-by: kustomize - app.kubernetes.io/name: clusterrolebinding - app.kubernetes.io/part-of: project-v4-with-grafana + app.kubernetes.io/name: project-v4-with-grafana name: project-v4-with-grafana-manager-rolebinding roleRef: apiGroup: rbac.authorization.k8s.io @@ -173,12 +145,8 @@ apiVersion: rbac.authorization.k8s.io/v1 kind: ClusterRoleBinding metadata: labels: - app.kubernetes.io/component: kube-rbac-proxy - app.kubernetes.io/created-by: project-v4-with-grafana - app.kubernetes.io/instance: proxy-rolebinding app.kubernetes.io/managed-by: kustomize - app.kubernetes.io/name: clusterrolebinding - app.kubernetes.io/part-of: project-v4-with-grafana + app.kubernetes.io/name: project-v4-with-grafana name: project-v4-with-grafana-proxy-rolebinding roleRef: apiGroup: rbac.authorization.k8s.io @@ -193,12 +161,8 @@ apiVersion: v1 kind: Service metadata: labels: - app.kubernetes.io/component: kube-rbac-proxy - app.kubernetes.io/created-by: project-v4-with-grafana - app.kubernetes.io/instance: controller-manager-metrics-service app.kubernetes.io/managed-by: kustomize - app.kubernetes.io/name: service - app.kubernetes.io/part-of: project-v4-with-grafana + app.kubernetes.io/name: project-v4-with-grafana control-plane: controller-manager name: project-v4-with-grafana-controller-manager-metrics-service namespace: project-v4-with-grafana-system @@ -215,12 +179,8 @@ apiVersion: apps/v1 kind: Deployment metadata: labels: - app.kubernetes.io/component: manager - app.kubernetes.io/created-by: project-v4-with-grafana - app.kubernetes.io/instance: controller-manager app.kubernetes.io/managed-by: kustomize - app.kubernetes.io/name: deployment - app.kubernetes.io/part-of: project-v4-with-grafana + app.kubernetes.io/name: project-v4-with-grafana control-plane: controller-manager name: project-v4-with-grafana-controller-manager namespace: project-v4-with-grafana-system diff --git a/testdata/project-v4/config/certmanager/certificate.yaml b/testdata/project-v4/config/certmanager/certificate.yaml index 0fc18683bff..c7e34e79ce3 100644 --- a/testdata/project-v4/config/certmanager/certificate.yaml +++ b/testdata/project-v4/config/certmanager/certificate.yaml @@ -5,11 +5,7 @@ apiVersion: cert-manager.io/v1 kind: Issuer metadata: labels: - app.kubernetes.io/name: certificate - app.kubernetes.io/instance: serving-cert - app.kubernetes.io/component: certificate - app.kubernetes.io/created-by: project-v4 - app.kubernetes.io/part-of: project-v4 + app.kubernetes.io/name: project-v4 app.kubernetes.io/managed-by: kustomize name: selfsigned-issuer namespace: system diff --git a/testdata/project-v4/config/default/webhookcainjection_patch.yaml b/testdata/project-v4/config/default/webhookcainjection_patch.yaml index b127ec385fe..d99fffbf52c 100644 --- a/testdata/project-v4/config/default/webhookcainjection_patch.yaml +++ b/testdata/project-v4/config/default/webhookcainjection_patch.yaml @@ -4,11 +4,7 @@ apiVersion: admissionregistration.k8s.io/v1 kind: MutatingWebhookConfiguration metadata: labels: - app.kubernetes.io/name: mutatingwebhookconfiguration - app.kubernetes.io/instance: mutating-webhook-configuration - app.kubernetes.io/component: webhook - app.kubernetes.io/created-by: project-v4 - app.kubernetes.io/part-of: project-v4 + app.kubernetes.io/name: project-v4 app.kubernetes.io/managed-by: kustomize name: mutating-webhook-configuration annotations: diff --git a/testdata/project-v4/config/manager/manager.yaml b/testdata/project-v4/config/manager/manager.yaml index 0bec76d9a8e..7c552d545f1 100644 --- a/testdata/project-v4/config/manager/manager.yaml +++ b/testdata/project-v4/config/manager/manager.yaml @@ -3,11 +3,7 @@ kind: Namespace metadata: labels: control-plane: controller-manager - app.kubernetes.io/name: namespace - app.kubernetes.io/instance: system - app.kubernetes.io/component: manager - app.kubernetes.io/created-by: project-v4 - app.kubernetes.io/part-of: project-v4 + app.kubernetes.io/name: project-v4 app.kubernetes.io/managed-by: kustomize name: system --- @@ -18,11 +14,7 @@ metadata: namespace: system labels: control-plane: controller-manager - app.kubernetes.io/name: deployment - app.kubernetes.io/instance: controller-manager - app.kubernetes.io/component: manager - app.kubernetes.io/created-by: project-v4 - app.kubernetes.io/part-of: project-v4 + app.kubernetes.io/name: project-v4 app.kubernetes.io/managed-by: kustomize spec: selector: diff --git a/testdata/project-v4/config/prometheus/monitor.yaml b/testdata/project-v4/config/prometheus/monitor.yaml index 905e15b285c..767555588d4 100644 --- a/testdata/project-v4/config/prometheus/monitor.yaml +++ b/testdata/project-v4/config/prometheus/monitor.yaml @@ -4,11 +4,7 @@ kind: ServiceMonitor metadata: labels: control-plane: controller-manager - app.kubernetes.io/name: servicemonitor - app.kubernetes.io/instance: controller-manager-metrics-monitor - app.kubernetes.io/component: metrics - app.kubernetes.io/created-by: project-v4 - app.kubernetes.io/part-of: project-v4 + app.kubernetes.io/name: project-v4 app.kubernetes.io/managed-by: kustomize name: controller-manager-metrics-monitor namespace: system diff --git a/testdata/project-v4/config/rbac/admiral_editor_role.yaml b/testdata/project-v4/config/rbac/admiral_editor_role.yaml index 7e76cdd45e3..ab77210de89 100644 --- a/testdata/project-v4/config/rbac/admiral_editor_role.yaml +++ b/testdata/project-v4/config/rbac/admiral_editor_role.yaml @@ -3,11 +3,7 @@ apiVersion: rbac.authorization.k8s.io/v1 kind: ClusterRole metadata: labels: - app.kubernetes.io/name: clusterrole - app.kubernetes.io/instance: admiral-editor-role - app.kubernetes.io/component: rbac - app.kubernetes.io/created-by: project-v4 - app.kubernetes.io/part-of: project-v4 + app.kubernetes.io/name: project-v4 app.kubernetes.io/managed-by: kustomize name: admiral-editor-role rules: diff --git a/testdata/project-v4/config/rbac/admiral_viewer_role.yaml b/testdata/project-v4/config/rbac/admiral_viewer_role.yaml index fe5a125edbf..cc0da99283e 100644 --- a/testdata/project-v4/config/rbac/admiral_viewer_role.yaml +++ b/testdata/project-v4/config/rbac/admiral_viewer_role.yaml @@ -3,11 +3,7 @@ apiVersion: rbac.authorization.k8s.io/v1 kind: ClusterRole metadata: labels: - app.kubernetes.io/name: clusterrole - app.kubernetes.io/instance: admiral-viewer-role - app.kubernetes.io/component: rbac - app.kubernetes.io/created-by: project-v4 - app.kubernetes.io/part-of: project-v4 + app.kubernetes.io/name: project-v4 app.kubernetes.io/managed-by: kustomize name: admiral-viewer-role rules: diff --git a/testdata/project-v4/config/rbac/auth_proxy_client_clusterrole.yaml b/testdata/project-v4/config/rbac/auth_proxy_client_clusterrole.yaml index 6eb655532e8..c534a7a5387 100644 --- a/testdata/project-v4/config/rbac/auth_proxy_client_clusterrole.yaml +++ b/testdata/project-v4/config/rbac/auth_proxy_client_clusterrole.yaml @@ -2,11 +2,7 @@ apiVersion: rbac.authorization.k8s.io/v1 kind: ClusterRole metadata: labels: - app.kubernetes.io/name: clusterrole - app.kubernetes.io/instance: metrics-reader - app.kubernetes.io/component: kube-rbac-proxy - app.kubernetes.io/created-by: project-v4 - app.kubernetes.io/part-of: project-v4 + app.kubernetes.io/name: project-v4 app.kubernetes.io/managed-by: kustomize name: metrics-reader rules: diff --git a/testdata/project-v4/config/rbac/auth_proxy_role.yaml b/testdata/project-v4/config/rbac/auth_proxy_role.yaml index 28de66c7882..43aa96480ad 100644 --- a/testdata/project-v4/config/rbac/auth_proxy_role.yaml +++ b/testdata/project-v4/config/rbac/auth_proxy_role.yaml @@ -2,11 +2,7 @@ apiVersion: rbac.authorization.k8s.io/v1 kind: ClusterRole metadata: labels: - app.kubernetes.io/name: clusterrole - app.kubernetes.io/instance: proxy-role - app.kubernetes.io/component: kube-rbac-proxy - app.kubernetes.io/created-by: project-v4 - app.kubernetes.io/part-of: project-v4 + app.kubernetes.io/name: project-v4 app.kubernetes.io/managed-by: kustomize name: proxy-role rules: diff --git a/testdata/project-v4/config/rbac/auth_proxy_role_binding.yaml b/testdata/project-v4/config/rbac/auth_proxy_role_binding.yaml index 609d1c5e0e0..e5bbe0214cd 100644 --- a/testdata/project-v4/config/rbac/auth_proxy_role_binding.yaml +++ b/testdata/project-v4/config/rbac/auth_proxy_role_binding.yaml @@ -2,11 +2,7 @@ apiVersion: rbac.authorization.k8s.io/v1 kind: ClusterRoleBinding metadata: labels: - app.kubernetes.io/name: clusterrolebinding - app.kubernetes.io/instance: proxy-rolebinding - app.kubernetes.io/component: kube-rbac-proxy - app.kubernetes.io/created-by: project-v4 - app.kubernetes.io/part-of: project-v4 + app.kubernetes.io/name: project-v4 app.kubernetes.io/managed-by: kustomize name: proxy-rolebinding roleRef: diff --git a/testdata/project-v4/config/rbac/auth_proxy_service.yaml b/testdata/project-v4/config/rbac/auth_proxy_service.yaml index 81fb97cbe94..2b723ff3239 100644 --- a/testdata/project-v4/config/rbac/auth_proxy_service.yaml +++ b/testdata/project-v4/config/rbac/auth_proxy_service.yaml @@ -3,11 +3,7 @@ kind: Service metadata: labels: control-plane: controller-manager - app.kubernetes.io/name: service - app.kubernetes.io/instance: controller-manager-metrics-service - app.kubernetes.io/component: kube-rbac-proxy - app.kubernetes.io/created-by: project-v4 - app.kubernetes.io/part-of: project-v4 + app.kubernetes.io/name: project-v4 app.kubernetes.io/managed-by: kustomize name: controller-manager-metrics-service namespace: system diff --git a/testdata/project-v4/config/rbac/captain_editor_role.yaml b/testdata/project-v4/config/rbac/captain_editor_role.yaml index 2531c55a6d9..dcb399027ca 100644 --- a/testdata/project-v4/config/rbac/captain_editor_role.yaml +++ b/testdata/project-v4/config/rbac/captain_editor_role.yaml @@ -3,11 +3,7 @@ apiVersion: rbac.authorization.k8s.io/v1 kind: ClusterRole metadata: labels: - app.kubernetes.io/name: clusterrole - app.kubernetes.io/instance: captain-editor-role - app.kubernetes.io/component: rbac - app.kubernetes.io/created-by: project-v4 - app.kubernetes.io/part-of: project-v4 + app.kubernetes.io/name: project-v4 app.kubernetes.io/managed-by: kustomize name: captain-editor-role rules: diff --git a/testdata/project-v4/config/rbac/captain_viewer_role.yaml b/testdata/project-v4/config/rbac/captain_viewer_role.yaml index 6b7b744671d..6be9174d58c 100644 --- a/testdata/project-v4/config/rbac/captain_viewer_role.yaml +++ b/testdata/project-v4/config/rbac/captain_viewer_role.yaml @@ -3,11 +3,7 @@ apiVersion: rbac.authorization.k8s.io/v1 kind: ClusterRole metadata: labels: - app.kubernetes.io/name: clusterrole - app.kubernetes.io/instance: captain-viewer-role - app.kubernetes.io/component: rbac - app.kubernetes.io/created-by: project-v4 - app.kubernetes.io/part-of: project-v4 + app.kubernetes.io/name: project-v4 app.kubernetes.io/managed-by: kustomize name: captain-viewer-role rules: diff --git a/testdata/project-v4/config/rbac/firstmate_editor_role.yaml b/testdata/project-v4/config/rbac/firstmate_editor_role.yaml index b6ad455530b..4e39922e64a 100644 --- a/testdata/project-v4/config/rbac/firstmate_editor_role.yaml +++ b/testdata/project-v4/config/rbac/firstmate_editor_role.yaml @@ -3,11 +3,7 @@ apiVersion: rbac.authorization.k8s.io/v1 kind: ClusterRole metadata: labels: - app.kubernetes.io/name: clusterrole - app.kubernetes.io/instance: firstmate-editor-role - app.kubernetes.io/component: rbac - app.kubernetes.io/created-by: project-v4 - app.kubernetes.io/part-of: project-v4 + app.kubernetes.io/name: project-v4 app.kubernetes.io/managed-by: kustomize name: firstmate-editor-role rules: diff --git a/testdata/project-v4/config/rbac/firstmate_viewer_role.yaml b/testdata/project-v4/config/rbac/firstmate_viewer_role.yaml index f536705cc5b..c17cd0a5237 100644 --- a/testdata/project-v4/config/rbac/firstmate_viewer_role.yaml +++ b/testdata/project-v4/config/rbac/firstmate_viewer_role.yaml @@ -3,11 +3,7 @@ apiVersion: rbac.authorization.k8s.io/v1 kind: ClusterRole metadata: labels: - app.kubernetes.io/name: clusterrole - app.kubernetes.io/instance: firstmate-viewer-role - app.kubernetes.io/component: rbac - app.kubernetes.io/created-by: project-v4 - app.kubernetes.io/part-of: project-v4 + app.kubernetes.io/name: project-v4 app.kubernetes.io/managed-by: kustomize name: firstmate-viewer-role rules: diff --git a/testdata/project-v4/config/rbac/leader_election_role.yaml b/testdata/project-v4/config/rbac/leader_election_role.yaml index d52704102fc..3c948fc695f 100644 --- a/testdata/project-v4/config/rbac/leader_election_role.yaml +++ b/testdata/project-v4/config/rbac/leader_election_role.yaml @@ -3,11 +3,7 @@ apiVersion: rbac.authorization.k8s.io/v1 kind: Role metadata: labels: - app.kubernetes.io/name: role - app.kubernetes.io/instance: leader-election-role - app.kubernetes.io/component: rbac - app.kubernetes.io/created-by: project-v4 - app.kubernetes.io/part-of: project-v4 + app.kubernetes.io/name: project-v4 app.kubernetes.io/managed-by: kustomize name: leader-election-role rules: diff --git a/testdata/project-v4/config/rbac/leader_election_role_binding.yaml b/testdata/project-v4/config/rbac/leader_election_role_binding.yaml index 4280b367f1e..e917f32de8d 100644 --- a/testdata/project-v4/config/rbac/leader_election_role_binding.yaml +++ b/testdata/project-v4/config/rbac/leader_election_role_binding.yaml @@ -2,11 +2,7 @@ apiVersion: rbac.authorization.k8s.io/v1 kind: RoleBinding metadata: labels: - app.kubernetes.io/name: rolebinding - app.kubernetes.io/instance: leader-election-rolebinding - app.kubernetes.io/component: rbac - app.kubernetes.io/created-by: project-v4 - app.kubernetes.io/part-of: project-v4 + app.kubernetes.io/name: project-v4 app.kubernetes.io/managed-by: kustomize name: leader-election-rolebinding roleRef: diff --git a/testdata/project-v4/config/rbac/role_binding.yaml b/testdata/project-v4/config/rbac/role_binding.yaml index 09b590dca89..356c09a0d2f 100644 --- a/testdata/project-v4/config/rbac/role_binding.yaml +++ b/testdata/project-v4/config/rbac/role_binding.yaml @@ -2,11 +2,7 @@ apiVersion: rbac.authorization.k8s.io/v1 kind: ClusterRoleBinding metadata: labels: - app.kubernetes.io/name: clusterrolebinding - app.kubernetes.io/instance: manager-rolebinding - app.kubernetes.io/component: rbac - app.kubernetes.io/created-by: project-v4 - app.kubernetes.io/part-of: project-v4 + app.kubernetes.io/name: project-v4 app.kubernetes.io/managed-by: kustomize name: manager-rolebinding roleRef: diff --git a/testdata/project-v4/dist/install.yaml b/testdata/project-v4/dist/install.yaml index adc1f4bb4e5..4466171f902 100644 --- a/testdata/project-v4/dist/install.yaml +++ b/testdata/project-v4/dist/install.yaml @@ -2,12 +2,8 @@ apiVersion: v1 kind: Namespace metadata: labels: - app.kubernetes.io/component: manager - app.kubernetes.io/created-by: project-v4 - app.kubernetes.io/instance: system app.kubernetes.io/managed-by: kustomize - app.kubernetes.io/name: namespace - app.kubernetes.io/part-of: project-v4 + app.kubernetes.io/name: project-v4 control-plane: controller-manager name: project-v4-system --- @@ -216,12 +212,8 @@ apiVersion: rbac.authorization.k8s.io/v1 kind: Role metadata: labels: - app.kubernetes.io/component: rbac - app.kubernetes.io/created-by: project-v4 - app.kubernetes.io/instance: leader-election-role app.kubernetes.io/managed-by: kustomize - app.kubernetes.io/name: role - app.kubernetes.io/part-of: project-v4 + app.kubernetes.io/name: project-v4 name: project-v4-leader-election-role namespace: project-v4-system rules: @@ -261,12 +253,8 @@ apiVersion: rbac.authorization.k8s.io/v1 kind: ClusterRole metadata: labels: - app.kubernetes.io/component: rbac - app.kubernetes.io/created-by: project-v4 - app.kubernetes.io/instance: admiral-editor-role app.kubernetes.io/managed-by: kustomize - app.kubernetes.io/name: clusterrole - app.kubernetes.io/part-of: project-v4 + app.kubernetes.io/name: project-v4 name: project-v4-admiral-editor-role rules: - apiGroups: @@ -292,12 +280,8 @@ apiVersion: rbac.authorization.k8s.io/v1 kind: ClusterRole metadata: labels: - app.kubernetes.io/component: rbac - app.kubernetes.io/created-by: project-v4 - app.kubernetes.io/instance: admiral-viewer-role app.kubernetes.io/managed-by: kustomize - app.kubernetes.io/name: clusterrole - app.kubernetes.io/part-of: project-v4 + app.kubernetes.io/name: project-v4 name: project-v4-admiral-viewer-role rules: - apiGroups: @@ -319,12 +303,8 @@ apiVersion: rbac.authorization.k8s.io/v1 kind: ClusterRole metadata: labels: - app.kubernetes.io/component: rbac - app.kubernetes.io/created-by: project-v4 - app.kubernetes.io/instance: captain-editor-role app.kubernetes.io/managed-by: kustomize - app.kubernetes.io/name: clusterrole - app.kubernetes.io/part-of: project-v4 + app.kubernetes.io/name: project-v4 name: project-v4-captain-editor-role rules: - apiGroups: @@ -350,12 +330,8 @@ apiVersion: rbac.authorization.k8s.io/v1 kind: ClusterRole metadata: labels: - app.kubernetes.io/component: rbac - app.kubernetes.io/created-by: project-v4 - app.kubernetes.io/instance: captain-viewer-role app.kubernetes.io/managed-by: kustomize - app.kubernetes.io/name: clusterrole - app.kubernetes.io/part-of: project-v4 + app.kubernetes.io/name: project-v4 name: project-v4-captain-viewer-role rules: - apiGroups: @@ -377,12 +353,8 @@ apiVersion: rbac.authorization.k8s.io/v1 kind: ClusterRole metadata: labels: - app.kubernetes.io/component: rbac - app.kubernetes.io/created-by: project-v4 - app.kubernetes.io/instance: firstmate-editor-role app.kubernetes.io/managed-by: kustomize - app.kubernetes.io/name: clusterrole - app.kubernetes.io/part-of: project-v4 + app.kubernetes.io/name: project-v4 name: project-v4-firstmate-editor-role rules: - apiGroups: @@ -408,12 +380,8 @@ apiVersion: rbac.authorization.k8s.io/v1 kind: ClusterRole metadata: labels: - app.kubernetes.io/component: rbac - app.kubernetes.io/created-by: project-v4 - app.kubernetes.io/instance: firstmate-viewer-role app.kubernetes.io/managed-by: kustomize - app.kubernetes.io/name: clusterrole - app.kubernetes.io/part-of: project-v4 + app.kubernetes.io/name: project-v4 name: project-v4-firstmate-viewer-role rules: - apiGroups: @@ -545,12 +513,8 @@ apiVersion: rbac.authorization.k8s.io/v1 kind: ClusterRole metadata: labels: - app.kubernetes.io/component: kube-rbac-proxy - app.kubernetes.io/created-by: project-v4 - app.kubernetes.io/instance: metrics-reader app.kubernetes.io/managed-by: kustomize - app.kubernetes.io/name: clusterrole - app.kubernetes.io/part-of: project-v4 + app.kubernetes.io/name: project-v4 name: project-v4-metrics-reader rules: - nonResourceURLs: @@ -562,12 +526,8 @@ apiVersion: rbac.authorization.k8s.io/v1 kind: ClusterRole metadata: labels: - app.kubernetes.io/component: kube-rbac-proxy - app.kubernetes.io/created-by: project-v4 - app.kubernetes.io/instance: proxy-role app.kubernetes.io/managed-by: kustomize - app.kubernetes.io/name: clusterrole - app.kubernetes.io/part-of: project-v4 + app.kubernetes.io/name: project-v4 name: project-v4-proxy-role rules: - apiGroups: @@ -587,12 +547,8 @@ apiVersion: rbac.authorization.k8s.io/v1 kind: RoleBinding metadata: labels: - app.kubernetes.io/component: rbac - app.kubernetes.io/created-by: project-v4 - app.kubernetes.io/instance: leader-election-rolebinding app.kubernetes.io/managed-by: kustomize - app.kubernetes.io/name: rolebinding - app.kubernetes.io/part-of: project-v4 + app.kubernetes.io/name: project-v4 name: project-v4-leader-election-rolebinding namespace: project-v4-system roleRef: @@ -608,12 +564,8 @@ apiVersion: rbac.authorization.k8s.io/v1 kind: ClusterRoleBinding metadata: labels: - app.kubernetes.io/component: rbac - app.kubernetes.io/created-by: project-v4 - app.kubernetes.io/instance: manager-rolebinding app.kubernetes.io/managed-by: kustomize - app.kubernetes.io/name: clusterrolebinding - app.kubernetes.io/part-of: project-v4 + app.kubernetes.io/name: project-v4 name: project-v4-manager-rolebinding roleRef: apiGroup: rbac.authorization.k8s.io @@ -628,12 +580,8 @@ apiVersion: rbac.authorization.k8s.io/v1 kind: ClusterRoleBinding metadata: labels: - app.kubernetes.io/component: kube-rbac-proxy - app.kubernetes.io/created-by: project-v4 - app.kubernetes.io/instance: proxy-rolebinding app.kubernetes.io/managed-by: kustomize - app.kubernetes.io/name: clusterrolebinding - app.kubernetes.io/part-of: project-v4 + app.kubernetes.io/name: project-v4 name: project-v4-proxy-rolebinding roleRef: apiGroup: rbac.authorization.k8s.io @@ -648,12 +596,8 @@ apiVersion: v1 kind: Service metadata: labels: - app.kubernetes.io/component: kube-rbac-proxy - app.kubernetes.io/created-by: project-v4 - app.kubernetes.io/instance: controller-manager-metrics-service app.kubernetes.io/managed-by: kustomize - app.kubernetes.io/name: service - app.kubernetes.io/part-of: project-v4 + app.kubernetes.io/name: project-v4 control-plane: controller-manager name: project-v4-controller-manager-metrics-service namespace: project-v4-system @@ -686,12 +630,8 @@ apiVersion: apps/v1 kind: Deployment metadata: labels: - app.kubernetes.io/component: manager - app.kubernetes.io/created-by: project-v4 - app.kubernetes.io/instance: controller-manager app.kubernetes.io/managed-by: kustomize - app.kubernetes.io/name: deployment - app.kubernetes.io/part-of: project-v4 + app.kubernetes.io/name: project-v4 control-plane: controller-manager name: project-v4-controller-manager namespace: project-v4-system