Remove interface type from annotations.Ingress struct
This commit is contained in:
parent
f53cacd5e1
commit
521be9b258
3 changed files with 5 additions and 4 deletions
|
|
@ -80,7 +80,8 @@ type Ingress struct {
|
|||
CorsConfig cors.Config
|
||||
CustomHTTPErrors []int
|
||||
DefaultBackend *apiv1.Service
|
||||
Denied error
|
||||
//TODO: Change this back into an error when https://github.com/imdario/mergo/issues/100 is resolved
|
||||
Denied string
|
||||
ExternalAuth authreq.Config
|
||||
HTTP2PushPreload bool
|
||||
Proxy proxy.Config
|
||||
|
|
@ -182,7 +183,7 @@ func (e Extractor) Extract(ing *extensions.Ingress) *Ingress {
|
|||
|
||||
_, alreadyDenied := data[DeniedKeyName]
|
||||
if !alreadyDenied {
|
||||
data[DeniedKeyName] = err
|
||||
data[DeniedKeyName] = err.Error()
|
||||
klog.Errorf("error reading %v annotation in Ingress %v/%v: %v", name, ing.GetNamespace(), ing.GetName(), err)
|
||||
continue
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue