kubelib

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Feb 11, 2022 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AppendHelmKubeArguments

func AppendHelmKubeArguments(arguments []string, kubeConfig KubeConfig) []string

func CheckHelmOrFatal

func CheckHelmOrFatal(helmExeLocation string)

func CheckPodsInPhase

func CheckPodsInPhase(clientset *kubernetes.Clientset, namespace string, podNamePrefix string, podPhase v1.PodPhase) (bool, error)

func GetKubeConfigPath

func GetKubeConfigPath() string

func GetServiceLoadBalancerUrls

func GetServiceLoadBalancerUrls(clientset *kubernetes.Clientset, namespace string, serviceName string) ([]string, error)

func InstallHelm

func InstallHelm(helmExeLocation string, helmChartLocation string, kubeConfig KubeConfig, extraArguments []string, installName string, namespace string)

func WaitPodsInPhase

func WaitPodsInPhase(clientset *kubernetes.Clientset, namespace string, podNamePrefix string, podPhase v1.PodPhase) error

Types

type KubeConfig

type KubeConfig struct {
	ConfigFile string
	ApiServer  string
	CAFile     string
	CA         []byte
	KubeToken  string
}

func (*KubeConfig) Cleanup

func (t *KubeConfig) Cleanup() error

Jump to

Keyboard shortcuts

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