annotations

package
v0.0.0-...-004a839 Latest Latest
Warning

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

Go to latest
Published: Sep 4, 2023 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetAnnotation

func GetAnnotation(t metav1.ObjectMeta, annotation Annotation) string

GetAnnotation returns the value of the given annotation on the given object

func GetAnnotationBool

func GetAnnotationBool(t metav1.ObjectMeta, annotation Annotation, def bool) bool

GetAnnotationBool returns whether the annotation has the string value "true" or if the annotation does not exist, the specified default

func GetAnnotationInt

func GetAnnotationInt(t metav1.ObjectMeta, annotation Annotation, def int) int

GetAnnotationInt returns the int value of the specified annotation or if the annotation does not exist, the specified default

func GetAnnotationList

func GetAnnotationList(t metav1.ObjectMeta, annotation Annotation, def []string) (res []string)

GetAnnotationList returns the list of values specified in the annotation or if the annotation does not exist, the specified default

func GetAnnotationOrDefault

func GetAnnotationOrDefault(t metav1.ObjectMeta, annotation Annotation, def string) string

GetAnnotation returns the value of the given annotation on the given object

func HasAnnotation

func HasAnnotation(t metav1.ObjectMeta, annotation Annotation) bool

HasAnnotation checks if the given annotation exists on the given object

Types

type Annotation

type Annotation string
const (
	AnnotationBackendProtocol          Annotation = "backend-protocol"
	AnnotationInsecureSkipVerify       Annotation = "insecure-skip-verify"
	AnnotationKeepAlive                Annotation = "keepalive"
	AnnotationProxyHTTPVersion         Annotation = "proxy-http-version"
	AnnotationProxyNextUpstreamTimeout Annotation = "proxy-next-upstream-timeout"
	AnnotationRewriteTarget            Annotation = "rewrite-target"
	AnnotationSSLRedirect              Annotation = "ssl-redirect"
	AnnotationTrustedProxies           Annotation = "trusted-proxies"

	// Basic Auth annotations
	AnnotationBasicUsername Annotation = "basic-auth-username"
	AnnotationBasicPassword Annotation = "basic-auth-password"
	AnnotationBasicSalt     Annotation = "basic-auth-salt"
)

Jump to

Keyboard shortcuts

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