Documentation ¶
Index ¶
- Variables
- func BuildWorkloadClusterRESTKubeConfig(kubeconfig string) (*rest.Config, error)
- func GetCoreV1Client() (v12.CoreV1Interface, error)
- func GetKubeConfig() (*rest.Config, error)
- func GetKubeConfigLocation() (string, error)
- func GetKubernetesClientsetWithConfig(config *rest.Config) (*kubernetes.Clientset, error)
- func GetRESTConfigGivenString(kubeconfig string) (*rest.Config, error)
- func IsPodReady(ctx context.Context, pod *v1.Pod) bool
- func ResetGetVerrazzanoVersionOfAdminClusterFunc()
Constants ¶
This section is empty.
Variables ¶
View Source
var GetVerrazzanoVersionOfAdminClusterFunc = getVerrazzanoVersionOfAdminCluster
Used for unit testing
Functions ¶
func BuildWorkloadClusterRESTKubeConfig ¶
BuildWorkloadClusterRESTKubeConfig writes the kubeconfig to a temporary file and then returns the rest.config
func GetCoreV1Client ¶
func GetCoreV1Client() (v12.CoreV1Interface, error)
func GetKubeConfig ¶
GetKubeConfig Returns kubeconfig from KUBECONFIG env var if set Else from default location ~/.kube/config
func GetKubeConfigLocation ¶
GetKubeConfigLocation Helper function to obtain the default kubeConfig location
func GetKubernetesClientsetWithConfig ¶
func GetKubernetesClientsetWithConfig(config *rest.Config) (*kubernetes.Clientset, error)
GetKubernetesClientsetWithConfig returns the Kubernetes clientset for the given configuration
func IsPodReady ¶
IsPodReady checks if POD is in ready state
func ResetGetVerrazzanoVersionOfAdminClusterFunc ¶
func ResetGetVerrazzanoVersionOfAdminClusterFunc()
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.