Skip to content

Remove code prefixing "httproute-" in targetRefs.name field of securitypolicy ref.#4

Merged
tuascloan merged 1 commit intovitistack:mainfrom
haahaakon:fix-httproute-ref
Mar 6, 2026
Merged

Remove code prefixing "httproute-" in targetRefs.name field of securitypolicy ref.#4
tuascloan merged 1 commit intovitistack:mainfrom
haahaakon:fix-httproute-ref

Conversation

@haahaakon
Copy link
Copy Markdown
Contributor

The securitypolicy does not match the HTTPRoute when the prefix "httproute-" is in the name field of the ref.

Example

k get httproute
NAME                      HOSTNAMES                                    AGE
my-nginx-hnet-httproute   ["fredag.t-lb-001.central-az1.sky.nhn.no"]   10m

results in this ref:

  targetRefs:
  - group: gateway.networking.k8s.io
    kind: HTTPRoute
    name: httproute-my-nginx-hnet-httproute

which will not match the actual httproute. This fix aims to correct that.

@tuascloan tuascloan merged commit c04404a into vitistack:main Mar 6, 2026
1 of 2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants