-
Notifications
You must be signed in to change notification settings - Fork 40k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Updating federation up scripts to work in non e2e setup #27260
Conversation
LGTM! Thanks @nikhiljindal |
@nikhiljindal you're missing the
|
@quinton-hoole please remove lgtm label. This PR is not complete and will break the tests. |
Good point @colhom - removed LGTM until fixed. |
Thanks @quinton-hoole and @colhom |
@@ -22,4 +22,8 @@ KUBE_ROOT=$(readlink -m $(dirname "${BASH_SOURCE}")/../../) | |||
|
|||
. ${KUBE_ROOT}/federation/cluster/common.sh | |||
|
|||
if [[ -f "${KUBE_ROOT}/federation/manifests/federated-image.tag" ]]; then |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This has been something I've been meaning to do. We actually can be very specific here:
tagfile="${KUBE_ROOT}/federation/manifests/federated-image.tag"
if [[ ! -f "$tagfile" && "${FEDERATION:-}" == "true ]];then
echo "FATAL: FEDERATION=true, but tagfile ${tagfile} does not exist"
exit 1
fi
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done.
We do not check if FEDERATION=true in federation-up.sh
@nikhiljindal there is one more old namespace reference in |
Thanks @colhom |
2047e0f
to
e73063e
Compare
Found a missed reference while testing. Fixed it now. Verified that the test passes! |
Adding back LGTM |
e73063e
to
5a20112
Compare
Fixed verify-govet |
Merge both is not showing this PR in the merge queue. Trying to run the e2e test again, to see if that triggers the merge bot to look at this again. @k8s-bot e2e test this issue: #IGNORE |
GCE e2e build/test passed for commit 5a20112. |
Automatic merge from submit-queue |
Ref: kubernetes/website#656
Updating the federation up scripts so that they work as per steps in kubernetes/website#656.
Changes are:
e2e.go --up
. e2e-up.sh sets it here:kubernetes/hack/e2e-internal/e2e-up.sh
Line 44 in 6a388d4
"<no value>"
at the place of an env var that is not set. With this change, it instead replaces it with the corresponding zero value (for ex "" for strings). This is required for the FEDERATION_DNS_PROVIDER_CONFIG env var.cc @kubernetes/sig-cluster-federation @colhom @mml