Process queue items by time window
This commit is contained in:
parent
37262bda76
commit
768cbb89d6
4 changed files with 59 additions and 22 deletions
|
|
@ -113,8 +113,6 @@ type GenericController struct {
|
|||
runningConfig *ingress.Configuration
|
||||
|
||||
forceReload int32
|
||||
|
||||
initialSyncDone int32
|
||||
}
|
||||
|
||||
// Configuration contains all the settings required by an Ingress controller
|
||||
|
|
@ -1224,8 +1222,6 @@ func (ic *GenericController) Start() {
|
|||
|
||||
createDefaultSSLCertificate()
|
||||
|
||||
ic.setInitialSyncDone()
|
||||
|
||||
go ic.syncQueue.Run(time.Second, ic.stopCh)
|
||||
|
||||
if ic.syncStatus != nil {
|
||||
|
|
@ -1251,14 +1247,6 @@ func (ic *GenericController) setForceReload(shouldReload bool) {
|
|||
}
|
||||
}
|
||||
|
||||
func (ic *GenericController) isInitialSyncDone() bool {
|
||||
return atomic.LoadInt32(&ic.initialSyncDone) != 0
|
||||
}
|
||||
|
||||
func (ic *GenericController) setInitialSyncDone() {
|
||||
atomic.StoreInt32(&ic.initialSyncDone, 1)
|
||||
}
|
||||
|
||||
func createDefaultSSLCertificate() {
|
||||
defCert, defKey := ssl.GetFakeSSLCert()
|
||||
c, err := ssl.AddOrUpdateCertAndKey(fakeCertificate, defCert, defKey, []byte{})
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue