-
Notifications
You must be signed in to change notification settings - Fork 1
feat: implement reconciler for apisixroute #164
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
conformance test reportapiVersion: gateway.networking.k8s.io/v1
date: "2025-06-16T07:34:48Z"
gatewayAPIChannel: standard
gatewayAPIVersion: v1.2.0
implementation:
contact: null
organization: APISIX
project: apisix-ingress-controller
url: https://github.com/apache/apisix-ingress-controller.git
version: v2.0.0
kind: ConformanceReport
mode: default
profiles:
- core:
failedTests:
- HTTPRouteInvalidBackendRefUnknownKind
result: failure
skippedTests:
- HTTPRouteHTTPSListener
statistics:
Failed: 1
Passed: 31
Skipped: 1
name: GATEWAY-HTTP
summary: Core tests failed with 1 test failures. |
conformance test reportapiVersion: gateway.networking.k8s.io/v1
date: "2025-06-16T07:36:58Z"
gatewayAPIChannel: standard
gatewayAPIVersion: v1.2.0
implementation:
contact: null
organization: APISIX
project: apisix-ingress-controller
url: https://github.com/apache/apisix-ingress-controller.git
version: v2.0.0
kind: ConformanceReport
mode: default
profiles:
- core:
result: partial
skippedTests:
- HTTPRouteHTTPSListener
statistics:
Failed: 0
Passed: 32
Skipped: 1
name: GATEWAY-HTTP
summary: Core tests partially succeeded with 1 test skips. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull Request Overview
This PR introduces a new feature that implements the ApisixRoute reconciler along with several supporting changes. Key changes include the addition of a new SetApisixRouteConditionAccepted function, updates to the indexing functions for ApisixRoute resources, and systematic replacement of local NamespacedName calls with a centralized utility.
Reviewed Changes
Copilot reviewed 36 out of 36 changed files in this pull request and generated 1 comment.
File | Description |
---|---|
internal/controller/utils.go | Added new constants and SetApisixRouteConditionAccepted function |
internal/controller/* | Updated NamespacedName usages to use utils.NamespacedName |
internal/controller/indexer/indexer.go | Added setupApisixRouteIndexer and associated index functions |
docs/crd/api.md; config/crd/bases/.yaml; api/v2/ | Updated CRDs and API types to support APISIX v2 and new operator syntaxes |
Comments suppressed due to low confidence (2)
config/crd/bases/apisix.apache.org_apisixroutes.yaml:132
- The removal of the 'weight' field from the required fields in the service spec may be a breaking change for users relying on it. Please confirm that this change is intended and document the impact accordingly.
- - weight
api/v2/reason.go:1
- The removal of the entire api/v2/reason.go file could potentially affect references elsewhere if still in use. Please verify that this removal is intentional and that no dependencies rely on it.
// Licensed under the Apache License...
if !plugin.Enable { | ||
continue | ||
} | ||
if plugin.Config == nil { | ||
continue | ||
} | ||
if plugin.SecretRef == "" { | ||
continue | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Merge into OR condition?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
fixed.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm
Type of change:
What this PR does / why we need it:
实现 ApisixRoute Reconciler
Pre-submission checklist: