Merge pull request #2776 from aledbf/hash
Fix configuration hash calculation
This commit is contained in:
commit
e1cb784dd7
1 changed files with 5 additions and 0 deletions
|
@ -98,6 +98,11 @@ type Backend struct {
|
||||||
LoadBalancing string `json:"load-balance,omitempty"`
|
LoadBalancing string `json:"load-balance,omitempty"`
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// HashInclude defines if a field should be used or not to calculate the hash
|
||||||
|
func (s Backend) HashInclude(field string, v interface{}) (bool, error) {
|
||||||
|
return (field != "Endpoints"), nil
|
||||||
|
}
|
||||||
|
|
||||||
// SessionAffinityConfig describes different affinity configurations for new sessions.
|
// SessionAffinityConfig describes different affinity configurations for new sessions.
|
||||||
// Once a session is mapped to a backend based on some affinity setting, it
|
// Once a session is mapped to a backend based on some affinity setting, it
|
||||||
// retains that mapping till the backend goes down, or the ingress controller
|
// retains that mapping till the backend goes down, or the ingress controller
|
||||||
|
|
Loading…
Reference in a new issue