Skip to content

Commit

Permalink
Merge pull request #2776 from aledbf/hash
Browse files Browse the repository at this point in the history
Fix configuration hash calculation
  • Loading branch information
k8s-ci-robot authored Jul 13, 2018
2 parents a2cf379 + 9890ab3 commit e1cb784
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions internal/ingress/types.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit e1cb784

Please sign in to comment.