-
Notifications
You must be signed in to change notification settings - Fork 430
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
Fix KUBERNETES_VERSION unset if CLUSTER_TEMPLATE set #2346
Fix KUBERNETES_VERSION unset if CLUSTER_TEMPLATE set #2346
Conversation
7e2ca9b
to
5226265
Compare
Thanks @lzhecheng! Can we merge #2325 first, as that follows-up test-infra changes that have recently landed. Then we can address the issue of separating "choosing a template" from "choosing a kubernetes version" in this script. |
@jackfrancis Would that require a rebase of this PR or would the logic mostly stay the same? |
A rebase is almost certainly going to be required. :/ |
@jackfrancis sure :) |
/retest |
scripts/ci-entrypoint.sh
Outdated
@@ -58,10 +58,26 @@ setup() { | |||
if [[ -z "${CLUSTER_TEMPLATE:-}" ]]; then | |||
select_cluster_template | |||
fi | |||
if [[ -n "${CI_VERSION:-}" ]] || [[ -n "${USE_CI_ARTIFACTS:-}" ]] || [[ "${KUBERNETES_VERSION:-}" =~ "latest" ]]; then | |||
GOPATH="$(go env GOPATH)" | |||
if ls "${GOPATH}"/src/k8s.io/kubernetes; 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.
#2325 has merged, this should be good to go after rebase
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.
@lzhecheng thank you for your patience ❤️
5226265
to
1ad9a35
Compare
64d9080
to
501a956
Compare
/retest |
501a956
to
c55b59e
Compare
c55b59e
to
13bf413
Compare
829fa85
to
c3a7573
Compare
Thanks. Now it is fixed. |
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.
Looks great, thanks @lzhecheng. Just one more comment about the on_exit get pods/nodes returning a non-zero exit code.
/assign @jackfrancis
* If CLUSTER_TEMPLATE is set, the ci-entrypoint.sh logic leads to KUBERNETES_VERSION error like "vlatest". * Dump AZURE_LOCATION abd kubectl get node result. * Not overwrite original K8S_FEATURE_GATES if TEST_WINDOWS is true Signed-off-by: Zhecheng Li <[email protected]>
c3a7573
to
3f3ff9f
Compare
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.
/lgtm
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.
/lgtm
I like the way these iterations are trending, thanks @lzhecheng!
/approve |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: jackfrancis The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
/cherry-pick release-1.3 |
@jackfrancis: #2346 failed to apply on top of branch "release-1.3":
In response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
Signed-off-by: Zhecheng Li [email protected]
What type of PR is this?
/kind bug
What this PR does / why we need it:
leads to KUBERNETES_VERSION error like "vlatest".
related: Deprecate aks-engine e2e test cloud-provider-azure#919
Which issue(s) this PR fixes (optional, in
fixes #<issue number>(, fixes #<issue_number>, ...)
format, will close the issue(s) when PR gets merged):Fixes #
Special notes for your reviewer:
Please confirm that if this PR changes any image versions, then that's the sole change this PR makes.
TODOs:
Release note: