Documentation
¶
Index ¶
- func CreateOIDCToken(t *testing.T, mock *mockoidc.MockOIDC, subject, email string, groups []string) string
- func CreateServiceAccount(t *testing.T, client kcpkubernetesclientset.ClusterInterface, ...) (*corev1.ServiceAccount, *corev1.Secret)
- func CreateWorkspaceOIDCAuthentication(t *testing.T, ctx context.Context, client kcpclientset.ClusterInterface, ...) string
- func CreateWorkspaceType(t *testing.T, ctx context.Context, client kcpclientset.ClusterInterface, ...) string
- func GrantWorkspaceAccess(t *testing.T, ctx context.Context, ...)
- func MockJWTAuthenticator(t *testing.T, m *mockoidc.MockOIDC, ca *crypto.CA, ...) tenancyv1alpha1.JWTAuthenticator
- func StartMockOIDC(t *testing.T, server kcptestingserver.RunningServer) (*mockoidc.MockOIDC, *crypto.CA)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateOIDCToken ¶
func CreateServiceAccount ¶
func CreateServiceAccount(t *testing.T, client kcpkubernetesclientset.ClusterInterface, workspace logicalcluster.Path, namespace string, generateName string) (*corev1.ServiceAccount, *corev1.Secret)
func CreateWorkspaceOIDCAuthentication ¶
func CreateWorkspaceOIDCAuthentication(t *testing.T, ctx context.Context, client kcpclientset.ClusterInterface, workspace logicalcluster.Path, mock *mockoidc.MockOIDC, ca *crypto.CA, extraMapping []tenancyv1alpha1.ExtraMapping) string
func CreateWorkspaceType ¶
func CreateWorkspaceType(t *testing.T, ctx context.Context, client kcpclientset.ClusterInterface, workspace logicalcluster.Path, name string, authConfigNames ...string) string
func GrantWorkspaceAccess ¶
func GrantWorkspaceAccess(t *testing.T, ctx context.Context, client kcpkubernetesclientset.ClusterInterface, workspace logicalcluster.Path, name, clusterRole string, subjects []rbacv1.Subject)
func MockJWTAuthenticator ¶
func MockJWTAuthenticator(t *testing.T, m *mockoidc.MockOIDC, ca *crypto.CA, userPrefix, groupPrefix string) tenancyv1alpha1.JWTAuthenticator
func StartMockOIDC ¶
func StartMockOIDC(t *testing.T, server kcptestingserver.RunningServer) (*mockoidc.MockOIDC, *crypto.CA)
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.