hyarkoni-DN opened a new pull request, #2768:
URL: https://github.com/apache/apisix-ingress-controller/pull/2768
### Type of change:
- [x] Bugfix
- [ ] New feature provided
- [ ] Improve performance
- [ ] Backport patches
- [ ] Documentation
- [ ] Refactor
- [ ] Chore
- [ ] CI/CD or Tests
### What this PR does / why we need it:
Fixes #2767.
Stamps `condition.ObservedGeneration = cp.GetGeneration()` inside the four
Gateway-API mutator closures (`HTTPRoute`, `UDPRoute`, `TCPRoute`, `GRPCRoute`)
before `MergeCondition`, mirroring what `SetApisixCRDConditionWithGeneration`
already does for the legacy CRDs.
**Before** (HTTPRoute after a sync failure→recovery cycle):
```yaml
metadata:
generation: 1
status:
parents:
- conditions:
- type: Accepted
status: "True"
observedGeneration: 0 # mismatched
```
**After:**
```yaml
metadata:
generation: 1
status:
parents:
- conditions:
- type: Accepted
status: "True"
observedGeneration: 1 # matches metadata.generation
```
### Pre-submission checklist:
- [x] Did you explain what problem does this PR solve? Or what new features
have been added?
- [x] Have you added corresponding test cases?
- [ ] Have you modified the corresponding document?
- [x] Is this PR backward compatible?
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]