Skip to content

Commit

Permalink
Introduce a ClusterRole to allow for using knative-serving oustide of…
Browse files Browse the repository at this point in the history
… cluster-admin
  • Loading branch information
cab105 committed Nov 6, 2018
1 parent c612f6e commit 6f4314b
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 0 deletions.
1 change: 1 addition & 0 deletions cloudbuild.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ steps:
mkdir -p knative/templates
mv Chart.yaml ./knative
mv values.yaml ./knative
mv knative-cluster-role.yaml ./knative/templates
# Get the Istio manifest
- name: 'gcr.io/cloud-builders/wget'
Expand Down
25 changes: 25 additions & 0 deletions knative-cluster-role.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRole
metadata:
name: knative-serving-only-role
labels:
rbac.authorization.k8s.io/aggregate-to-edit: "true"
rules:
- apiGroups:
- serving.knative.dev
resources:
- configurations
- configurationgenerations
- routes
- revisions
- revisionuids
- autoscalers
- services
verbs:
- get
- list
- create
- update
- delete
- patch
- watch

0 comments on commit 6f4314b

Please sign in to comment.