Documentation ¶
Index ¶
- Variables
- func CreateConfig(serviceAccount *corev1.ServiceAccount) string
- func CreateServiceAccount(userCopy *apps_v1alpha.User, accountType string, ...) (*corev1.ServiceAccount, error)
- func MakeConfig(authority, username, email string, clientCert, clientKey []byte) error
- func MakeUser(authority, username, email string) ([]byte, []byte, error)
Constants ¶
This section is empty.
Variables ¶
View Source
var Clientset kubernetes.Interface
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 ¶
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.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.