Skip to content

Commit 7fe7393

Browse files
fabianonunesoktalz
authored andcommitted
BUG/MINOR: Prevent unnecessary reloads when cookie-persistence is enabled
When a Service/Ingress/ConfigMap is configured with the annotation `cookie-persistence`, the comparison with the corresponding backend in the HAProxy settings will always fail, because the `backend.Cookie.Domain` attribute of an initialized model is a `<nil slice>` and the corresponding value returned by HAProxy is an empty array.
1 parent c9da575 commit 7fe7393

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

pkg/annotations/service/cookie.go

+1
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@ func (a *Cookie) Process(k store.K8s, annotations ...map[string]string) error {
3636
Nocache: true,
3737
Indirect: true,
3838
Dynamic: true,
39+
Domains: []*models.Domain{},
3940
}
4041
return nil
4142
}

0 commit comments

Comments
 (0)