resources

package
v0.0.9 Latest Latest
Warning

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

Go to latest
Published: Oct 11, 2022 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ServiceAccountTokenType       = "kubernetes.io/service-account-token"
	ServiceAccountTokenAnnotation = "kubernetes.io/service-account.name"
	ClusterAdminName              = "kubebind-cluster-admin"
	SessionIDs                    = "session-ids"
	ClusterBindingName            = "cluster"
	ClusterBindingKubeConfig      = "cluster-admin-kubeconfig"
)

Variables

This section is empty.

Functions

func CreateAdminClusterRoleBinding

func CreateAdminClusterRoleBinding(ctx context.Context, client kubeclient.Interface, ns string) error

func CreateClusterBinding

func CreateClusterBinding(ctx context.Context, client bindclient.Interface, name, ns string) error

func CreateNamespace

func CreateNamespace(ctx context.Context, ns string, client kubernetes.Interface) error

func CreateSASecret

func CreateSASecret(ctx context.Context, client kubernetes.Interface, ns string) (*corev1.Secret, error)

func CreateServiceAccount

func CreateServiceAccount(ctx context.Context, client kubeclient.Interface, ns string) (*corev1.ServiceAccount, error)

func GenerateKubeconfig

func GenerateKubeconfig(ctx context.Context,
	client kubernetes.Interface,
	host, clusterName, secretName, ns string,
) (*corev1.Secret, error)

Types

type AuthCode added in v0.0.9

type AuthCode struct {
	RedirectURL string
	SessionID   string
}

AuthCode represents the data that are needed to complete the full authentication workflow. TODO: We should come up with something more standarized but this is good enough for now.

Jump to

Keyboard shortcuts

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