Documentation ¶
Index ¶
- func CreateNamespace(useInClusterConfig bool, namespace string) error
- func DoHelmUpgrade(project string, stage string) error
- func ExecuteCommand(command string, args []string) (string, error)
- func ExecuteCommandInDirectory(command string, args []string, directory string) (string, error)
- func ExistsNamespace(useInClusterConfig bool, namespace string) (bool, error)
- func ExpandTilde(fileName string) string
- func GetClientset(useInClusterConfig bool) (*kubernetes.Clientset, error)
- func GetFiles(workingPath string, suffixes ...string) ([]string, error)
- func GetKeptnDirectory() (string, error)
- func GetKeptnDomain(useInClusterConfig bool) (string, error)
- func GetKubeAPI(useInClusterConfig bool) (v1.CoreV1Interface, error)
- func RestartPodsWithSelector(useInClusterConfig bool, namespace string, selector string) error
- func ScaleDeployment(useInClusterConfig bool, deployment string, namespace string, replicas int32) error
- func UserHomeDir() string
- func WaitForDeploymentToBeRolledOut(useInClusterConfig bool, deploymentName string, namespace string) error
- func WaitForDeploymentsInNamespace(useInClusterConfig bool, namespace string) error
- func WaitForPodsWithSelector(useInClusterConfig bool, namespace string, selector string, retries int, ...) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateNamespace ¶
CreateNamespace creates a new Kubernetes namespace with the provided name
func DoHelmUpgrade ¶
DoHelmUpgrade executes a helm update and upgrade
func ExecuteCommand ¶
ExecuteCommand exectues the command using the args
func ExecuteCommandInDirectory ¶
ExecuteCommandInDirectory executes the command using the args within the specified directory
func ExistsNamespace ¶
ExistsNamespace checks whether a namespace with the provided name exists
func GetClientset ¶
func GetClientset(useInClusterConfig bool) (*kubernetes.Clientset, error)
GetClientset returns the kubernetes Clientset
func GetKeptnDirectory ¶
GetKeptnDirectory returns a path, which is used to store logs and possibly creds
func GetKeptnDomain ¶
GetKeptnDomain reads the configmap keptn-domain in namespace keptn and returns the contained app_domain
func GetKubeAPI ¶
func GetKubeAPI(useInClusterConfig bool) (v1.CoreV1Interface, error)
GetKubeAPI returns the CoreV1Interface
func RestartPodsWithSelector ¶
RestartPodsWithSelector restarts the pods which are found in the provided namespace and selector
func ScaleDeployment ¶
func UserHomeDir ¶
func UserHomeDir() string
UserHomeDir returns the HOME directory by taking into account the operating system
func WaitForDeploymentToBeRolledOut ¶
func WaitForDeploymentToBeRolledOut(useInClusterConfig bool, deploymentName string, namespace string) error
WaitForDeploymentToBeRolledOut waits until the deployment is Available
func WaitForDeploymentsInNamespace ¶
WaitForDeploymentsInNamespace waits until all deployments in a namespace are available
Types ¶
This section is empty.