Skip to content
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

Add check for volume zone GA labels #89365

Merged
merged 1 commit into from Mar 24, 2020

Conversation

notpad
Copy link
Contributor

@notpad notpad commented Mar 23, 2020

What type of PR is this?

/kind bug

What this PR does / why we need it:

Volume zone labels has been promoted to GA in #81431, we need to use the GA labels

Which issue(s) this PR fixes:

Fixes #89261

Special notes for your reviewer:

Does this PR introduce a user-facing change?:

None

Additional documentation e.g., KEPs (Kubernetes Enhancement Proposals), usage docs, etc.:


/sig scheduling
/assign @ahg-g

@k8s-ci-robot k8s-ci-robot added release-note-none Denotes a PR that doesn't merit a release note. sig/scheduling Categorizes an issue or PR as relevant to SIG Scheduling. size/M Denotes a PR that changes 30-99 lines, ignoring generated files. cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. needs-kind Indicates a PR lacks a `kind/foo` label and requires one. needs-priority Indicates a PR lacks a `priority/foo` label and requires one. labels Mar 23, 2020
@notpad
Copy link
Contributor Author

notpad commented Mar 23, 2020

/priority important-soon

@k8s-ci-robot k8s-ci-robot added priority/important-soon Must be staffed and worked on either currently, or very soon, ideally in time for the next release. and removed needs-priority Indicates a PR lacks a `priority/foo` label and requires one. labels Mar 23, 2020
@k8s-ci-robot k8s-ci-robot added kind/bug Categorizes issue or PR as related to a bug. and removed needs-kind Indicates a PR lacks a `kind/foo` label and requires one. labels Mar 23, 2020
@k8s-ci-robot k8s-ci-robot added size/L Denotes a PR that changes 100-499 lines, ignoring generated files. and removed size/M Denotes a PR that changes 30-99 lines, ignoring generated files. labels Mar 23, 2020
@notpad notpad changed the title Change volume zone beta labels to GA labels Add check for volume zone GA labels Mar 23, 2020
Copy link
Member

@ahg-g ahg-g left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

few nits related to test names.

@ahg-g
Copy link
Member

ahg-g commented Mar 24, 2020

thanks, please squash

@notpad
Copy link
Contributor Author

notpad commented Mar 24, 2020

squashed

@ahg-g
Copy link
Member

ahg-g commented Mar 24, 2020

/approve
/lgtm

@k8s-ci-robot k8s-ci-robot added the lgtm "Looks good to me", indicates that a PR is ready to be merged. label Mar 24, 2020
@k8s-ci-robot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: ahg-g, notpad

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 /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@k8s-ci-robot k8s-ci-robot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Mar 24, 2020
@fejta-bot
Copy link

/retest
This bot automatically retries jobs that failed/flaked on approved PRs (send feedback to fejta).

Review the full test history for this PR.

Silence the bot with an /lgtm cancel or /hold comment for consistent failures.

@k8s-ci-robot k8s-ci-robot merged commit c58a375 into kubernetes:master Mar 24, 2020
@liggitt
Copy link
Member

liggitt commented Mar 25, 2020

@msau42 I thought the intent was for the scheduler not to special-case zone/region labels... were you expecting this PR?

@ahg-g
Copy link
Member

ahg-g commented Mar 25, 2020

@liggitt should we expect in the future that the old variables (e.g., LabelZoneRegion) will point to the GA labels?

@liggitt
Copy link
Member

liggitt commented Mar 25, 2020

No, we don't redefine constants. Nodes report the beta and GA labels for now, and a controller ensures the beta and GA labels match. The controller will switch to treating the GA labels as the source of truth in #88493 (in ~1.21).

@ahg-g
Copy link
Member

ahg-g commented Mar 25, 2020

so the schedule should start checking the stable labels at some point, is there an issue doing it now?

@liggitt
Copy link
Member

liggitt commented Mar 25, 2020

if special treatment of the zone/region labels is still required, switching to use the GA labels is ok to do now

@liggitt
Copy link
Member

liggitt commented Mar 25, 2020

I thought the goal was for the scheduler to not treat zone/region labels differently than any other topology labels

@msau42
Copy link
Member

msau42 commented Mar 25, 2020

The intent is to delete this volumezone predicate once csimigration is GA for all the cloud plugins that use this label. So we decided not to convert volumes to use the new ga labels and block removal of the beta labels on csimigration

@msau42
Copy link
Member

msau42 commented Mar 25, 2020

(going forward we only use PV.NodeAffinity to match node zones)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
approved Indicates a PR has been approved by an approver from all required OWNERS files. cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. kind/bug Categorizes issue or PR as related to a bug. lgtm "Looks good to me", indicates that a PR is ready to be merged. priority/important-soon Must be staffed and worked on either currently, or very soon, ideally in time for the next release. release-note-none Denotes a PR that doesn't merit a release note. sig/scheduling Categorizes an issue or PR as relevant to SIG Scheduling. size/L Denotes a PR that changes 100-499 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Support the new stable labels for zone and region in the scheduler
6 participants