public

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Apr 15, 2023 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ConvertStringToKubeClient

func ConvertStringToKubeClient(kubeconfig string) (*kubernetes.Clientset, error)

func ConvertStringToRawConfig

func ConvertStringToRawConfig(kubeconfig string) (clientcmdapi.Config, error)

func ConvertStringToRestConfig

func ConvertStringToRestConfig(kubeconfig string) (*rest.Config, error)

func CreateClusterRoleBinding

func CreateClusterRoleBinding(client *kubernetes.Clientset, roleBindingName string, roleName string, sa KubernetesServiceAccount) error

func CreateServiceAccount

func CreateServiceAccount(client *kubernetes.Clientset, sa KubernetesServiceAccount) error

func DeleteClusterRoleBinding

func DeleteClusterRoleBinding(client *kubernetes.Clientset, roleBindingName string) error

func DeleteServiceAccount

func DeleteServiceAccount(client *kubernetes.Clientset, sa KubernetesServiceAccount, removeNameSpace bool) error

Types

type KubernetesServiceAccount

type KubernetesServiceAccount struct {
	Name      string `yaml:"name"`
	Namespace string `yaml:"namespace"`
}

Jump to

Keyboard shortcuts

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