Documentation ¶
Index ¶
- Constants
- Variables
- func AnnotationsReferencesConfigmap(ing *networking.Ingress) bool
- func GetAnnotationWithPrefix(suffix string) string
- func GetBoolAnnotation(name string, ing *networking.Ingress) (bool, error)
- func GetIntAnnotation(name string, ing *networking.Ingress) (int, error)
- func GetStringAnnotation(name string, ing *networking.Ingress) (string, error)
- func StringToURL(input string) (*url.URL, error)
- type IngressAnnotation
Constants ¶
View Source
const DefaultAnnotationsPrefix = "nginx.ingress.kubernetes.io"
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 ¶
func AnnotationsReferencesConfigmap(ing *networking.Ingress) bool
AnnotationsReferencesConfigmap checks if at least one annotation in the Ingress rule references a configmap.
func GetAnnotationWithPrefix ¶
GetAnnotationWithPrefix returns the prefix of ingress annotations
func GetBoolAnnotation ¶
func GetBoolAnnotation(name string, ing *networking.Ingress) (bool, error)
GetBoolAnnotation extracts a boolean from an Ingress annotation
func GetIntAnnotation ¶
func GetIntAnnotation(name string, ing *networking.Ingress) (int, error)
GetIntAnnotation extracts an int from an Ingress annotation
func GetStringAnnotation ¶
func GetStringAnnotation(name string, ing *networking.Ingress) (string, error)
GetStringAnnotation extracts a string from an Ingress annotation
Types ¶
type IngressAnnotation ¶
type IngressAnnotation interface {
Parse(ing *networking.Ingress) (interface{}, error)
}
IngressAnnotation has a method to parse annotations located in Ingress
Click to show internal directories.
Click to hide internal directories.