mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-27 13:37:30 +00:00
use apply instead of create to setup namespaces and tokens in addon manager
This commit is contained in:
parent
0d0eb0119e
commit
ffa8bbde72
@ -126,7 +126,7 @@ function create-resource-from-string() {
|
|||||||
local -r config_name=$4;
|
local -r config_name=$4;
|
||||||
local -r namespace=$5;
|
local -r namespace=$5;
|
||||||
while [ ${tries} -gt 0 ]; do
|
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)" && \
|
echo "== Successfully started ${config_name} in namespace ${namespace} at $(date -Is)" && \
|
||||||
return 0;
|
return 0;
|
||||||
let tries=tries-1;
|
let tries=tries-1;
|
||||||
|
Loading…
Reference in New Issue
Block a user