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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

AWSSD: Removed GetServiceDetail #2508

Merged

Conversation

voro015
Copy link
Contributor

@voro015 voro015 commented Jan 10, 2022

Description

AWS ServiceDiscovery provider should not use AWS GetService API call to get info about Services as its data is already returned by ListServices API.

  • Removed usage of GetService API
  • Updated ListServicesByNamespaceID to return same data set without additional external calls
  • Same tests are used to cover changes

Fixes #2507

Benchmarked before/after on same cluster - old variant with GetService took 28 seconds to reconcile, new one without it took 15 seconds 馃殌

Checklist

  • Unit tests updated
  • End user documentation updated

@k8s-ci-robot k8s-ci-robot added cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. size/M Denotes a PR that changes 30-99 lines, ignoring generated files. labels Jan 10, 2022
@Raffo
Copy link
Contributor

Raffo commented Jan 12, 2022

/approve
/lgtm

@k8s-ci-robot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: Raffo, voro015

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 lgtm "Looks good to me", indicates that a PR is ready to be merged. approved Indicates a PR has been approved by an approver from all required OWNERS files. labels Jan 12, 2022
@k8s-ci-robot k8s-ci-robot merged commit 98393df into kubernetes-sigs:master Jan 12, 2022
@voro015 voro015 deleted the aws-sd-remove-get-service branch January 12, 2022 18:07
@Raffo Raffo removed their assignment Jan 19, 2022
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. lgtm "Looks good to me", indicates that a PR is ready to be merged. size/M Denotes a PR that changes 30-99 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

AWSSD: Remove GetServiceDetail
3 participants