Documentation ¶
Index ¶
- func GrantServiceAccountAuthorization(t *testing.T, ctx context.Context, adminClient clientset.Interface, ...)
- func GrantUserAuthorization(t *testing.T, ctx context.Context, adminClient clientset.Interface, ...)
- func ServiceAccountClient(namespace, name string) clientFn
- func WaitForNamedAuthorizationUpdate(t *testing.T, ctx context.Context, ...)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GrantServiceAccountAuthorization ¶ added in v1.27.0
func GrantUserAuthorization ¶
func ServiceAccountClient ¶ added in v1.32.0
func ServiceAccountClient(namespace, name string) clientFn
func WaitForNamedAuthorizationUpdate ¶
func WaitForNamedAuthorizationUpdate(t *testing.T, ctx context.Context, c authorizationv1client.SubjectAccessReviewsGetter, user, namespace, verb, resourceName string, resource schema.GroupResource, allowed bool)
WaitForNamedAuthorizationUpdate checks if the given user can perform the named verb and action on the named resource. Copied from k8s.io/kubernetes/test/e2e/framework/auth.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.