Skip to content

Commit

Permalink
Update bootstrap test fixtures for aggregate cluster-reader
Browse files Browse the repository at this point in the history
  • Loading branch information
Matt Rogers committed Jul 11, 2018
1 parent 726079c commit 8d0c4df
Show file tree
Hide file tree
Showing 2 changed files with 46 additions and 208 deletions.
127 changes: 23 additions & 104 deletions test/testdata/bootstrappolicy/bootstrap_cluster_roles.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -66,46 +66,45 @@ items:
- userextras/scopes.authorization.openshift.io
verbs:
- impersonate
- apiVersion: rbac.authorization.k8s.io/v1
- aggregationRule:
clusterRoleSelectors:
- matchLabels:
rbac.authorization.k8s.io/aggregate-to-cluster-reader: "true"
- matchLabels:
rbac.authorization.k8s.io/aggregate-to-view: "true"
apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRole
metadata:
annotations:
authorization.openshift.io/system-only: "true"
rbac.authorization.kubernetes.io/autoupdate: "true"
creationTimestamp: null
name: cluster-reader
rules: null
- apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRole
metadata:
annotations:
authorization.openshift.io/system-only: "true"
rbac.authorization.kubernetes.io/autoupdate: "true"
creationTimestamp: null
labels:
rbac.authorization.k8s.io/aggregate-to-cluster-reader: "true"
name: system:openshift:aggregate-to-cluster-reader
rules:
- apiGroups:
- ""
resources:
- bindings
- componentstatuses
- configmaps
- endpoints
- events
- limitranges
- namespaces
- namespaces/status
- nodes
- nodes/status
- persistentvolumeclaims
- persistentvolumeclaims/status
- persistentvolumes
- persistentvolumes/status
- pods
- pods/binding
- pods/eviction
- pods/log
- pods/status
- podtemplates
- replicationcontrollers
- replicationcontrollers/scale
- replicationcontrollers/status
- resourcequotas
- resourcequotas/status
- securitycontextconstraints
- serviceaccounts
- services
- services/status
verbs:
- get
Expand All @@ -124,16 +123,9 @@ items:
- apps
resources:
- controllerrevisions
- daemonsets
- daemonsets/status
- deployments
- deployments/scale
- deployments/status
- replicasets
- replicasets/scale
- replicasets/status
- statefulsets
- statefulsets/scale
- statefulsets/status
verbs:
- get
Expand All @@ -160,7 +152,6 @@ items:
- apiGroups:
- autoscaling
resources:
- horizontalpodautoscalers
- horizontalpodautoscalers/status
verbs:
- get
Expand All @@ -169,9 +160,7 @@ items:
- apiGroups:
- batch
resources:
- cronjobs
- cronjobs/status
- jobs
- jobs/status
verbs:
- get
Expand All @@ -180,24 +169,16 @@ items:
- apiGroups:
- extensions
resources:
- daemonsets
- daemonsets/status
- deployments
- deployments/scale
- deployments/status
- horizontalpodautoscalers
- horizontalpodautoscalers/status
- ingresses
- ingresses/status
- jobs
- jobs/status
- networkpolicies
- podsecuritypolicies
- replicasets
- replicasets/scale
- replicasets/status
- replicationcontrollers
- replicationcontrollers/scale
- storageclasses
- thirdpartyresources
verbs:
Expand All @@ -212,18 +193,9 @@ items:
- get
- list
- watch
- apiGroups:
- networking.k8s.io
resources:
- networkpolicies
verbs:
- get
- list
- watch
- apiGroups:
- policy
resources:
- poddisruptionbudgets
- poddisruptionbudgets/status
- podsecuritypolicies
verbs:
Expand Down Expand Up @@ -293,23 +265,7 @@ items:
- ""
- build.openshift.io
resources:
- buildconfigs
- buildconfigs/webhooks
- builds
- builds/details
- builds/log
verbs:
- get
- list
- watch
- apiGroups:
- ""
- apps.openshift.io
resources:
- deploymentconfigs
- deploymentconfigs/log
- deploymentconfigs/scale
- deploymentconfigs/status
verbs:
- get
- list
Expand All @@ -320,10 +276,6 @@ items:
resources:
- images
- imagesignatures
- imagestreamimages
- imagestreams
- imagestreams/status
- imagestreamtags
verbs:
- get
- list
Expand All @@ -348,29 +300,25 @@ items:
- ""
- project.openshift.io
resources:
- projectrequests
- projects
verbs:
- get
- list
- watch
- apiGroups:
- ""
- quota.openshift.io
- project.openshift.io
resources:
- appliedclusterresourcequotas
- clusterresourcequotas
- clusterresourcequotas/status
- projectrequests
verbs:
- get
- list
- watch
- apiGroups:
- ""
- route.openshift.io
- quota.openshift.io
resources:
- routes
- routes/status
- clusterresourcequotas
- clusterresourcequotas/status
verbs:
- get
- list
Expand Down Expand Up @@ -404,18 +352,6 @@ items:
- get
- list
- watch
- apiGroups:
- ""
- template.openshift.io
resources:
- processedtemplates
- templateconfigs
- templateinstances
- templates
verbs:
- get
- list
- watch
- apiGroups:
- ""
- template.openshift.io
Expand Down Expand Up @@ -492,23 +428,6 @@ items:
- '*'
verbs:
- get
- apiGroups:
- ""
- build.openshift.io
resources:
- buildlogs
verbs:
- get
- list
- watch
- apiGroups:
- ""
resources:
- resourcequotausages
verbs:
- get
- list
- watch
- apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRole
metadata:
Expand Down
Loading

0 comments on commit 8d0c4df

Please sign in to comment.