Documentation ¶
Index ¶
- func CreateOrUpdateServiceAccount(ctx context.Context, kubeClient kubernetes.Interface, ...) error
- func DeleteServiceAccount(ctx context.Context, kubeClient kubernetes.Interface, namespace, name string) error
- func GetKubeClient() (kubernetes.Interface, error)
- func GetKubeConfig() (*rest.Config, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateOrUpdateServiceAccount ¶
func CreateOrUpdateServiceAccount(ctx context.Context, kubeClient kubernetes.Interface, namespace, name, clientID, tenantID string, tokenExpiration time.Duration) error
Create ServiceAccount in the cluster If the ServiceAccount already exists, error is returned
func DeleteServiceAccount ¶
func DeleteServiceAccount(ctx context.Context, kubeClient kubernetes.Interface, namespace, name string) error
Delete ServiceAccount in the cluster
func GetKubeClient ¶
func GetKubeClient() (kubernetes.Interface, error)
GetKubeClient returns a Kubernetes clientset.
func GetKubeConfig ¶
GetKubeConfig returns the kubeconfig
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.