util

package
v0.0.0-...-d880fa5 Latest Latest
Warning

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

Go to latest
Published: Oct 18, 2021 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ConsoleLinkName

func ConsoleLinkName(atlasMap *v1alpha1.AtlasMap) string

ConsoleLinkName generates a name for an OpenShift ConsoleLink

func ConsoleLinkText

func ConsoleLinkText(atlasMap *v1alpha1.AtlasMap) string

ConsoleLinkText generates text to be displayed for an OpenShift ConsoleLink

func GetEnvVar

func GetEnvVar(name string, defaultValue string) string

GetEnvVar gets the value of the given environment variable or returns a default value if it does not exist

func GetIngressHostNameFor

func GetIngressHostNameFor(atlasMap *v1alpha1.AtlasMap) string

GetIngressHostNameFor generates a host name for the Ingress host

func ImageName

func ImageName(image string, tag string) string

ImageName generates a container image name from the given name and tag

func IsOpenShift

func IsOpenShift(config *rest.Config) (bool, error)

IsOpenShift returns true if the platform cluster is OpenShift

func IsOpenShift43Plus

func IsOpenShift43Plus(config *rest.Config) bool

IsOpenShift43Plus returns true if the cluster version is OpenShift >= 4.3

Types

This section is empty.

Jump to

Keyboard shortcuts

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