Skip to content

Commit 0189338

Browse files
Update cf-deploy-kubernetes.sh
1 parent b6e85b5 commit 0189338

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

cf-deploy-kubernetes.sh

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -67,15 +67,13 @@ if (( "$SERVER_VERSION" == "14" )); then cp -f /usr/local/bin/kubectl1.14 /usr/l
6767
if (( "$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-
7270
DEPLOYMENT_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

7674
echo "---> Kubernetes objects to deploy in $deployment_file :"
7775
KUBECTL_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
7977
if [ $? != 0 ]; then
8078
cat ${KUBECTL_OBJECTS}.errors
8179
echo "Failed to parse $deployment_file with kubectl... "

0 commit comments

Comments
 (0)