registration

package
v1.0.0-alpha.0 Latest Latest
Warning

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

Go to latest
Published: Sep 30, 2019 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func MakeConfig

func MakeConfig(user string) string

MakeConfig checks/gets serviceaccount of the user (actually, the namespace), and if the serviceaccount exists this function checks/gets its secret, and then CA and token info of the secret. Subsequently, this reads cluster and server info of the current context from the config file to use them on the creation of kubeconfig.

func MakeUser

func MakeUser(user string) ([]byte, int)

MakeUser generates key and certificate and then set credentials into the config file. As the next step, this function creates user role and role bindings for the namespace. Lastly, this checks the namespace created successfully or not.

Types

This section is empty.

Jump to

Keyboard shortcuts

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