Skip to content

Commit

Permalink
kube124: Adds new clusterRole for Upsyncer
Browse files Browse the repository at this point in the history
  • Loading branch information
jmprusi committed Nov 29, 2022
1 parent 067006c commit 0c98074
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 0 deletions.
5 changes: 5 additions & 0 deletions config/rootcompute/kube-1.24/bootstrap.go
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,11 @@ import (
confighelpers "github.com/kcp-dev/kcp/config/helpers"
)

const (
// UpsyncedClusterRoleName is the name of the ClusterRole that is used to grant permissions for upsyncing to syncers.
UpsyncedClusterRoleName = "compute:apiexport:kubernetes:upsynced-permission-policy"
)

//go:embed *.yaml
var KubeComputeFS embed.FS

Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRole
metadata:
name: compute:apiexport:kubernetes:upsynced-permission-policy
rules:
- apiGroups: [""]
resources: ["pods", "pods/status"]
verbs: ["*"]

0 comments on commit 0c98074

Please sign in to comment.