Documentation ¶
Index ¶
- func ApplyResourceKubernetesWithKubeConfig(kubeConfigPath, yamlFilePath string) error
- func ApplyResourceString(kubePath string, yamlString string) error
- func GetKubernetesServerVersion(kubeConfigPath string) (*version.Info, error)
- func GetPods(clientset *kubernetes.Clientset, namespace string)
- func KubectlApply(yamlString *string)
- func KubectlApplyDefault(yamlString *string)
- func KubectlApplyYamlFile(yamlFilePath string)
- func NewRestConfig(kubeconfig string) (*rest.Config, error)
- type ClientSet
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ApplyResourceKubernetesWithKubeConfig ¶
Apply resource to API server Requires Kubeconfig and path to file Equalvalent command: kubectl apply -f <filename> --kubeconfig <kubeconfig>
func ApplyResourceString ¶
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)
Types ¶
Click to show internal directories.
Click to hide internal directories.