kuberneteshelper

package
v0.9.0 Latest Latest
Warning

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

Go to latest
Published: Mar 28, 2022 License: MIT Imports: 10 Imported by: 0

Documentation

Index

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

func GetKubeConfig() (*rest.Config, error)

GetKubeConfig returns the kubeconfig

Types

This section is empty.

Jump to

Keyboard shortcuts

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