Skip to content

Commit

Permalink
Merge pull request kubevirt#10765 from fossedihelm/add_authorization_…
Browse files Browse the repository at this point in the history
…to_view_user

Allow kubevirt.io:view role to get,list kubevirts
  • Loading branch information
kubevirt-bot authored Nov 28, 2023
2 parents 3cd705e + d5b1067 commit d07f8d2
Show file tree
Hide file tree
Showing 5 changed files with 543 additions and 142 deletions.
7 changes: 7 additions & 0 deletions manifests/generated/operator-csv.yaml.in
Original file line number Diff line number Diff line change
Expand Up @@ -1151,6 +1151,13 @@ spec:
- get
- list
- watch
- apiGroups:
- kubevirt.io
resources:
- kubevirts
verbs:
- get
- list
- apiGroups:
- subresources.kubevirt.io
resources:
Expand Down
7 changes: 7 additions & 0 deletions manifests/generated/rbac-operator.authorization.k8s.yaml.in
Original file line number Diff line number Diff line change
Expand Up @@ -1091,6 +1091,13 @@ rules:
- get
- list
- watch
- apiGroups:
- kubevirt.io
resources:
- kubevirts
verbs:
- get
- list
- apiGroups:
- subresources.kubevirt.io
resources:
Expand Down
13 changes: 13 additions & 0 deletions pkg/virt-operator/resource/generate/rbac/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,11 @@ go_library(
"//pkg/virt-operator/resource/generate/components:go_default_library",
"//staging/src/kubevirt.io/api/clone:go_default_library",
"//staging/src/kubevirt.io/api/core/v1:go_default_library",
"//staging/src/kubevirt.io/api/export:go_default_library",
"//staging/src/kubevirt.io/api/instancetype:go_default_library",
"//staging/src/kubevirt.io/api/migrations:go_default_library",
"//staging/src/kubevirt.io/api/pool:go_default_library",
"//staging/src/kubevirt.io/api/snapshot:go_default_library",
"//vendor/k8s.io/api/core/v1:go_default_library",
"//vendor/k8s.io/api/rbac/v1:go_default_library",
"//vendor/k8s.io/apimachinery/pkg/apis/meta/v1:go_default_library",
Expand All @@ -29,16 +32,26 @@ go_library(
go_test(
name = "go_default_test",
srcs = [
"cluster_test.go",
"operator_test.go",
"rbac_suite_test.go",
],
embed = [":go_default_library"],
deps = [
"//pkg/virt-operator/resource/generate/components:go_default_library",
"//staging/src/kubevirt.io/api/clone:go_default_library",
"//staging/src/kubevirt.io/api/core/v1:go_default_library",
"//staging/src/kubevirt.io/api/export:go_default_library",
"//staging/src/kubevirt.io/api/instancetype:go_default_library",
"//staging/src/kubevirt.io/api/migrations:go_default_library",
"//staging/src/kubevirt.io/api/pool:go_default_library",
"//staging/src/kubevirt.io/api/snapshot:go_default_library",
"//staging/src/kubevirt.io/client-go/testutils:go_default_library",
"//vendor/github.com/onsi/ginkgo/v2:go_default_library",
"//vendor/github.com/onsi/gomega:go_default_library",
"//vendor/k8s.io/api/core/v1:go_default_library",
"//vendor/k8s.io/api/rbac/v1:go_default_library",
"//vendor/k8s.io/apimachinery/pkg/apis/meta/v1/unstructured:go_default_library",
"//vendor/k8s.io/apimachinery/pkg/runtime:go_default_library",
],
)
Loading

0 comments on commit d07f8d2

Please sign in to comment.