internal

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Oct 7, 2019 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

View Source
const AppLabel = "app"

Application label:

Variables

This section is empty.

Functions

func EmptyDirVolume

func EmptyDirVolume(name string) corev1.Volume

func SecretEnvVar

func SecretEnvVar(name, secret, key string) corev1.EnvVar

func SecretVolume

func SecretVolume(name, secret string) corev1.Volume

func Template

func Template(source string, args ...interface{}) (result string, err error)

Template processes the given template using as data the set of name value pairs that are given as arguments. For example, to the following code:

	result, err := Template(`
             {
			"name": "{{ .Name }}",
			"flavour": {
				"id": "{{ .Flavour }}"
			}
		}
		`,
		"Name", "mycluster",
		"Flavour", "4",
	)

Produces the following result:

{
        "name": "mycluster",
        "flavour": {
                "id": "4"
        }
}

func WaitForDB

func WaitForDB(source *url.URL) error

WaitForDB waits till the given database server is responding.

func WaitForPod

func WaitForPod(client *corev1client.CoreV1Client, project, name string) (pod *corev1.Pod,
	err error)

WaitForPod waits till the given pod is ready. It returns the description of the pod contained in the event that indicated that it is ready, or an error if something fails while checking or if the pod isn't ready after one minute.

func WaitForRoute

func WaitForRoute(client *routev1client.RouteV1Client, project, name string) (route *routev1.Route, err error)

WaitForRoute waits till the given route is admitted. It returns the description of the route contained in the event that indicates that it was admitted, or an error if something fails while checking or the route isn't ready after waiting more than one minute.

func WaitForServer

func WaitForServer(client *http.Client, address string) error

WaitForServer waits till the given backend server is responding with an status code different to 503, as that indicates that it is the actual backend server and not the OpenShift router that is responding.

Types

This section is empty.

Jump to

Keyboard shortcuts

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