util

package
v1.13.1 Latest Latest
Warning

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

Go to latest
Published: Jul 5, 2019 License: Apache-2.0 Imports: 7 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AsOwner added in v1.11.0

func AsOwner(jaeger *v1.Jaeger) metav1.OwnerReference

AsOwner returns owner reference for jaeger

func DNSName added in v1.13.0

func DNSName(name string) string

DNSName returns a dns-safe string for the given name. Any char that is not [a-z0-9] is replaced by "-". If the final name starts with "-", "a" is added as prefix. Similarly, if it ends with "-", "z" is added.

func FindItem added in v1.11.0

func FindItem(prefix string, args []string) string

FindItem returns the first item matching the given prefix

func GetEsHostname added in v1.11.0

func GetEsHostname(opts map[string]string) string

GetEsHostname return first ES hostname from options map

func GetPort added in v1.11.1

func GetPort(arg string, args []string, port int32) int32

GetPort returns a port, either from supplied default port, or extracted from supplied arg value

func InitObjectMeta added in v1.12.1

func InitObjectMeta(obj metav1.Object)

InitObjectMeta will set the required default settings to kubernetes objects metadata if is required.

func Labels added in v1.11.0

func Labels(name, component string, jaeger v1.Jaeger) map[string]string

Labels returns recommended labels

func Merge

func Merge(commonSpecs []v1.JaegerCommonSpec) *v1.JaegerCommonSpec

Merge returns a merged version of the list of JaegerCommonSpec instances with most specific first

Types

This section is empty.

Jump to

Keyboard shortcuts

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