Commit 9577b8a9 authored by Geoff Simmons's avatar Geoff Simmons

Missing dataplane secret is non-fatal on deletion of a haproxy offloader.

We assume that the Service is being deleted, and delete Secret has
already been executed; then it is not necessary to re-configure
the offloader, since it wil be deleted altogether.
parent ee941b61
......@@ -582,6 +582,12 @@ func (hc *Controller) removeOffldrInstances(
insts []*haproxyInst) (errs OffldrErrors) {
for _, inst := range insts {
if inst.dplanePasswd == nil || *inst.dplanePasswd == "" {
hc.log.Warnf("Remove offloader instance %s: "+
"dataplane password not set, assuming that "+
"the instance is already deleted", inst.name)
continue
}
version := inst.status.version + 1
hc.log.Debugf("haproxy instance %s: starting tx for version "+
"%d", inst.name, version)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment