File tree Expand file tree Collapse file tree 1 file changed +1
-3
lines changed Expand file tree Collapse file tree 1 file changed +1
-3
lines changed Original file line number Diff line number Diff line change @@ -67,15 +67,13 @@ if (( "$SERVER_VERSION" == "14" )); then cp -f /usr/local/bin/kubectl1.14 /usr/l
6767if (( "$SERVER_VERSION " >= "15 " )) ; then cp -f /usr/local/bin/kubectl1.15 /usr/local/bin/kubectl; fi 2> /dev/null
6868[ ! -f " ${deployment_file} " ] && echo " Couldn't find $deployment_file file at $( pwd) " && exit 1;
6969
70- kubectl version
71-
7270DEPLOYMENT_FILE=${deployment_file} -$( date ' +%y-%m-%d_%H-%M-%S' ) .yml
7371$( dirname $0 ) /template.sh " $deployment_file " > " $DEPLOYMENT_FILE " || fatal " Failed to apply deployment template on $deployment_file "
7472
7573
7674echo " ---> Kubernetes objects to deploy in $deployment_file :"
7775KUBECTL_OBJECTS=/tmp/deployment.objects
78- kubectl convert -f " $DEPLOYMENT_FILE " --local=true --no-headers=true -o=custom-columns=" KIND:{.kind},NAME:{.metadata.name}" > >( tee $KUBECTL_OBJECTS ) 2> ${KUBECTL_OBJECTS} .errors
76+ kubectl convert -f " $DEPLOYMENT_FILE " --local=true -o=custom-columns=" KIND:{.kind},NAME:{.metadata.name}" > >( tee $KUBECTL_OBJECTS ) 2> ${KUBECTL_OBJECTS} .errors
7977if [ $? != 0 ]; then
8078 cat ${KUBECTL_OBJECTS} .errors
8179 echo " Failed to parse $deployment_file with kubectl... "
You can’t perform that action at this time.
0 commit comments