From 9e334ce9ab3daaedc5e268527048f04a75b361fe Mon Sep 17 00:00:00 2001 From: Fabiano Parente Date: Wed, 26 May 2021 23:37:57 -0300 Subject: [PATCH] BUG/MINOR: remove `cookie` keyword from backend section if the annotation was deleted --- controller/annotations/backendCookie.go | 1 + 1 file changed, 1 insertion(+) diff --git a/controller/annotations/backendCookie.go b/controller/annotations/backendCookie.go index a730a8d0..0f4e691f 100644 --- a/controller/annotations/backendCookie.go +++ b/controller/annotations/backendCookie.go @@ -40,6 +40,7 @@ func (a *BackendCookie) Parse(input store.StringW, forceParse bool) error { func (a *BackendCookie) Update() error { if a.cookieName == "" { a.backend.Cookie = nil + return nil } cookie := models.Cookie{ Name: &a.cookieName,