Fix exec of readSecrets
This commit is contained in:
parent
75cccbbd32
commit
62e000ebf2
2 changed files with 7 additions and 6 deletions
|
|
@ -238,14 +238,14 @@ func (ic GenericController) GetService(name string) (*apiv1.Service, error) {
|
|||
// sync collects all the pieces required to assemble the configuration file and
|
||||
// then sends the content to the backend (OnUpdate) receiving the populated
|
||||
// template as response reloading the backend if is required.
|
||||
func (ic *GenericController) syncIngress(key interface{}) error {
|
||||
func (ic *GenericController) syncIngress(element interface{}) error {
|
||||
ic.syncRateLimiter.Accept()
|
||||
|
||||
if ic.syncQueue.IsShuttingDown() {
|
||||
return nil
|
||||
}
|
||||
|
||||
if name, ok := key.(string); ok {
|
||||
if name, ok := element.(task.Element).Key.(string); ok {
|
||||
if obj, exists, _ := ic.listers.Ingress.GetByKey(name); exists {
|
||||
ing := obj.(*extensions.Ingress)
|
||||
ic.readSecrets(ing)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue