-
Notifications
You must be signed in to change notification settings - Fork 40.1k
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 deprecated gcloud compute networks --mode switches. #61203
Conversation
cluster/gce/util.sh
Outdated
@@ -1675,7 +1675,7 @@ function create-network() { | |||
|
|||
function expand-default-subnetwork() { | |||
gcloud compute networks switch-mode "${NETWORK}" \ | |||
--mode custom \ |
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 one is still --subnet-mode
.
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.
but also
SYNOPSIS
gcloud compute networks switch-mode NAME --mode=MODE [GCLOUD_WIDE_FLAG ...]
DESCRIPTION
(DEPRECATED) switch-mode is deprecated. Please use
--switch-to-custom-subnet-mode with gcloud compute networks update instead.
gcloud compute networks switch-mode is used to change the mode of a
network. Currently, only changing from auto to custom mode is supported.
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!
"create --mode" becomes "create --subnet-mode", and switch-mode has been folded into "update". Create --mode was deprecated in October and will be removed in the next gcloud release. It is already failing in staging tests.
/retest |
gke test need a kubetest bump, sending out |
/sig testing |
/status approved-for-milestone |
/lgtm |
/retest |
/retest |
hmm:
|
/assign @gmarek |
are these changes needed in release branches as well? |
@liggitt yep (this will not be blocking for gce until this gcloud staging version come to prod, and we bump gcloud in e2e image) |
/assign @mikedanese @roberthbailey |
[MILESTONENOTIFIER] Milestone Pull Request: Up-to-date for process @cblecker @gmarek @krzyzacy @mikedanese @rmmh @roberthbailey Pull Request Labels
|
/lgtm |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: cblecker, rmmh, roberthbailey 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 |
Do we need to backport this to any old release branches to keep the upgrade tests working? |
@roberthbailey see #54238 for the over arching issue status. Indication there is yes on backports. |
yep, we don't bind kubernetes with specific gcloud versions, each active branch should be able to run with latest gcloud. |
Automatic merge from submit-queue (batch tested with PRs 61203, 61071). If you want to cherry-pick this change to another branch, please follow the instructions here. |
"create --mode" becomes "create --subnet-mode", and switch-mode has been
folded into "update".
Create --mode was deprecated in October and will be removed in the next
gcloud release. It is already failing in staging tests.
What this PR does / why we need it:
Which issue(s) this PR fixes Fixes #54238
Special notes for your reviewer:
Release note: