use apply instead of create to setup namespaces and tokens in addon manager

This commit is contained in:
Mike Danese 2016-03-29 16:40:33 -07:00
parent 0d0eb0119e
commit ffa8bbde72

View File

@ -126,7 +126,7 @@ function create-resource-from-string() {
local -r config_name=$4;
local -r namespace=$5;
while [ ${tries} -gt 0 ]; do
echo "${config_string}" | ${KUBECTL} --namespace="${namespace}" create -f - && \
echo "${config_string}" | ${KUBECTL} --namespace="${namespace}" apply -f - && \
echo "== Successfully started ${config_name} in namespace ${namespace} at $(date -Is)" && \
return 0;
let tries=tries-1;