Skip to content

Commit

Permalink
Add poollet permissions for certificate signing
Browse files Browse the repository at this point in the history
  • Loading branch information
adracus committed Mar 27, 2023
1 parent 961a88f commit 4a28dda
Show file tree
Hide file tree
Showing 9 changed files with 96 additions and 0 deletions.
15 changes: 15 additions & 0 deletions config/apiserver/rbac/bucketpool_role.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,21 @@ rules:
- patch
- update
- watch
- apiGroups:
- certificates.k8s.io
resources:
- certificatesigningrequests
verbs:
- create
- get
- list
- watch
- apiGroups:
- certificates.k8s.io
resources:
- certificatesigningrequests/bucketpoolclient
verbs:
- create
- apiGroups:
- storage.api.onmetal.de
resources:
Expand Down
15 changes: 15 additions & 0 deletions config/apiserver/rbac/machinepool_role.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,21 @@ rules:
- patch
- update
- watch
- apiGroups:
- certificates.k8s.io
resources:
- certificatesigningrequests
verbs:
- create
- get
- list
- watch
- apiGroups:
- certificates.k8s.io
resources:
- certificatesigningrequests/machinepoolclient
verbs:
- create
- apiGroups:
- compute.api.onmetal.de
resources:
Expand Down
15 changes: 15 additions & 0 deletions config/apiserver/rbac/volumepool_role.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,21 @@ rules:
- patch
- update
- watch
- apiGroups:
- certificates.k8s.io
resources:
- certificatesigningrequests
verbs:
- create
- get
- list
- watch
- apiGroups:
- certificates.k8s.io
resources:
- certificatesigningrequests/volumepoolclient
verbs:
- create
- apiGroups:
- storage.api.onmetal.de
resources:
Expand Down
15 changes: 15 additions & 0 deletions config/bucketpoollet-broker/poollet-rbac/role.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,21 @@ rules:
- patch
- update
- watch
- apiGroups:
- certificates.k8s.io
resources:
- certificatesigningrequests
verbs:
- create
- get
- list
- watch
- apiGroups:
- certificates.k8s.io
resources:
- certificatesigningrequests/bucketpoolclient
verbs:
- create
- apiGroups:
- storage.api.onmetal.de
resources:
Expand Down
15 changes: 15 additions & 0 deletions config/machinepoollet-broker/poollet-rbac/role.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,21 @@ rules:
- patch
- update
- watch
- apiGroups:
- certificates.k8s.io
resources:
- certificatesigningrequests
verbs:
- create
- get
- list
- watch
- apiGroups:
- certificates.k8s.io
resources:
- certificatesigningrequests/machinepoolclient
verbs:
- create
- apiGroups:
- compute.api.onmetal.de
resources:
Expand Down
15 changes: 15 additions & 0 deletions config/volumepoollet-broker/poollet-rbac/role.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,21 @@ rules:
- patch
- update
- watch
- apiGroups:
- certificates.k8s.io
resources:
- certificatesigningrequests
verbs:
- create
- get
- list
- watch
- apiGroups:
- certificates.k8s.io
resources:
- certificatesigningrequests/volumepoolclient
verbs:
- create
- apiGroups:
- storage.api.onmetal.de
resources:
Expand Down
2 changes: 2 additions & 0 deletions poollet/bucketpoollet/controllers/rbac.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,3 +18,5 @@ package controllers

// Rules required for kubeconfig-rotation
//+kubebuilder:rbac:groups="",resources=secrets,verbs=get;list;watch;create;update;patch
//+kubebuilder:rbac:groups=certificates.k8s.io,resources=certificatesigningrequests,verbs=create;get;list;watch
//+kubebuilder:rbac:groups=certificates.k8s.io,resources=certificatesigningrequests/bucketpoolclient,verbs=create
2 changes: 2 additions & 0 deletions poollet/machinepoollet/controllers/rbac.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,3 +18,5 @@ package controllers

// Rules required for kubeconfig-rotation
//+kubebuilder:rbac:groups="",resources=secrets,verbs=get;list;watch;create;update;patch
//+kubebuilder:rbac:groups=certificates.k8s.io,resources=certificatesigningrequests,verbs=create;get;list;watch
//+kubebuilder:rbac:groups=certificates.k8s.io,resources=certificatesigningrequests/machinepoolclient,verbs=create
2 changes: 2 additions & 0 deletions poollet/volumepoollet/controllers/rbac.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,3 +18,5 @@ package controllers

// Rules required for kubeconfig-rotation
//+kubebuilder:rbac:groups="",resources=secrets,verbs=get;list;watch;create;update;patch
//+kubebuilder:rbac:groups=certificates.k8s.io,resources=certificatesigningrequests,verbs=create;get;list;watch
//+kubebuilder:rbac:groups=certificates.k8s.io,resources=certificatesigningrequests/volumepoolclient,verbs=create

0 comments on commit 4a28dda

Please sign in to comment.