Documentation ¶
Index ¶
- Constants
- func CreateAdminClusterRoleBinding(ctx context.Context, client kubeclient.Interface, ns string) error
- func CreateClusterBinding(ctx context.Context, client bindclient.Interface, name, ns string) error
- func CreateNamespace(ctx context.Context, ns string, client kubernetes.Interface) error
- func CreateSASecret(ctx context.Context, client kubernetes.Interface, ns string) (*corev1.Secret, error)
- func CreateServiceAccount(ctx context.Context, client kubeclient.Interface, ns string) (*corev1.ServiceAccount, error)
- func GenerateKubeconfig(ctx context.Context, client kubernetes.Interface, ...) (*corev1.Secret, error)
- type AuthCode
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 CreateClusterBinding ¶
func CreateNamespace ¶
func CreateSASecret ¶
func CreateServiceAccount ¶
func CreateServiceAccount(ctx context.Context, client kubeclient.Interface, ns string) (*corev1.ServiceAccount, error)
func GenerateKubeconfig ¶
Types ¶
Click to show internal directories.
Click to hide internal directories.