Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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 <alex@buoyant.io>
- Loading branch information