mirror of https://github.com/kubernetes/kops.git
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:
parent
75d3d6f9e6
commit
39d642ee97
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue