Exposing the generic controller event recorder so that controllers can add events to their ingresses
@@ -340,6 +340,11 @@ func (ic GenericController) GetDefaultBackend() defaults.Backend {
return ic.cfg.Backend.BackendDefaults()
}
+// GetRecorder returns the event recorder
+func (ic GenericController) GetRecoder() record.EventRecorder {
+ return ic.recorder
+}
+
// GetSecret searches for a secret in the local secrets Store
func (ic GenericController) GetSecret(name string) (*api.Secret, error) {
s, exists, err := ic.secrLister.Store.GetByKey(name)
