Skip to content

Commit

Permalink
Merge pull request #816 from yfuruyama/gke-self-managed-macos
Browse files Browse the repository at this point in the history
Get gke-self-managed.sh working on macOS
  • Loading branch information
k8s-ci-robot authored Aug 5, 2019
2 parents 4785079 + 7f4c042 commit 5516abc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs/deploy/gke/gke-self-managed.sh
Original file line number Diff line number Diff line change
Expand Up @@ -392,8 +392,8 @@ while true; do
done

# Recreates the deployment and service for the default backend.
# Note: We do sed on a copy so that the original file stays clean for future runs.
sed "/name: http/a \ \ \ \ nodePort: ${NODE_PORT}" ../resources/default-http-backend.yaml > ../resources/default-http-backend.yaml.gen
# Note: We do awk on a copy so that the original file stays clean for future runs.
awk "1;/name: http/{ print \" nodePort: ${NODE_PORT}\" }" ../resources/default-http-backend.yaml > ../resources/default-http-backend.yaml.gen
run_maybe_dry_kubectl kubectl create -f ../resources/default-http-backend.yaml.gen
if [[ $? -eq 1 ]];
then
Expand Down

0 comments on commit 5516abc

Please sign in to comment.