Add finalizers
This commit is contained in:
parent
cbcbd9b9e6
commit
28ff0d777f
@ -24,5 +24,7 @@ else
|
||||
export SP_CUSTOMER_ID=$(jq -r .[0].objects.[0].object.metadata.namespace $BINDING_CONTEXT_PATH)
|
||||
export SP_ENVIRONMENT=$(jq -r .[0].objects.[0].object.metadata.name $BINDING_CONTEXT_PATH)
|
||||
envsubst < /tpls/${PROVIDER}-cleanup.yaml | kubectl create -f -
|
||||
kubectl patch configmap -n ${SP_CUSTOMER_ID} ${SP_ENVIRONMENT} \
|
||||
-p '{"metadata":{"finalizers":null}}' --type=merge
|
||||
fi
|
||||
|
||||
|
@ -29,5 +29,7 @@ else
|
||||
export SP_CUSTOMER_ID=$(jq -r .[0].objects.[0].object.metadata.namespace $BINDING_CONTEXT_PATH)
|
||||
export SP_ENVIRONMENT=$(jq -r .[0].objects.[0].object.metadata.name $BINDING_CONTEXT_PATH)
|
||||
envsubst < /tpls/${PROVIDER}-${KUBERNETES}.yaml | kubectl create -f -
|
||||
kubectl patch configmap -n ${SP_CUSTOMER_ID} ${SP_ENVIRONMENT} \
|
||||
-p '{"metadata":{"finalizers":"softplayer.net/bootstrapped"}}' --type=merge
|
||||
fi
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user