You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
add status message when attempting to attach to headless service (#12918)
If the `parent_ref` of an HTTPRoute resource is set to a headless service, the policy controller gives the HTTPRoute a status of NoMatchingParent:
```
- conditions:
- lastTransitionTime: "2024-07-30T22:52:24Z"
message: ""
reason: NoMatchingParent
status: "False"
type: Accepted
```
However, this can be misleading because the parent does exist, but is not a valid parent because it does not have a cluster IP.
We make this error easier to understand by adding a message to the status condition in this case:
```
- lastTransitionTime: "2024-07-30T22:51:29Z"
message: parent service must have a ClusterIP
reason: NoMatchingParent
status: "False"
type: Accepted
```
Signed-off-by: Alex Leong <[email protected]>
0 commit comments