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

CNI Implementation #7518

Merged
merged 8 commits into from
May 15, 2020
Merged

CNI Implementation #7518

merged 8 commits into from
May 15, 2020

Conversation

nickethier
Copy link
Member

@nickethier nickethier commented Mar 27, 2020

This PR changes how networks are fingerprinted, adds cni fingerprinting and generalizes how CNI configuration is applied.

Fingerprinting

Previously, when a fingerprinter returned a network or networks, they overwrote and previous results. This PR changes this to merge results and adds the Mode field to all node network resources to differentiate traditional or "host" networks from detected "cni" networks.

These are later used to check network feasibility in the scheduler

@nickethier nickethier closed this Mar 31, 2020
@nickethier nickethier reopened this Mar 31, 2020
@nickethier nickethier changed the base branch from master to f-cni-0.12 March 31, 2020 18:20
@nickethier nickethier changed the base branch from f-cni-0.12 to next April 28, 2020 02:54
@nickethier nickethier marked this pull request as ready for review May 4, 2020 18:07
@nickethier nickethier requested review from shoenig and schmichael May 4, 2020 18:10
@nickethier nickethier added this to the 0.12.0 milestone May 4, 2020
Copy link
Member

@shoenig shoenig left a comment

Choose a reason for hiding this comment

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

This looks great @nickethier ! Mostly just nits and random thoughts.

Was ReloadableFingerprint supposed to be implemented by CNIFingerprint ?

client/allocrunner/networking_cni.go Outdated Show resolved Hide resolved
client/allocrunner/networking_cni.go Outdated Show resolved Hide resolved
client/allocrunner/networking_cni.go Outdated Show resolved Hide resolved
client/allocrunner/networking_cni.go Outdated Show resolved Hide resolved
client/client.go Show resolved Hide resolved
client/fingerprint/env_aws.go Outdated Show resolved Hide resolved
client/fingerprint/test_fixtures/cni/net2.conflist Outdated Show resolved Hide resolved
client/fingerprint/fingerprint.go Show resolved Hide resolved
nomad/structs/structs.go Outdated Show resolved Hide resolved
nomad/structs/structs.go Outdated Show resolved Hide resolved
@nickethier nickethier merged commit a30c1da into next May 15, 2020
@nickethier nickethier deleted the f-cni branch May 15, 2020 15:09
@github-actions
Copy link

github-actions bot commented Jan 5, 2023

I'm going to lock this pull request because it has been closed for 120 days ⏳. This helps our maintainers find and focus on the active contributions.
If you have found a problem that seems related to this change, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Jan 5, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants