Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Move coordination/lease RBAC permissions to Roles #10173

Merged
merged 1 commit into from Aug 1, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
48 changes: 24 additions & 24 deletions manifests/generated/operator-csv.yaml.in
Expand Up @@ -185,18 +185,6 @@ spec:
- update
- delete
- patch
- apiGroups:
- coordination.k8s.io
resources:
- leases
verbs:
- get
- list
- watch
- delete
- update
- create
- patch
- apiGroups:
- ""
resources:
Expand Down Expand Up @@ -527,18 +515,6 @@ spec:
- update
- create
- patch
- apiGroups:
- coordination.k8s.io
resources:
- leases
verbs:
- get
- list
- watch
- delete
- update
- create
- patch
- apiGroups:
- ""
resources:
Expand Down Expand Up @@ -779,6 +755,18 @@ spec:
- list
- get
- watch
- apiGroups:
- coordination.k8s.io
resources:
- leases
verbs:
- get
- list
- watch
- delete
- update
- create
- patch
- apiGroups:
- kubevirt.io
resources:
Expand Down Expand Up @@ -1432,6 +1420,18 @@ spec:
- routes/custom-host
verbs:
- create
- apiGroups:
- coordination.k8s.io
resources:
- leases
verbs:
- get
- list
- watch
- delete
- update
- create
- patch
serviceAccountName: kubevirt-operator
strategy: deployment
installModes:
Expand Down
48 changes: 24 additions & 24 deletions manifests/generated/rbac-operator.authorization.k8s.yaml.in
Expand Up @@ -63,6 +63,18 @@ rules:
- routes/custom-host
verbs:
- create
- apiGroups:
- coordination.k8s.io
resources:
- leases
verbs:
- get
- list
- watch
- delete
- update
- create
- patch
---
apiVersion: rbac.authorization.k8s.io/v1
kind: RoleBinding
Expand Down Expand Up @@ -113,18 +125,6 @@ rules:
- update
- delete
- patch
- apiGroups:
- coordination.k8s.io
resources:
- leases
verbs:
- get
- list
- watch
- delete
- update
- create
- patch
- apiGroups:
- ""
resources:
Expand Down Expand Up @@ -455,18 +455,6 @@ rules:
- update
- create
- patch
- apiGroups:
- coordination.k8s.io
resources:
- leases
verbs:
- get
- list
- watch
- delete
- update
- create
- patch
- apiGroups:
- ""
resources:
Expand Down Expand Up @@ -707,6 +695,18 @@ rules:
- list
- get
- watch
- apiGroups:
- coordination.k8s.io
resources:
- leases
verbs:
- get
- list
- watch
- delete
- update
- create
- patch
- apiGroups:
- kubevirt.io
resources:
Expand Down
22 changes: 11 additions & 11 deletions pkg/virt-operator/resource/generate/rbac/controller.go
Expand Up @@ -113,6 +113,17 @@ func newControllerRole(namespace string) *rbacv1.Role {
"watch",
},
},
{
APIGroups: []string{
"coordination.k8s.io",
},
Resources: []string{
"leases",
},
Verbs: []string{
"get", "list", "watch", "delete", "update", "create", "patch",
},
},
},
}
}
Expand Down Expand Up @@ -194,17 +205,6 @@ func newControllerClusterRole() *rbacv1.ClusterRole {
"get", "list", "watch", "delete", "update", "create", "patch",
},
},
{
APIGroups: []string{
"coordination.k8s.io",
},
Resources: []string{
"leases",
},
Verbs: []string{
"get", "list", "watch", "delete", "update", "create", "patch",
},
},
{
APIGroups: []string{
"",
Expand Down
22 changes: 11 additions & 11 deletions pkg/virt-operator/resource/generate/rbac/operator.go
Expand Up @@ -119,17 +119,6 @@ func NewOperatorClusterRole() *rbacv1.ClusterRole {
"patch",
},
},
{
APIGroups: []string{
"coordination.k8s.io",
},
Resources: []string{
"leases",
},
Verbs: []string{
"get", "list", "watch", "delete", "update", "create", "patch",
},
},
{
APIGroups: []string{
"",
Expand Down Expand Up @@ -540,6 +529,17 @@ func NewOperatorRole(namespace string) *rbacv1.Role {
"create",
},
},
{
APIGroups: []string{
"coordination.k8s.io",
},
Resources: []string{
"leases",
},
Verbs: []string{
"get", "list", "watch", "delete", "update", "create", "patch",
},
},
},
}
}
Expand Down