Skip to content

Commit 004f4d3

Browse files
authored
fix: hardcode wasm plugin OCI URL versions to 2.0.0 (#223)
- Set AI_PROXY_VERSION to 2.0.0 - Set AI_STATISTICS_VERSION to 2.0.0 - Set MODEL_ROUTER_VERSION to 2.0.0
1 parent 87455cd commit 004f4d3

2 files changed

Lines changed: 4 additions & 4 deletions

File tree

all-in-one/scripts/config-template/ai-gateway.sh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,7 @@ spec:
135135
failStrategy: FAIL_OPEN
136136
phase: UNSPECIFIED_PHASE
137137
priority: 100
138-
url: oci://higress-registry.cn-hangzhou.cr.aliyuncs.com/plugins/ai-proxy:$AI_PROXY_VERSION" >"$WASM_PLUGIN_CONFIG_FOLDER/ai-proxy.internal.yaml"
138+
url: oci://higress-registry.cn-hangzhou.cr.aliyuncs.com/plugins/ai-proxy:2.0.0" >"$WASM_PLUGIN_CONFIG_FOLDER/ai-proxy.internal.yaml"
139139

140140
AI_STATISTICS_MATCH_RULES=""
141141
for i in "${GENERATED_INGRESSES[@]}"
@@ -181,7 +181,7 @@ spec:
181181
matchRules:$AI_STATISTICS_MATCH_RULES
182182
phase: UNSPECIFIED_PHASE
183183
priority: 900
184-
url: oci://higress-registry.cn-hangzhou.cr.aliyuncs.com/plugins/ai-statistics:$AI_STATISTICS_VERSION" >"$WASM_PLUGIN_CONFIG_FOLDER/ai-statistics-1.0.0.yaml"
184+
url: oci://higress-registry.cn-hangzhou.cr.aliyuncs.com/plugins/ai-statistics:2.0.0" >"$WASM_PLUGIN_CONFIG_FOLDER/ai-statistics-1.0.0.yaml"
185185

186186
echo -e "\
187187
apiVersion: extensions.higress.io/v1alpha1
@@ -205,7 +205,7 @@ spec:
205205
failStrategy: FAIL_OPEN
206206
phase: AUTHN
207207
priority: 900
208-
url: oci://higress-registry.cn-hangzhou.cr.aliyuncs.com/plugins/model-router:$MODEL_ROUTER_VERSION" >"$WASM_PLUGIN_CONFIG_FOLDER/model-router.internal.yaml"
208+
url: oci://higress-registry.cn-hangzhou.cr.aliyuncs.com/plugins/model-router:2.0.0" >"$WASM_PLUGIN_CONFIG_FOLDER/model-router.internal.yaml"
209209
}
210210

211211
function appendAiProxyConfigs() {

all-in-one/scripts/config-template/ai-proxy.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,7 @@ spec:
125125
failStrategy: FAIL_OPEN
126126
phase: UNSPECIFIED_PHASE
127127
priority: \"100\"
128-
url: oci://higress-registry.cn-hangzhou.cr.aliyuncs.com/plugins/ai-proxy:$AI_PROXY_VERSION" > "$WASM_PLUGIN_CONFIG_FILE"
128+
url: oci://higress-registry.cn-hangzhou.cr.aliyuncs.com/plugins/ai-proxy:2.0.0" > "$WASM_PLUGIN_CONFIG_FILE"
129129
}
130130

131131
function initializeMcpBridge() {

0 commit comments

Comments
 (0)