File tree 1 file changed +2
-2
lines changed
internal/ingress/annotations/authreq
1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -430,7 +430,7 @@ func (a authReq) Parse(ing *networking.Ingress) (interface{}, error) {
430
430
klog .V (3 ).InfoS ("auth-set-proxy-headers annotation is undefined and will not be set" , "err" , err )
431
431
}
432
432
433
- cns , _ , err := cache .SplitMetaNamespaceKey (proxySetHeaderMap )
433
+ cns , cn , err := cache .SplitMetaNamespaceKey (proxySetHeaderMap )
434
434
if err != nil {
435
435
return nil , ing_errors.LocationDeniedError {
436
436
Reason : fmt .Errorf ("error reading configmap name %s from annotation: %w" , proxySetHeaderMap , err ),
@@ -452,7 +452,7 @@ func (a authReq) Parse(ing *networking.Ingress) (interface{}, error) {
452
452
var proxySetHeaders map [string ]string
453
453
454
454
if proxySetHeaderMap != "" {
455
- proxySetHeadersMapContents , err := a .r .GetConfigMap (proxySetHeaderMap )
455
+ proxySetHeadersMapContents , err := a .r .GetConfigMap (cns + "/" + cn )
456
456
if err != nil {
457
457
return nil , ing_errors .NewLocationDenied (fmt .Sprintf ("unable to find configMap %q" , proxySetHeaderMap ))
458
458
}
You can’t perform that action at this time.
0 commit comments