From 2255a469a4d832c616d2bbc7e44ebc191b1545ca Mon Sep 17 00:00:00 2001 From: "d.viti" Date: Wed, 8 Oct 2025 15:24:47 +0200 Subject: [PATCH] Update ADC installation to use specific version and verify output --- helm/api7ee-demo-k8s/templates/job-adc-sync.yaml | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/helm/api7ee-demo-k8s/templates/job-adc-sync.yaml b/helm/api7ee-demo-k8s/templates/job-adc-sync.yaml index 790aa26..a9ebb7f 100644 --- a/helm/api7ee-demo-k8s/templates/job-adc-sync.yaml +++ b/helm/api7ee-demo-k8s/templates/job-adc-sync.yaml @@ -69,14 +69,19 @@ spec: # Download and install ADC binary echo "Downloading ADC binary..." - curl -sL "https://run.api7.ai/adc/install" | sh + ADC_VERSION="v0.21.0" + curl -sL "https://github.com/api7/adc/releases/download/${ADC_VERSION}/adc_${ADC_VERSION#v}_linux_amd64.tar.gz" -o /tmp/adc.tar.gz + tar -zxf /tmp/adc.tar.gz -C /tmp/ + chmod +x /tmp/adc + mv /tmp/adc /usr/local/bin/adc + rm -f /tmp/adc.tar.gz # Verify ADC installation if ! command -v adc &> /dev/null; then echo "ERROR: ADC installation failed" exit 1 fi - echo "ADC installed successfully" + echo "ADC installed successfully: $(adc version 2>/dev/null || echo ${ADC_VERSION})" # Wait for API7 Gateway to be ready echo "Waiting for API7 Gateway to be available..."