Skip to content

Commit 891234d

Browse files
hdurand0710Gopher Bot
authored andcommitted
BUG/MEDIUM: errorfile configmap deletion should trigger an update
If an errorfile configmap is deleted, this should trigger an haproxy config update and should not rely on some other change to trigger it.
1 parent f3a71a3 commit 891234d

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

.aspell.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ allowed:
99
- Github
1010
- Gitlab
1111
- env
12+
- errorfile
1213
- failsafe
1314
- golang
1415
- mkdir

pkg/store/events.go

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -304,9 +304,7 @@ func (k *K8s) EventConfigMap(ns *Namespace, data *ConfigMap) (updateRequired boo
304304
case DELETED:
305305
cm.Loaded = false
306306
cm.Annotations = map[string]string{}
307-
if !cm.Empty() {
308-
updateRequired = true
309-
}
307+
updateRequired = true
310308
logger.Debugf("configmap '%s/%s' deleted", cm.Namespace, cm.Name)
311309
}
312310
return updateRequired

0 commit comments

Comments
 (0)