Add flag to skip the update of Ingress status on shutdown
This commit is contained in:
parent
ca5f402322
commit
05a976f9e5
4 changed files with 30 additions and 14 deletions
|
|
@ -55,7 +55,10 @@ type Config struct {
|
|||
Client clientset.Interface
|
||||
PublishService string
|
||||
IngressLister store.IngressLister
|
||||
ElectionID string
|
||||
|
||||
ElectionID string
|
||||
|
||||
UpdateStatusOnShutdown bool
|
||||
|
||||
DefaultIngressClass string
|
||||
IngressClass string
|
||||
|
|
@ -98,6 +101,11 @@ func (s statusSync) Shutdown() {
|
|||
return
|
||||
}
|
||||
|
||||
if !s.UpdateStatusOnShutdown {
|
||||
glog.Warningf("skipping update of status of Ingress rules")
|
||||
return
|
||||
}
|
||||
|
||||
glog.Infof("updating status of Ingress rules (remove)")
|
||||
|
||||
addrs, err := s.runningAddresess()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue