Update ADC installation to use specific version and verify output
Some checks failed
Helm Chart Build / lint-only (push) Has been skipped
Build and Deploy / build-api (push) Failing after 17m43s
Helm Chart Build / build-helm (push) Failing after 17m51s
Build and Deploy / build-web (push) Successful in 19m23s

This commit is contained in:
d.viti
2025-10-08 15:24:47 +02:00
parent 27118b21f8
commit 2255a469a4

View File

@@ -69,14 +69,19 @@ spec:
# Download and install ADC binary # Download and install ADC binary
echo "Downloading 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 # Verify ADC installation
if ! command -v adc &> /dev/null; then if ! command -v adc &> /dev/null; then
echo "ERROR: ADC installation failed" echo "ERROR: ADC installation failed"
exit 1 exit 1
fi fi
echo "ADC installed successfully" echo "ADC installed successfully: $(adc version 2>/dev/null || echo ${ADC_VERSION})"
# Wait for API7 Gateway to be ready # Wait for API7 Gateway to be ready
echo "Waiting for API7 Gateway to be available..." echo "Waiting for API7 Gateway to be available..."