Skip to content

Commit

Permalink
Remove proxy settings for kubectl apply (#15)
Browse files Browse the repository at this point in the history
  • Loading branch information
raadal authored Sep 9, 2020
1 parent 5b5b834 commit 4a62d84
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions run.sh
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ echo "{\"@timestamp\": \"$(date)\", \"exit_code\": \"${1}\", \"message\": \"${2}
}

function exec_log {
OUTPUT=$(${1} 2>&1)
OUTPUT=$(sh -c "${1}" 2>&1)
EXIT=$?
log "$EXIT" "$(echo $OUTPUT | tr '\n' '|'| sed 's/"/\\"/g')" "${1}"
}
Expand Down Expand Up @@ -61,7 +61,7 @@ do
then

log "0" "Applying '${GIT_REPO}' repo against '${TARGET_NAMESPACE}' namespace (directory ${TMP_FOLDER}/${GIT_FOLDER})"
exec_log "kubectl apply ${KUBE_ATTRS} -R --filename=${TMP_FOLDER}/${GIT_FOLDER}"
exec_log "unset HTTP_PROXY; unset HTTPS_PROXY; unset http_proxy; unset https_proxy; kubectl apply ${KUBE_ATTRS} -R --filename=${TMP_FOLDER}/${GIT_FOLDER}"

else

Expand Down

0 comments on commit 4a62d84

Please sign in to comment.