File tree Expand file tree Collapse file tree 4 files changed +11
-7
lines changed Expand file tree Collapse file tree 4 files changed +11
-7
lines changed Original file line number Diff line number Diff line change 4040 provider_type :
4141 - apisix-standalone
4242 - apisix
43- env :
44- ADC_VERSION : " dev"
4543 runs-on : ubuntu-latest
4644 steps :
4745 - name : Checkout
Original file line number Diff line number Diff line change 4141 - networking.k8s.io
4242 fail-fast : false
4343 runs-on : ubuntu-latest
44- env :
45- ADC_VERSION : " dev"
4644 steps :
4745 - name : Checkout
4846 uses : actions/checkout@v4
Original file line number Diff line number Diff line change @@ -31,7 +31,7 @@ KIND_NODE_IMAGE ?= kindest/node:v1.30.0@sha256:047357ac0cfea04663786a612ba1eaba9
3131
3232GATEAY_API_VERSION ?= v1.2.0
3333DASHBOARD_VERSION ?= dev
34- ADC_VERSION ?= 0.20 .0
34+ ADC_VERSION ?= 0.21 .0
3535
3636GINKGO_VERSION ?= 2.20.0
3737TEST_TIMEOUT ?= 80m
@@ -346,6 +346,9 @@ CONTROLLER_TOOLS_VERSION ?= v0.17.2
346346ENVTEST_VERSION ?= release-0.18
347347GOLANGCI_LINT_VERSION ?= v2.1.5
348348
349+ # # export PATH so that the tools are found
350+ export PATH := $(LOCALBIN ) :$(PATH )
351+
349352.PHONY : kustomize
350353kustomize : $(KUSTOMIZE ) # # Download kustomize locally if necessary.
351354$(KUSTOMIZE ) : $(LOCALBIN )
Original file line number Diff line number Diff line change @@ -35,16 +35,21 @@ import (
3535)
3636
3737var (
38- adcExec = "./bin/ adc"
38+ adcExec = "adc"
3939 adcArgs []string
4040)
4141
4242func init () {
4343 adc := os .Getenv ("ADC_BIN" )
44- if adc != "" && strings .Contains (adc , "node" ) {
44+ if adc == "" {
45+ return
46+ }
47+ if strings .Contains (adc , "node" ) {
4548 parts := strings .Fields (adc )
4649 adcExec = parts [0 ]
4750 adcArgs = parts [1 :]
51+ } else {
52+ adcExec = adc
4853 }
4954}
5055
You can’t perform that action at this time.
0 commit comments