resources

package
v0.3.0 Latest Latest
Warning

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

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

Documentation

Index

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 CreateClusterBinding(ctx context.Context, client bindclient.Interface, ns, secretName, providerPrettyName string) error

func CreateNamespace

func CreateNamespace(ctx context.Context, client kubernetes.Interface, generateName, id string) (*corev1.Namespace, error)

func CreateSASecret

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

func CreateServiceAccount

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

func GenerateKubeconfig

func GenerateKubeconfig(ctx context.Context,
	client kubernetes.Interface,
	clusterConfig *rest.Config,
	externalAddress string,
	externalCA []byte,
	externalTLSServerName string,
	saSecretName, ns, kubeconfigSecretName string,
) (*corev1.Secret, error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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