Skip to content

Commit 46afc60

Browse files
committed
fix: r
Signed-off-by: Ashing Zheng <[email protected]>
1 parent 60e2ab6 commit 46afc60

File tree

3 files changed

+2
-16
lines changed

3 files changed

+2
-16
lines changed

.github/workflows/apisix-conformance-test.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ jobs:
8686
ARCH: amd64
8787
ENABLE_PROXY: "false"
8888
BASE_IMAGE_TAG: "debug"
89-
ADC_VERSION: "dev"
89+
# ADC_VERSION: "dev"
9090
run: |
9191
echo "building images..."
9292
make build-image

.github/workflows/apisix-e2e-test.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ jobs:
8686
ARCH: amd64
8787
ENABLE_PROXY: "false"
8888
BASE_IMAGE_TAG: "debug"
89-
ADC_VERSION: "dev"
89+
# ADC_VERSION: "dev"
9090
run: |
9191
echo "building images..."
9292
make build-image

pkg/utils/cluster.go

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -29,20 +29,6 @@ import (
2929
// HasAPIResource checks if a specific API resource is available in the current cluster.
3030
// It uses the Discovery API to query the cluster's available resources and returns true
3131
// if the resource is found, false otherwise.
32-
//
33-
// This function gracefully handles errors and will return false if:
34-
// - The discovery client cannot be created
35-
// - The API server cannot be reached
36-
// - The group/version is not available
37-
// - Any other discovery-related error occurs
38-
//
39-
// Usage:
40-
//
41-
// if HasAPIResource(mgr, &gatewayv1.Gateway{}) {
42-
// // Gateway API is available, register the controller
43-
// } else {
44-
// // Gateway API not available, skip controller setup
45-
// }
4632
func HasAPIResource(mgr ctrl.Manager, obj client.Object) bool {
4733
return HasAPIResourceWithLogger(mgr, obj, ctrl.Log.WithName("api-detection"))
4834
}

0 commit comments

Comments
 (0)