authorization

package
v0.0.0-...-4d0922f Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 13, 2020 License: Apache-2.0 Imports: 50 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddUserAdminToProject

func AddUserAdminToProject(oc *exutil.CLI, namespace, user string) string

func AddUserEditToProject

func AddUserEditToProject(oc *exutil.CLI, namespace, user string) string

func AddUserToRoleInProject

func AddUserToRoleInProject(oc *exutil.CLI, clusterrolebinding, namespace, user string) string

func AddUserViewToProject

func AddUserViewToProject(oc *exutil.CLI, namespace, user string) string

func RunLegacyClusterRoleBindingEndpoint

func RunLegacyClusterRoleBindingEndpoint(t g.GinkgoTInterface, authorizationClient authorizationv1client.AuthorizationV1Interface, kubeClient kubernetes.Interface, namespace string)

RunLegacyClusterRoleBindingEndpoint exercises the legacy clusterrolebinding endpoint that is proxied to rbac

func RunLegacyClusterRoleEndpoint

func RunLegacyClusterRoleEndpoint(t g.GinkgoTInterface, authorizationClient authorizationv1client.AuthorizationV1Interface, kubeClient kubernetes.Interface, namespace string)

RunLegacyClusterRoleEndpoint exercises the legacy clusterrole endpoint that is proxied to rbac

func RunLegacyEndpointConfirmNoEscalation

func RunLegacyEndpointConfirmNoEscalation(t g.GinkgoTInterface, clusterAdminAuthorizationClient, userAuthorizationClient authorizationv1client.AuthorizationV1Interface, kubeClient kubernetes.Interface, userName, namespace string)

RunLegacyEndpointConfirmNoEscalation tests that the authorization proxy endpoints cannot be used to bypass the RBAC escalation checks. It also makes sure that the GR in the returned error matches authorization v1.

func RunLegacyLocalRoleBindingEndpoint

func RunLegacyLocalRoleBindingEndpoint(t g.GinkgoTInterface, authorizationClient authorizationv1client.AuthorizationV1Interface, kubeClient kubernetes.Interface, namespace string)

RunLegacyLocalRoleBindingEndpoint exercises the legacy rolebinding endpoint that is proxied to rbac

func RunLegacyLocalRoleEndpoint

func RunLegacyLocalRoleEndpoint(t g.GinkgoTInterface, authorizationClient authorizationv1client.AuthorizationV1Interface, kubeClient kubernetes.Interface, namespace string)

RunLegacyLocalRoleEndpoint exercises the legacy role endpoint that is proxied to rbac

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL