mirror of https://github.com/kubernetes/kops.git
Unset more env vars in update-expected.sh
this prevents spurious changes from being made based on the shell's env vars. Also adding a parameter to override the package being updated, so that we dont need to test the full repo
This commit is contained in:
parent
90fc25a25d
commit
5052ae866a
|
@ -22,15 +22,18 @@ set -o pipefail
|
||||||
|
|
||||||
cd "${KOPS_ROOT}"
|
cd "${KOPS_ROOT}"
|
||||||
|
|
||||||
|
# Accept an optional argument overriding the package to update
|
||||||
|
PKG="${1:-./...}"
|
||||||
|
|
||||||
# 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
|
# Don't override variables that are commonly used in dev, but shouldn't be in our tests
|
||||||
export KOPS_BASE_URL=
|
unset KOPS_BASE_URL DNSCONTROLLER_IMAGE KOPSCONTROLLER_IMAGE KUBE_APISERVER_HEALTHCHECK_IMAGE KOPS_FEATURE_FLAGS
|
||||||
export DNSCONTROLLER_IMAGE=
|
unset AWS_ACCESS_KEY_ID AWS_REGION AWS_SECRET_ACCESS_KEY AWS_SESSION_TOKEN CNI_VERSION_URL DNS_IGNORE_NS_CHECK DO_ACCESS_TOKEN GOOGLE_APPLICATION_CREDENTIALS
|
||||||
export KOPSCONTROLLER_IMAGE=
|
unset KOPS_CLUSTER_NAME KOPS_RUN_OBSOLETE_VERSION KOPS_STATE_STORE KOPS_STATE_S3_ACL KUBE_API_VERSIONS NODEUP_URL OPENSTACK_CREDENTIAL_FILE PROTOKUBE_IMAGE SKIP_PACKAGE_UPDATE
|
||||||
export KUBE_APISERVER_HEALTHCHECK_IMAGE=
|
unset SKIP_REGION_CHECK S3_ACCESS_KEY_ID S3_ENDPOINT S3_REGION S3_SECRET_ACCESS_KEY
|
||||||
export KOPS_FEATURE_FLAGS=
|
|
||||||
|
|
||||||
# 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 "${PKG}" -count=1
|
||||||
|
|
Loading…
Reference in New Issue