Description of problem:
Try to edit a route and add http headers, error occurs
Version-Release number of selected component (if applicable):
4.14.0-0.test-2023-08-11-020607-ci-ln-w3vvz7t-latest
How reproducible:
100%
Steps to Reproduce:
1. % oc get clusterversion NAME VERSION AVAILABLE PROGRESSING SINCE STATUS version 4.14.0-0.test-2023-08-11-020607-ci-ln-w3vvz7t-latest True False 71m Cluster version is 4.14.0-0.test-2023-08-11-020607-ci-ln-w3vvz7t-latest % 2. % oc get route NAME HOST/PORT PATH SERVICES PORT TERMINATION WILDCARD unsec-server3 unsec-server3.int1.96631af62fbba11dd509.hypershift.aws-2.ci.openshift.org unsec-server3 http None % 3. `oc edit route unsec-server3` and it works fine the first we edit it. httpHeaders: actions: response: - name: X-Frame action: type: Set set: value: "DENY" 4. Try to edit the route the second time by adding below http headers, error occurs % oc edit route unsec-server3 A copy of your changes has been stored to "/var/folders/k6/x356dxnx7ts1g54fh9l_0df00000gn/T/oc-edit-1457943818.yaml" error: unable to find api field in struct RouteSpec for the json field "httpHeaders" % httpHeaders: actions: response: - name: X-Cache-Info action: type: Set set: value: "not cacheable; meta data too large" request: - name: Content-Location action: type: Set set: value: /my-first-blog-post - name: shudi action: type: Delete 4. % oc version Client Version: 4.14.0-0.nightly-2023-08-10-072041 Kustomize Version: v5.0.1 Server Version: 4.14.0-0.test-2023-08-11-020607-ci-ln-w3vvz7t-latest Kubernetes Version: v1.27.4+5b94811 %
Actual results:
error occurs when edited the route
Expected results:
http headers can be added to the route by edited it
Additional info:
- links to
-
RHEA-2023:5006 rpm