Commit f692dccd by 据说甜蜜呢

修改方法CreateConfig

parent c93f90f3
Pipeline #4163 passed with stage
in 16 seconds
......@@ -8,14 +8,17 @@ source ./devops/PipeLines/Functions.core.sh
function CreateConfig()
{
declare createUrl="$3/api/v1/namespaces/$2/configmaps?pretty=true"
declare ns=$2
declare apiServer=$3
declare createUrl="${apiServer}/api/v1/namespaces/$2/configmaps?pretty=true"
echo ""
echo "[environment: $1, namespace: $2]"
function Send()
{
set +e
declare deleteUrl="${3}/api/v1/namespaces/${2}/configmaps/$5"
declare deleteUrl="${apiServer}/api/v1/namespaces/${ns}/configmaps/$5"
curl -X DELETE $deleteUrl -k \
--connect-timeout $2 --max-time $3 --retry $4 \
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment