Documentation ¶
Index ¶
- Constants
- Variables
- func AnnotationsReferencesConfigmap(obj client.Object) bool
- func GetAnnotationWithPrefix(suffix string) string
- func GetBoolAnnotation(name string, obj client.Object) (bool, error)
- func GetFloatAnnotation(name string, obj client.Object) (float32, error)
- func GetIntAnnotation(name string, obj client.Object) (int, error)
- func GetStringAnnotation(name string, obj client.Object) (string, error)
- func GetStringMapAnnotation(name string, obj client.Object) (map[string]string, error)
- func GetStringSliceAnnotation(name string, obj client.Object) ([]string, error)
- func StringToURL(input string) (*url.URL, error)
- type Annotation
Constants ¶
View Source
const DefaultAnnotationsPrefix = "k8s.ngrok.com"
DefaultAnnotationsPrefix defines the common prefix used in the nginx ingress controller
Variables ¶
View Source
var ( // AnnotationsPrefix is the mutable attribute that the controller explicitly refers to AnnotationsPrefix = DefaultAnnotationsPrefix )
Functions ¶
func AnnotationsReferencesConfigmap ¶
AnnotationsReferencesConfigmap checks if at least one annotation in the Ingress rule references a configmap.
func GetAnnotationWithPrefix ¶
GetAnnotationWithPrefix returns the annotation prefixed with the AnnotationsPrefix
func GetBoolAnnotation ¶
GetBoolAnnotation extracts a boolean from a client.Object annotation
func GetFloatAnnotation ¶
GetFloatAnnotation extracts a float32 from a client.Object annotation
func GetIntAnnotation ¶
GetIntAnnotation extracts an int from a client.Object annotation
func GetStringAnnotation ¶
GetStringAnnotation extracts a string from an client.Object annotation
func GetStringMapAnnotation ¶
Types ¶
type Annotation ¶
Annotation has a method to parse annotations located in client.Object
Click to show internal directories.
Click to hide internal directories.