This commit is contained in:
Manuel de Brito Fontes 2017-09-17 13:34:29 -03:00
parent 2c3b29c0b7
commit 7fda959a45
4 changed files with 25 additions and 166 deletions

View file

@ -381,6 +381,16 @@ func (ic GenericController) GetDefaultBackend() defaults.Backend {
return ic.cfg.Backend.BackendDefaults()
}
// GetPublishService returns the configured service used to set ingress status
func (ic GenericController) GetPublishService() *api.Service {
s, err := ic.GetService(ic.cfg.PublishService)
if err != nil {
return nil
}
return s
}
// GetRecorder returns the event recorder
func (ic GenericController) GetRecorder() record.EventRecorder {
return ic.recorder