8000 service topologies: add Kubernetes/API EndpointSlice support by mateiidavid · Pull Request #4696 · linkerd/linkerd2 · GitHub
[go: up one dir, main page]

Skip to content

service topologies: add Kubernetes/API EndpointSlice support - #4696

Merged
adleong merged 2 commits into
linkerd:mainfrom
mateiidavid:mdavid/slice-api-support
Jul 6, 2020
Merged

adleong merged 2 commits into
linkerd:mainfrom
mateiidavid:mdavid/slice-api-support

Conversation

@mateiidavid
Copy link
Copy Markdown
Contributor

Based on the EndpointSlice PR, this is just the k8s/api support for endpointslices to shorten the first PR.

  • Adds CRD
  • Adds functions that check whether the cluster has EndpointSlice access
  • Adds discovery & endpointslice informers to api.

Signed-off-by: Matei David matei.david.35@gmail.com

Add test data for endpointslice crd

Signed-off-by: Matei David <matei.david.35@gmail.com>
@mateiidavid
mateiidavid requested a review from a team as a code owner July 1, 2020 19:49
Signed-off-by: Matei David <matei.david.35@gmail.com>
@mateiidavid
Copy link
Copy Markdown
Contributor Author

Update: based on the discussion with @adleong in PR#4663 I've changed the return type as well as commented out the two functions responsible for checking whether EndpointSlices can be used.

The main assumption we are making is that EndpointSlices should be opt-in for now, as a result, until a mechanism to enable them on a user-by-user basis is put in, the idea is to only use Endpoints (but have the support for the slices in).

@adleong adleong left a comment
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Excellent! This looks good to go

@alpeb alpeb left a comment
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

LGTM 👍

@adleong
adleong merged commit a2bd230 into linkerd:main Jul 6, 2020
adleong pushed a commit that referenced this pull request Jul 20, 2020
* Small PR that uncomments the `EndpointSliceAcess` method and cleans up left over todos in the destination service.
* Based on the past three PRs related to `EndpointSlices` (#4663 #4696 #4740); they should now be functional (albeit prone to bugs) and ready to use.

Signed-off-by: Matei David <matei.david.35@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants

0