Update ADC installation to use specific version and verify output
This commit is contained in:
@@ -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..."
|
||||
|
||||
Reference in New Issue
Block a user