Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewParser ¶
func NewParser() parser.IngressAnnotation
NewParser creates a new Affinity annotation parser
Types ¶
type AffinityConfig ¶
type AffinityConfig struct { // The type of affinity that will be used AffinityType string `json:"type"` CookieConfig }
AffinityConfig describes the per ingress session affinity config
type CookieConfig ¶
type CookieConfig struct { // The name of the cookie that will be used in case of cookie affinity type. Name string `json:"name"` // The cookie strategy that will be used in case of cookie affinity type. Strategy string `json:"strategy"` // The hash that will be used to encode the cookie in case of cookie affinity type Hash string `json:"hash"` // Indicates whether or not dynamic cookies will be generated. Dynamic bool `json:"dynamic"` }
CookieConfig describes the Config of cookie type affinity
func CookieAffinityParse ¶
func CookieAffinityParse(ing *extensions.Ingress) *CookieConfig
CookieAffinityParse gets the annotation values related to Cookie Affinity It also sets default values when no value or incorrect value is found
Click to show internal directories.
Click to hide internal directories.