kops/tools
Peter Rifel d777347705 Remove .git dependency from get_workspace_status.sh
The image pushing postsubmit job [0] is one step closer to succeeding.

It currently fails because when the builder image uploads the kops directory to GCS for to be consumed by GCB, it excludes the .git directory [1].

This causes the job to fail because `make kops-controller-push` uses bazel which runs get_workspace_status.sh which aborts if the git commands fail.

The prow job doesnt contain much output but the GCB logs can be seen in GCS [2].

This PR removes the dependency on git commands.
I dont think any of the logic in the script will change because we already set VERSION [3] which is the only variable in get_workspace_status.sh that depends on git commands and is used to build and push the kops controller image.
[0] https://testgrid.k8s.io/sig-cluster-lifecycle-kops#kops-postsubmit-push-to-staging
[1] 18391d8986/images/builder/main.go (L87)
[2] gs://k8s-staging-kops-gcb/logs/log-a7dc3a24-97cd-42fe-bec3-971dc78a0e3a.txt
[3] b1276ac835/cloudbuild.yaml (L10)
2020-02-07 18:35:26 -06:00
..
BUILD.bazel Use helpers to move gzip & sha from makefile to bazel 2019-09-30 13:52:32 -04:00
bazel.rc Add optional RBE support for kops 2019-10-07 14:54:38 -07:00
get_workspace_status.sh Remove .git dependency from get_workspace_status.sh 2020-02-07 18:35:26 -06:00
gzip.bzl Fix gz path to work on macos 2020-01-03 15:25:21 -05:00
hashes.bzl bazel: fix hashes rule to generate outputs 2019-10-01 11:31:09 -04:00
sha1 Replace binary "which" with build in "command" 2020-01-03 15:23:07 -05:00
sha256 Replace binary "which" with build in "command" 2020-01-03 15:23:07 -05:00