Description of problem: HTTPHeaders setting in IngressController resource doesn't work expectedly https://access.redhat.com/documentation/en-us/openshift_container_platform/4.6/html/networking/configuring-ingress#nw-using-ingress-forwarded_configuring-ingress Version-Release number of selected component (if applicable): How reproducible: Always Steps to Reproduce: 1. Use the following command to edit the IngressController resource: $ oc edit IngressController 2. Add httpHeaders related settings apiVersion: operator.openshift.io/v1 kind: IngressController metadata: name: default namespace: openshift-ingress-operator spec: httpHeaders: # <-- added forwarded: # <-- added policy: append # <-- added 3. Save Actual results: The setting wasn't applied properly: spec: httpHeaders: {} Expected results: httpHeaders related settings works properly Additional info:
For modifying the "httpHeader" the recommended way would be setting in the below way: ------ spec: httpHeaders: forwardedHeaderPolicy: Append ------ This parameter will take "Replace/ IfNone / Never" options. Kindly try to set the forwarded option in the above way and check whether it helps.
Hi Arvind, Thanks for your kind reply. I tested with below way and it's worked! :) ------ spec: httpHeaders: forwardedHeaderPolicy: Append ------ Maybe the documentation should be fixed accordingly?
To correct this, I've opened a minor PR[0]. Thanks. [0] https://github.com/openshift/openshift-docs/pull/29429