Skip to content

Commit

Permalink
examples: Fix YAML error backendRefs in HTTP Header Modifier
Browse files Browse the repository at this point in the history
The use case "HTTP Header Modifier" has wrong 'backendRefs' service name:
  $kubectl describe HTTPRoute header-http-echo
      Message:               Service "echo" not found
      Observed Generation:   1
      Reason:                BackendNotFound
      Status:                False

The right service name should be "echo-1", which has port number 8080:
  $kubectl describe HTTPRoute header-http-echo
      Message:               Service reference is valid
      Observed Generation:   1
      Reason:                ResolvedRefs
      Status:                True
      Type:                  ResolvedRefs

Fixes: bb50725 ("Header Modifier and Splitting use cases")
Signed-off-by: Haiyue Wang <[email protected]>
  • Loading branch information
haiyuewa authored and ldelossa committed Sep 20, 2023
1 parent 5e32026 commit 8db9095
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion examples/kubernetes/gateway/request-header.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -32,5 +32,5 @@ spec:
- name: my-header-name
value: my-header-value
backendRefs:
- name: echo
- name: echo-1
port: 8080

0 comments on commit 8db9095

Please sign in to comment.