hack/update-expected.sh: mask development env vars

There are a few env vars which are frequently set in development, but
should not be reflected in the tests.  Clear them before generated the
expected output.
This commit is contained in:
Justin SB 2019-09-14 11:25:45 -04:00
parent 75d3d6f9e6
commit 39d642ee97
No known key found for this signature in database
GPG Key ID: 8DEC5C8217494E37
1 changed files with 4 additions and 0 deletions

View File

@ -23,5 +23,9 @@ cd ${KOPS_ROOT}
# Update gobindata to reflect any yaml changes # Update gobindata to reflect any yaml changes
make kops-gobindata make kops-gobindata
# Don't override variables that are commonly used in dev, but shouldn't be in our tests
export KOPS_BASE_URL=
export DNSCONTROLLER_IMAGE=
# Run the tests in "autofix mode" # Run the tests in "autofix mode"
HACK_UPDATE_EXPECTED_IN_PLACE=1 go test ./... -count=1 HACK_UPDATE_EXPECTED_IN_PLACE=1 go test ./... -count=1