Skip to content

Commit

Permalink
fix: Fix bugs in generatingai-proxy configs (higress-group#89)
Browse files Browse the repository at this point in the history
  • Loading branch information
CH3CHO authored Jun 3, 2024
1 parent 3498be4 commit 7466985
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions all-in-one/scripts/config-template/ai-proxy.sh
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,8 @@ EOF
return
fi

awk -v r="$AI_REGISTRIES" '{gsub(/# AI_REGISTRIES_START.*# AI_REGISTRIES_END/,r)}1' default.yaml > default-new.yaml
sed -i -z -E 's|# AI_REGISTRIES_START.+# AI_REGISTRIES_END|# AI_REGISTRIES_PLACEHOLDER|' default.yaml
awk -v r="$AI_REGISTRIES" '{gsub(/# AI_REGISTRIES_PLACEHOLDER/,r)}1' default.yaml > default-new.yaml
mv default-new.yaml default.yaml
cd -
}
Expand Down Expand Up @@ -179,7 +180,7 @@ metadata:
higress.io/proxy-ssl-server-name: "on"
labels:
higress.io/resource-definer: higress
name: moonshot
name: $PROVIDER_NAME
namespace: higress-system
spec:
ingressClassName: higress
Expand Down

0 comments on commit 7466985

Please sign in to comment.