Change Denied to *string

This commit is contained in:
Alex Kursell 2019-02-22 11:48:13 -05:00
parent 62191fc3e2
commit 53538acbaf
4 changed files with 6 additions and 5 deletions

View file

@ -81,7 +81,7 @@ type Ingress struct {
CustomHTTPErrors []int
DefaultBackend *apiv1.Service
//TODO: Change this back into an error when https://github.com/imdario/mergo/issues/100 is resolved
Denied string
Denied *string
ExternalAuth authreq.Config
HTTP2PushPreload bool
Proxy proxy.Config
@ -183,7 +183,8 @@ func (e Extractor) Extract(ing *extensions.Ingress) *Ingress {
_, alreadyDenied := data[DeniedKeyName]
if !alreadyDenied {
data[DeniedKeyName] = err.Error()
errString := err.Error()
data[DeniedKeyName] = &errString
klog.Errorf("error reading %v annotation in Ingress %v/%v: %v", name, ing.GetNamespace(), ing.GetName(), err)
continue
}