Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: Not to overwrite any existed configurations in Nacos during initialization #50

Merged
merged 1 commit into from
Dec 25, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions compose/scripts/init.sh
Original file line number Diff line number Diff line change
Expand Up @@ -417,7 +417,7 @@ data:
nacosPassword: $(echo -n "${NACOS_PASSWORD}" | base64 -w 0)
type: Opaque
EOF
publishConfig "higress-system" "secrets" "${nacosAuthSecretName}" "$nacosAuthSecretContent"
publishConfig "higress-system" "secrets" "${nacosAuthSecretName}" "$nacosAuthSecretContent" true
fi

read -r -d '' mcpbridgeContent << EOF
Expand All @@ -433,7 +433,7 @@ ${mcpbridgeContent}
EOF
fi

publishConfig "higress-system" "mcpbridges" "default" "$mcpbridgeContent"
publishConfig "higress-system" "mcpbridges" "default" "$mcpbridgeContent" true
}

initializeConsole() {
Expand All @@ -449,7 +449,7 @@ metadata:
data:
mode: standalone
EOF
publishConfig "higress-system" "configmaps" "higress-console" "$content"
publishConfig "higress-system" "configmaps" "higress-console" "$content" true

read -r -d '' content << EOF
apiVersion: v1
Expand All @@ -463,7 +463,7 @@ metadata:
namespace: higress-system
type: Opaque
EOF
publishConfig "higress-system" "secrets" "higress-console" "$content"
publishConfig "higress-system" "secrets" "higress-console" "$content" true
}

initializeConfigStorage
Expand Down