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

Handle GKE Connect Gateway URL differences #258

Merged
merged 2 commits into from Dec 9, 2022
Merged

Conversation

sethvargo
Copy link
Member

@sethvargo sethvargo commented Dec 9, 2022

This PR changes the Connect Gateway builder to always lookup the given membership and determine if the resulting cluster is a GKE cluster. If it is a GKE cluster, it uses the /gkeMemberships collection endpoint. Otherwise, it uses the standard /memberships collection endpiont.

It also drops the e2e test in favor of just using kubectl directly.

This PR changes the Connect Gateway builder to always lookup the given membership and determine if the resulting cluster is a GKE cluster. If it is a GKE cluster, it uses the /gkeMemberships collection endpoint. Otherwise, it uses the standard /memberships collection endpiont.

It also drops the e2e test in favor of just using kubectl directly.
@sethvargo sethvargo requested a review from a team as a code owner December 9, 2022 01:40
@sethvargo sethvargo requested review from verbanicm, averikitsch and bharathkkb and removed request for averikitsch December 9, 2022 01:40
src/gkeClient.ts Show resolved Hide resolved
src/gkeClient.ts Show resolved Hide resolved
@sethvargo sethvargo enabled auto-merge (squash) December 9, 2022 01:45
README.md Show resolved Hide resolved
Copy link
Contributor

@bharathkkb bharathkkb left a comment

Choose a reason for hiding this comment

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

LGTM, a few questions

src/gkeClient.ts Show resolved Hide resolved
src/gkeClient.ts Outdated Show resolved Hide resolved
src/gkeClient.ts Show resolved Hide resolved
@sethvargo sethvargo merged commit 30eb847 into main Dec 9, 2022
@sethvargo sethvargo deleted the sethvargo/update branch December 9, 2022 02:48
sethvargo pushed a commit that referenced this pull request Dec 13, 2022
## What's Changed
* Handle GKE Connect Gateway URL differences by @sethvargo in
#258
* Update CI and deps by @sethvargo in
#259


**Full Changelog**:
v1.0.0...043a449
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
3 participants