Skip to content

Commit

Permalink
Merge pull request #6 from galal-hussein/fix_env_replacement
Browse files Browse the repository at this point in the history
replace KUBERNETES_API with service ip and port for CHART env
  • Loading branch information
erikwilson authored Dec 19, 2019
2 parents eac2725 + c60e7b2 commit 32cf186
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion entry
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ NAME_ARG=""
JQ_CMD='"\(.[0].app_version),\(.[0].status)"'

set -e -v
eval set -- $(sed -e "s/%{KUBERNETES_API}%/${KUBERNETES_SERVICE_HOST}:${KUBERNETES_SERVICE_PORT}/g" <<< "${@@Q}")
CHART=$(sed -e "s/%{KUBERNETES_API}%/${KUBERNETES_SERVICE_HOST}:${KUBERNETES_SERVICE_PORT}/g" <<< "${CHART}")
set +v -x

cp /var/run/secrets/kubernetes.io/serviceaccount/ca.crt /usr/local/share/ca-certificates/
Expand Down

0 comments on commit 32cf186

Please sign in to comment.