Merge pull request #2776 from aledbf/hash

Fix configuration hash calculation
This commit is contained in:
k8s-ci-robot 2018-07-13 10:57:26 -07:00 committed by GitHub
commit e1cb784dd7
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -98,6 +98,11 @@ type Backend struct {
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.
// 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