Skip to content

Commit

Permalink
Merge pull request #236 from gianlucam76/release-0.10
Browse files Browse the repository at this point in the history
Add extension.projectsveltos.io permissions
  • Loading branch information
gianlucam76 authored May 23, 2023
2 parents b15a308 + ac8cb35 commit ba3e709
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 0 deletions.
8 changes: 8 additions & 0 deletions config/rbac/role.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -167,6 +167,14 @@ rules:
- get
- list
- watch
- apiGroups:
- extension.projectsveltos.io
resources:
- yttsources
verbs:
- get
- list
- watch
- apiGroups:
- infrastructure.cluster.x-k8s.io
resources:
Expand Down
1 change: 1 addition & 0 deletions controllers/utils.go
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ import (
"github.com/projectsveltos/libsveltos/lib/utils"
)

//+kubebuilder:rbac:groups=extension.projectsveltos.io,resources=yttsources,verbs=get;list;watch
//+kubebuilder:rbac:groups=lib.projectsveltos.io,resources=debuggingconfigurations,verbs=get;list;watch
//+kubebuilder:rbac:groups=apiextensions.k8s.io,resources=customresourcedefinitions,verbs=get;list;watch
//+kubebuilder:rbac:groups=*,resources=*,verbs=get;list;watch;impersonate
Expand Down
8 changes: 8 additions & 0 deletions manifest/manifest.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -1567,6 +1567,14 @@ rules:
- get
- list
- watch
- apiGroups:
- extension.projectsveltos.io
resources:
- yttsources
verbs:
- get
- list
- watch
- apiGroups:
- infrastructure.cluster.x-k8s.io
resources:
Expand Down

0 comments on commit ba3e709

Please sign in to comment.