mirror of
https://gitee.com/milvus-io/milvus.git
synced 2025-12-07 17:48:29 +08:00
[skip ci] Update comments to uppercase (#9636)
Signed-off-by: shiyu22 <shiyu.chen@zilliz.com>
This commit is contained in:
parent
251ffea494
commit
25c5aa2ad1
@ -86,7 +86,7 @@ function setup_kind_registry() {
|
|||||||
done
|
done
|
||||||
}
|
}
|
||||||
|
|
||||||
# setup_cluster_reg is used to set up a cluster registry for multicluster testing
|
# The setup_cluster_reg is used to set up a cluster registry for multicluster testing
|
||||||
function setup_cluster_reg () {
|
function setup_cluster_reg () {
|
||||||
MAIN_CONFIG=""
|
MAIN_CONFIG=""
|
||||||
for context in "${CLUSTERREG_DIR}"/*; do
|
for context in "${CLUSTERREG_DIR}"/*; do
|
||||||
@ -136,7 +136,7 @@ function gen_kubeconf_from_sa () {
|
|||||||
EOF
|
EOF
|
||||||
}
|
}
|
||||||
|
|
||||||
# gives a copy of a given topology JSON editing the given key on the entry with the given cluster name
|
# Gives a copy of a given topology JSON editing the given key on the entry with the given cluster name
|
||||||
function set_topology_value() {
|
function set_topology_value() {
|
||||||
local JSON="$1"
|
local JSON="$1"
|
||||||
local CLUSTER_NAME="$2"
|
local CLUSTER_NAME="$2"
|
||||||
@ -145,4 +145,4 @@ function set_topology_value() {
|
|||||||
VALUE=$(echo "${VALUE}" | awk '{$1=$1};1')
|
VALUE=$(echo "${VALUE}" | awk '{$1=$1};1')
|
||||||
|
|
||||||
echo "${JSON}" | jq '(.[] | select(.clusterName =="'"${CLUSTER_NAME}"'") | .'"${KEY}"') |="'"${VALUE}"'"'
|
echo "${JSON}" | jq '(.[] | select(.clusterName =="'"${CLUSTER_NAME}"'") | .'"${KEY}"') |="'"${VALUE}"'"'
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user