add create clusterrolebinding command

This commit is contained in:
deads2k
2016-11-18 11:23:59 -05:00
parent 47cf64e9c5
commit e300f01a1b
10 changed files with 236 additions and 0 deletions

View File

@@ -422,6 +422,8 @@ runTests() {
# make sure the server was properly bootstrapped with clusterroles and bindings
kube::test::get_object_assert clusterroles/cluster-admin "{{.metadata.name}}" 'cluster-admin'
kube::test::get_object_assert clusterrolebindings/cluster-admin "{{.metadata.name}}" 'cluster-admin'
kubectl create "${kube_flags[@]}" clusterrolebinding super-admin --clusterrole=admin --user=super-admin
kube::test::get_object_assert clusterrolebinding/super-admin "{{range.subjects}}{{.name}}:{{end}}" 'super-admin:'
###########################
# POD creation / deletion #