util

package
v0.20.1 Latest Latest
Warning

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

Go to latest
Published: Jul 24, 2018 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ApplyFromTemplate added in v0.18.0

func ApplyFromTemplate(templateName, templateNamespace, namespace string) error

ApplyFromTemplate processes and creates the provided templateName/templateNamespace template in the provided namespace.

func DumpNodes

func DumpNodes() (string, error)

DumpNodes dumps information about nodes.

func DumpPods

func DumpPods() (string, error)

DumpPods dumps the pods from all namespaces.

func FetchClusterInfo added in v0.19.0

func FetchClusterInfo(logPath string) error

FetchClusterInfo returns node and pod information about the cluster.

func FetchLogs

func FetchLogs(kind, namespace, name string) string

FetchLogs returns logs for the provided kind/name in namespace.

func FetchOpenShiftLogs added in v0.18.0

func FetchOpenShiftLogs(distro, version, sshKeyPath, adminName, name, location, logPath string) error

FetchOpenShiftLogs returns logs for all OpenShift components (control plane and infra).

func FetchOpenShiftMetrics added in v0.19.0

func FetchOpenShiftMetrics(logPath string) error

FetchOpenShiftMetrics gathers metrics from etcd and the control plane.

func FetchWaagentLogs added in v0.19.0

func FetchWaagentLogs(sshKeyPath, adminName, name, location, logPath string) error

FetchWaagentLogs returns stdout and stderr from waagent.

func GetHost

func GetHost(name, namespace string) (string, error)

GetHost expects the name and namespace of a route in order to return its host.

func TestHost

func TestHost(host string, maxRetries int, retryDelay time.Duration) error

TestHost tries to access host and retries maxRetries times with a retryDelay that is doubled on every retry.

func WaitForDeploymentConfig

func WaitForDeploymentConfig(name, namespace string) error

WaitForDeploymentConfig waits until the provided deploymentconfig namespace/name gets deployed.

Types

This section is empty.

Jump to

Keyboard shortcuts

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