registration

package
v1.0.0-alpha.1 Latest Latest
Warning

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

Go to latest
Published: Dec 1, 2020 License: Apache-2.0 Imports: 24 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

Clientset to be synced by the custom resources

Functions

func CreateConfig

func CreateConfig(serviceAccount *corev1.ServiceAccount) string

CreateConfig checks serviceaccount of the user and then it gets that secret to use CA and token information. Subsequently, that reads cluster and server info of the current context from the config file to be consumed on the creation of kubeconfig.

func CreateServiceAccount

func CreateServiceAccount(userCopy *apps_v1alpha.User, accountType string, ownerReferences []metav1.OwnerReference) (*corev1.ServiceAccount, error)

CreateServiceAccount makes a service account to serve for permanent jobs.

func MakeConfig

func MakeConfig(authority, username, email string, clientCert, clientKey []byte) error

MakeConfig reads cluster, server, and CA info of the current context from the config file to use them on the creation of kubeconfig. Then generates kubeconfig by certs.

func MakeUser

func MakeUser(authority, username, email string) ([]byte, []byte, error)

MakeUser generates key and certificate and then set user credentials into the config file.

Types

This section is empty.

Jump to

Keyboard shortcuts

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