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

Remove topology fallback logic for nodes < 1.14 #448

Merged
merged 1 commit into from
Jul 17, 2020

Conversation

msau42
Copy link
Collaborator

@msau42 msau42 commented Jun 19, 2020

What type of PR is this?
/kind cleanup

What this PR does / why we need it:
We now require the API server to be on at least 1.17, which means we can remove node support for < 1.15.

Another major change in behavior made here is that if the topology feature gate is enabled, then we assume that the driver on the nodes are correctly reporting topology. We no longer fallback to "no topology" behavior. This means that if you are a driver that is going to upgrade to support topology, then it's a two step process. First, upgrade the driver on the nodes to start reporting topology, then flip the feature gate on the controller.

Which issue(s) this PR fixes:

Fixes #257

Special notes for your reviewer:

Does this PR introduce a user-facing change?:

ACTION REQUIRED: The topology feature is GA and requires K8s api server >= 1.17 and K8s nodes >= 1.15

@k8s-ci-robot k8s-ci-robot added release-note Denotes a PR that will be considered when it comes time to generate release notes. kind/cleanup Categorizes issue or PR as related to cleaning up code, process, or technical debt. cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. labels Jun 19, 2020
@k8s-ci-robot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: msau42

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 Jun 19, 2020
@msau42
Copy link
Collaborator Author

msau42 commented Jun 19, 2020

/assign @verult

@k8s-ci-robot k8s-ci-robot added the size/L Denotes a PR that changes 100-499 lines, ignoring generated files. label Jun 19, 2020
pkg/controller/topology.go Outdated Show resolved Hide resolved
// * allowedTopologies had empty entries.
//
// Either way, we fallback to the "topology disabled" behavior.
// We fallback to the "topology disabled" behavior.
if len(requisiteTerms) == 0 {
Copy link
Contributor

Choose a reason for hiding this comment

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

In the if len(allowedTopologies) != 0 clause, allowedTopologies can't be empty. Reaching here means flatten() is broken

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

I believe this comment is referring to the case where you specify an allowedtopology term struct but leave it empty.

The API validation logic allows for this: https://github.com/kubernetes/kubernetes/blob/7ceac2baf0820fd354259aa8b7f0e37b0bc6b814/pkg/apis/core/validation/validation.go#L3474

Copy link
Contributor

Choose a reason for hiding this comment

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

ACK

pkg/controller/topology.go Outdated Show resolved Hide resolved
@msau42 msau42 force-pushed the remove-topology branch from 7686b3c to fb5d0b9 Compare July 16, 2020 01:47
@verult
Copy link
Contributor

verult commented Jul 17, 2020

/lgtm

@k8s-ci-robot k8s-ci-robot added the lgtm "Looks good to me", indicates that a PR is ready to be merged. label Jul 17, 2020
@k8s-ci-robot k8s-ci-robot merged commit 8287748 into kubernetes-csi:master Jul 17, 2020
@k8s-ci-robot k8s-ci-robot added release-note-action-required Denotes a PR that introduces potentially breaking changes that require user action. and removed release-note Denotes a PR that will be considered when it comes time to generate release notes. labels Jul 31, 2020
kbsonlong pushed a commit to kbsonlong/external-provisioner that referenced this pull request Dec 29, 2023
…go_modules/k8s.io/api-0.27.3

Bump k8s.io/api from 0.27.2 to 0.27.3
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/cleanup Categorizes issue or PR as related to cleaning up code, process, or technical debt. lgtm "Looks good to me", indicates that a PR is ready to be merged. release-note-action-required Denotes a PR that introduces potentially breaking changes that require user action. 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.

Remove topology 1.13 fallback logic once 1.13 is unsupported as a node version
3 participants