File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -381,7 +381,7 @@ initializeGateway() {
381381initializeMcpBridge () {
382382 echo " Initializing McpBridge resource..."
383383
384- read -r -d ' ' content << EOF
384+ read -r -d ' ' mcpbridgeContent << EOF
385385apiVersion: networking.higress.io/v1
386386kind: McpBridge
387387metadata:
405405
406406 if [ -n " $NACOS_USERNAME " ] && [ -n " $NACOS_PASSWORD " ]; then
407407 nacosAuthSecretName=" nacos-auth-default"
408- read -r -d ' ' content << EOF
408+ read -r -d ' ' nacosAuthSecretContent << EOF
409409apiVersion: v1
410410kind: Secret
411411metadata:
@@ -417,11 +417,11 @@ data:
417417 nacosPassword: $( echo -n " ${NACOS_PASSWORD} " | base64 -w 0)
418418type: Opaque
419419EOF
420- publishConfig " higress-system" " secrets" " ${nacosAuthSecretName} " " $content "
420+ publishConfig " higress-system" " secrets" " ${nacosAuthSecretName} " " $nacosAuthSecretContent "
421421 fi
422422
423- read -r -d ' ' content << EOF
424- ${content }
423+ read -r -d ' ' mcpbridgeContent << EOF
424+ ${mcpbridgeContent }
425425 - domain: ${NACOS_SERVER_DOMAIN}
426426 nacosGroups:
427427 - DEFAULT_GROUP
@@ -433,7 +433,7 @@ ${content}
433433EOF
434434 fi
435435
436- publishConfig " higress-system" " mcpbridges" " default" " $content "
436+ publishConfig " higress-system" " mcpbridges" " default" " $mcpbridgeContent "
437437}
438438
439439initializeConsole () {
You can’t perform that action at this time.
0 commit comments