install authorization.k8s.io/v1, add tests

Use specific v1beta1 Authorization client

Add client expansions
This commit is contained in:
Jordan Liggitt
2017-01-30 14:35:28 -05:00
parent 31d45fe78f
commit 8706bc9617
24 changed files with 270 additions and 16 deletions

View File

@@ -74,7 +74,7 @@ var _ = framework.KubeDescribe("[Feature:Example]", func() {
framework.BindClusterRoleInNamespace(c.Rbac(), "edit", f.Namespace.Name,
rbacv1beta1.Subject{Kind: rbacv1beta1.ServiceAccountKind, Namespace: f.Namespace.Name, Name: "default"})
err := framework.WaitForAuthorizationUpdate(c.Authorization(),
err := framework.WaitForAuthorizationUpdate(c.AuthorizationV1beta1(),
serviceaccount.MakeUsername(f.Namespace.Name, "default"),
f.Namespace.Name, "create", schema.GroupResource{Resource: "pods"}, true)
framework.ExpectNoError(err)