Skip to content
This repository has been archived by the owner on Dec 16, 2024. It is now read-only.

Commit

Permalink
remove all extra labels
Browse files Browse the repository at this point in the history
  • Loading branch information
maleck13 committed Nov 9, 2023
1 parent 5012370 commit 941393f
Show file tree
Hide file tree
Showing 15 changed files with 56 additions and 92 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRole
metadata:
creationTimestamp: null
labels:
app.kubernetes.io/component: rbac
app.kubernetes.io/created-by: multicluster-gateway-controller
app.kubernetes.io/instance: dnsrecord-editor-role
app.kubernetes.io/managed-by: kustomize
app.kubernetes.io/name: clusterrole
app.kubernetes.io/part-of: multicluster-gateway-controller
name: mgc-dnsrecord-editor-role
rules:
- apiGroups:
- kuadrant.io
resources:
- dnsrecords
verbs:
- create
- delete
- get
- list
- patch
- update
- watch
- apiGroups:
- kuadrant.io
resources:
- dnsrecords/status
verbs:
- get
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRole
metadata:
creationTimestamp: null
name: mgc-dnsrecord-viewer-role
rules:
- apiGroups:
- kuadrant.io
resources:
- dnsrecords
verbs:
- get
- list
- watch
- apiGroups:
- kuadrant.io
resources:
- dnsrecords/status
verbs:
- get
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ metadata:
annotations:
alm-examples: '[]'
capabilities: Basic Install
createdAt: "2023-11-07T08:57:03Z"
createdAt: "2023-11-09T08:42:12Z"
operators.operatorframework.io/builder: operator-sdk-v1.28.0
operators.operatorframework.io/project_layout: go.kubebuilder.io/v3
name: multicluster-gateway-controller.v0.0.0
Expand Down Expand Up @@ -506,7 +506,7 @@ spec:
- get
- patch
- update
serviceAccountName: mgc-kuadrant-policy-controller
serviceAccountName: mgc-policy-controller
deployments:
- label:
app.kubernetes.io/component: manager
Expand Down Expand Up @@ -621,14 +621,8 @@ spec:
serviceAccountName: mgc-add-on-manager
terminationGracePeriodSeconds: 10
- label:
app.kubernetes.io/component: manager
app.kubernetes.io/created-by: policy-controller
app.kubernetes.io/instance: policy-controller
app.kubernetes.io/managed-by: kustomize
app.kubernetes.io/name: deployment
app.kubernetes.io/part-of: kuadrant
control-plane: policy-controller
name: mgc-kuadrant-policy-controller
name: mgc-policy-controller
spec:
replicas: 1
selector:
Expand Down Expand Up @@ -676,7 +670,7 @@ spec:
- ALL
securityContext:
runAsNonRoot: true
serviceAccountName: mgc-kuadrant-policy-controller
serviceAccountName: mgc-policy-controller
terminationGracePeriodSeconds: 10
permissions:
- rules:
Expand Down Expand Up @@ -744,7 +738,7 @@ spec:
verbs:
- create
- patch
serviceAccountName: mgc-kuadrant-policy-controller
serviceAccountName: mgc-policy-controller
strategy: deployment
installModes:
- supported: false
Expand Down
7 changes: 0 additions & 7 deletions config/policy-controller/default/kustomization.yaml
Original file line number Diff line number Diff line change
@@ -1,11 +1,4 @@

# Value of this field is prepended to the
# names of all resources, e.g. a deployment named
# "wordpress" becomes "alices-wordpress".
# Note that it should also match with the prefix (text before '-') of the namespace
# field above.
namePrefix: kuadrant-


resources:
- ../manager
Expand Down
6 changes: 0 additions & 6 deletions config/policy-controller/manager/manager.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,12 +12,6 @@ metadata:
namespace: system
labels:
control-plane: policy-controller
app.kubernetes.io/name: deployment
app.kubernetes.io/instance: policy-controller
app.kubernetes.io/component: manager
app.kubernetes.io/created-by: policy-controller
app.kubernetes.io/part-of: kuadrant
app.kubernetes.io/managed-by: kustomize
spec:
selector:
matchLabels:
Expand Down
7 changes: 0 additions & 7 deletions config/policy-controller/rbac/dnsrecord_viewer_role.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,6 @@
apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRole
metadata:
labels:
app.kubernetes.io/name: clusterrole
app.kubernetes.io/instance: dnsrecord-viewer-role
app.kubernetes.io/component: rbac
app.kubernetes.io/created-by: multicluster-gateway-controller
app.kubernetes.io/part-of: multicluster-gateway-controller
app.kubernetes.io/managed-by: kustomize
name: dnsrecord-viewer-role
rules:
- apiGroups:
Expand Down
7 changes: 0 additions & 7 deletions config/policy-controller/rbac/leader_election_role.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,6 @@
apiVersion: rbac.authorization.k8s.io/v1
kind: Role
metadata:
labels:
app.kubernetes.io/name: role
app.kubernetes.io/instance: policy-controller-leader-election-role
app.kubernetes.io/component: rbac
app.kubernetes.io/created-by: policy-controller
app.kubernetes.io/part-of: kuadrant
app.kubernetes.io/managed-by: kustomize
name: policy-controller-leader-election-role
namespace: system
rules:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,6 @@ 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: multicluster-gateway-controller
app.kubernetes.io/part-of: multicluster-gateway-controller
app.kubernetes.io/managed-by: kustomize
name: policy-controller-leader-election-rolebinding
roleRef:
apiGroup: rbac.authorization.k8s.io
Expand Down
7 changes: 0 additions & 7 deletions config/policy-controller/rbac/managedzone_editor_role.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,6 @@
apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRole
metadata:
labels:
app.kubernetes.io/name: clusterrole
app.kubernetes.io/instance: managedzone-editor-role
app.kubernetes.io/component: rbac
app.kubernetes.io/created-by: multicluster-gateway-controller
app.kubernetes.io/part-of: multicluster-gateway-controller
app.kubernetes.io/managed-by: kustomize
name: managedzone-editor-role
rules:
- apiGroups:
Expand Down
7 changes: 0 additions & 7 deletions config/policy-controller/rbac/managedzone_viewer_role.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,6 @@
apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRole
metadata:
labels:
app.kubernetes.io/name: clusterrole
app.kubernetes.io/instance: managedzone-viewer-role
app.kubernetes.io/component: rbac
app.kubernetes.io/created-by: multicluster-gateway-controller
app.kubernetes.io/part-of: multicluster-gateway-controller
app.kubernetes.io/managed-by: kustomize
name: managedzone-viewer-role
rules:
- apiGroups:
Expand Down
7 changes: 0 additions & 7 deletions config/policy-controller/rbac/rolebinding.yaml
Original file line number Diff line number Diff line change
@@ -1,13 +1,6 @@
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: policy-controller
app.kubernetes.io/part-of: kuadrant
app.kubernetes.io/managed-by: kustomize
name: policy-controller-rolebinding
roleRef:
apiGroup: rbac.authorization.k8s.io
Expand Down
7 changes: 0 additions & 7 deletions config/policy-controller/rbac/service_account.yaml
Original file line number Diff line number Diff line change
@@ -1,12 +1,5 @@
apiVersion: v1
kind: ServiceAccount
metadata:
labels:
app.kubernetes.io/name: serviceaccount
app.kubernetes.io/instance: policy-controller
app.kubernetes.io/component: rbac
app.kubernetes.io/created-by: policy-controller
app.kubernetes.io/part-of: kuadrant
app.kubernetes.io/managed-by: kustomize
name: policy-controller
namespace: system
7 changes: 0 additions & 7 deletions config/policy-controller/rbac/tlspolicy_editor_role.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,6 @@
apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRole
metadata:
labels:
app.kubernetes.io/name: clusterrole
app.kubernetes.io/instance: tlspolicy-editor-role
app.kubernetes.io/component: rbac
app.kubernetes.io/created-by: tmp
app.kubernetes.io/part-of: tmp
app.kubernetes.io/managed-by: kustomize
name: tlspolicy-editor-role
rules:
- apiGroups:
Expand Down
7 changes: 0 additions & 7 deletions config/policy-controller/rbac/tlspolicy_viewer_role.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,6 @@
apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRole
metadata:
labels:
app.kubernetes.io/name: clusterrole
app.kubernetes.io/instance: tlspolicy-viewer-role
app.kubernetes.io/component: rbac
app.kubernetes.io/created-by: tmp
app.kubernetes.io/part-of: tmp
app.kubernetes.io/managed-by: kustomize
name: tlspolicy-viewer-role
rules:
- apiGroups:
Expand Down
6 changes: 0 additions & 6 deletions config/prometheus/policy-controller-monitor.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,6 @@ kind: ServiceMonitor
metadata:
labels:
control-plane: policy-controller
app.kubernetes.io/name: servicemonitor
app.kubernetes.io/instance: policy-controller-metrics-monitor
app.kubernetes.io/component: metrics
app.kubernetes.io/created-by: policy-controller
app.kubernetes.io/part-of: kuadrant
app.kubernetes.io/managed-by: kustomize
name: policy-controller-metrics-monitor
namespace: system
spec:
Expand Down

0 comments on commit 941393f

Please sign in to comment.