Documentation ¶
Index ¶
- Constants
- func CreateClusterBinding(ctx context.Context, client bindclient.Interface, ...) error
- func CreateNamespace(ctx context.Context, client kubernetes.Interface, generateName, id string) (*corev1.Namespace, error)
- func CreateSASecret(ctx context.Context, client kubernetes.Interface, ns, saName string) (*corev1.Secret, error)
- func CreateServiceAccount(ctx context.Context, client kubeclient.Interface, ns, name string) (*corev1.ServiceAccount, error)
- func GenerateKubeconfig(ctx context.Context, client kubernetes.Interface, clusterConfig *rest.Config, ...) (*corev1.Secret, error)
Constants ¶
View Source
const ( ServiceAccountTokenType = "kubernetes.io/service-account-token" ServiceAccountTokenAnnotation = "kubernetes.io/service-account.name" ServiceAccountName = "kube-binder" KubeconfigSecretName = "kubeconfig" ClusterBindingName = "cluster" //TODO(MQ): maybe think of a better label name. ExportedCRDsLabel = "kube-bind.io/exported" )
View Source
const (
IdentityAnnotationKey = "example-backend.kube-bind.io/identity"
)
Variables ¶
This section is empty.
Functions ¶
func CreateClusterBinding ¶
func CreateNamespace ¶
func CreateSASecret ¶
func CreateServiceAccount ¶
func CreateServiceAccount(ctx context.Context, client kubeclient.Interface, ns, name string) (*corev1.ServiceAccount, error)
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.