kubernetesclient

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Nov 17, 2023 License: CC0-1.0 Imports: 19 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ApplyResourceKubernetesWithKubeConfig

func ApplyResourceKubernetesWithKubeConfig(kubeConfigPath, yamlFilePath string) error

Apply resource to API server Requires Kubeconfig and path to file Equalvalent command: kubectl apply -f <filename> --kubeconfig <kubeconfig>

func ApplyResourceString

func ApplyResourceString(kubePath string, yamlString string) error

func GetKubernetesServerVersion

func GetKubernetesServerVersion(kubeConfigPath string) (*version.Info, error)

func GetPods

func GetPods(clientset *kubernetes.Clientset, namespace string)

func KubectlApply

func KubectlApply(yamlString *string)

func KubectlApplyDefault

func KubectlApplyDefault(yamlString *string)

func KubectlApplyYamlFile

func KubectlApplyYamlFile(yamlFilePath string)

func NewRestConfig

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

Types

type ClientSet

type ClientSet *kubernetes.Clientset

func CreateKubernetesClient

func CreateKubernetesClient(kubeConfigPath *string) (ClientSet, error)

Jump to

Keyboard shortcuts

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