Skip to content

Commit d8582ba

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 9a26d29 commit d8582ba

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
@@ -272,9 +272,7 @@ func (k *K8s) EventConfigMap(ns *Namespace, data *ConfigMap) (updateRequired boo
272272
case DELETED:
273273
cm.Loaded = false
274274
cm.Annotations = map[string]string{}
275-
if !cm.Empty() {
276-
updateRequired = true
277-
}
275+
updateRequired = true
278276
logger.Debugf("configmap '%s/%s' deleted", cm.Namespace, cm.Name)
279277
}
280278
return updateRequired

0 commit comments

Comments
 (0)