From 9890ab343b1fe9aad23044260f4052ba356ef74e Mon Sep 17 00:00:00 2001 From: Manuel de Brito Fontes Date: Fri, 13 Jul 2018 09:46:40 -0400 Subject: [PATCH] Fix configuration hash calculation --- internal/ingress/types.go | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/internal/ingress/types.go b/internal/ingress/types.go index abd7be73d..558f0b493 100644 --- a/internal/ingress/types.go +++ b/internal/ingress/types.go @@ -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