Skip to content

Commit 7e1b139

Browse files
committed
Merge branch 'release-v2-dev' into fix/add-crd-shortname
2 parents 18f4ea9 + ecc8016 commit 7e1b139

File tree

3 files changed

+5
-3
lines changed

3 files changed

+5
-3
lines changed

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,7 @@ jobs:
4040
provider_type:
4141
- apisix-standalone
4242
- apisix
43+
fail-fast: false
4344
runs-on: buildjet-2vcpu-ubuntu-2204
4445
steps:
4546
- name: Checkout

.github/workflows/e2e-test.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -99,5 +99,6 @@ jobs:
9999
shell: bash
100100
env:
101101
API7_EE_LICENSE: ${{ secrets.API7_EE_LICENSE }}
102+
PROVIDER_TYPE: api7ee
102103
run: |
103104
make e2e-test

internal/provider/adc/executor.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -112,9 +112,9 @@ func (e *DefaultADCExecutor) buildCmdError(runErr error, stdout, stderr []byte)
112112

113113
func (e *DefaultADCExecutor) handleOutput(output []byte) error {
114114
var result adctypes.SyncResult
115-
if index := strings.IndexByte(string(output), '{'); index > 0 {
116-
log.Warnf("extra output: %s", string(output[:index]))
117-
output = output[index:]
115+
log.Debugf("adc output: %s", string(output))
116+
if lines := bytes.Split(output, []byte{'\n'}); len(lines) > 0 {
117+
output = lines[len(lines)-1]
118118
}
119119
if err := json.Unmarshal(output, &result); err != nil {
120120
log.Errorw("failed to unmarshal adc output",

0 commit comments

Comments
 (0)