Skip to content

Commit 658ecc0

Browse files
[release/v0.25] Add cluster indexed label to all CRDs (#1753)
* Fix make dev-env errors Signed-off-by: Alexandr Demicev <[email protected]> * Add cluster indexed label to all CRDs Signed-off-by: Alexandr Demicev <[email protected]> --------- Signed-off-by: Alexandr Demicev <[email protected]>
1 parent c467e68 commit 658ecc0

19 files changed

+208
-48
lines changed

config/rbac/kustomization.yaml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,4 +12,5 @@ resources:
1212
- aggregated_role.yaml
1313

1414
patches:
15-
- path: manager_role_aggregation_patch.yaml
15+
- path: manager_role_patch.yaml
16+
- path: manager_rolebinding_patch.yaml
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
apiVersion: rbac.authorization.k8s.io/v1
2+
kind: ClusterRole
3+
metadata:
4+
name: manager-role
5+
labels:
6+
rancher-turtles/aggregate-to-manager: "true"

config/rbac/manager_role_aggregation_patch.yaml renamed to config/rbac/manager_rolebinding_patch.yaml

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,4 @@
11
apiVersion: rbac.authorization.k8s.io/v1
2-
kind: ClusterRole
3-
metadata:
4-
name: manager-role
5-
labels:
6-
rancher-turtles/aggregate-to-manager: "true"
7-
---
8-
apiVersion: rbac.authorization.k8s.io/v1
92
kind: ClusterRoleBinding
103
metadata:
114
name: manager-rolebinding

exp/clusterclass/config/rbac/kustomization.yaml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,4 +12,5 @@ resources:
1212
- aggregated_role.yaml
1313

1414
patches:
15-
- path: manager_role_aggregation_patch.yaml
15+
- path: manager_role_patch.yaml
16+
- path: manager_rolebinding_patch.yaml

exp/clusterclass/config/rbac/manager_role_aggregation_patch.yaml

Lines changed: 0 additions & 15 deletions
This file was deleted.
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
apiVersion: rbac.authorization.k8s.io/v1
2+
kind: ClusterRole
3+
metadata:
4+
name: manager-role
5+
labels:
6+
rancher-turtles/aggregate-to-manager: "true"
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
apiVersion: rbac.authorization.k8s.io/v1
2+
kind: ClusterRoleBinding
3+
metadata:
4+
name: manager-rolebinding
5+
roleRef:
6+
apiGroup: rbac.authorization.k8s.io
7+
kind: ClusterRole
8+
name: aggregated-manager-role

exp/day2/config/default/kustomization.yaml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,8 @@ resources:
1818
patches:
1919
- path: manager_webhook_patch.yaml
2020
- path: webhookcainjection_patch.yaml
21-
- path: manager_role_aggregation_patch.yaml
21+
- path: manager_role_patch.yaml
22+
- path: manager_rolebinding_patch.yaml
2223
- path: manager_image_patch.yaml
2324
- path: manager_pull_policy.yaml
2425

exp/day2/config/default/manager_role_aggregation_patch.yaml

Lines changed: 0 additions & 15 deletions
This file was deleted.
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
apiVersion: rbac.authorization.k8s.io/v1
2+
kind: ClusterRole
3+
metadata:
4+
name: manager-role
5+
labels:
6+
rancher-turtles-exp/aggregate-to-manager: "true"

0 commit comments

Comments
 (0)