util

package
v0.18.9 Latest Latest
Warning

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

Go to latest
Published: Jun 21, 2018 License: MIT Imports: 12 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 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)

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

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 RunDiagnostics

func RunDiagnostics() (string, error)

RunDiagnostics runs the openshift diagnostics command.

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