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

cleanup(quickstart): gkeconnect quickstart use correct inputs #14666

Merged

Conversation

cuiy0006
Copy link
Collaborator

@cuiy0006 cuiy0006 commented Aug 23, 2024

Make gkeconnect quickstart use correct inputs.

name=projects/*/locations/*/memberships/*


This change is Reviewable

Copy link

codecov bot commented Aug 23, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 93.59%. Comparing base (701cd5e) to head (bc87326).
Report is 1 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main   #14666      +/-   ##
==========================================
- Coverage   93.59%   93.59%   -0.01%     
==========================================
  Files        2316     2316              
  Lines      207140   207140              
==========================================
- Hits       193868   193864       -4     
- Misses      13272    13276       +4     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@@ -14,21 +14,27 @@

//! [all]
#include "google/cloud/gkeconnect/gateway/v1/gateway_control_client.h"
#include "google/cloud/internal/absl_str_cat_quiet.h"
Copy link
Member

Choose a reason for hiding this comment

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

We don't want customers including internal headers in their applications, so we shouldn't include internal headers in our examples/quickstarts.

Copy link
Collaborator Author

@cuiy0006 cuiy0006 Aug 23, 2024

Choose a reason for hiding this comment

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

It is interesting, I am using #include "absl/strings/str_cat.h", it is automatically replaced by checkers-pr.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

https://screenshot.googleplex.com/AVbJ46XqY6yxaPG
Does that mean we can't use absl::StrCat in quickstart code?
I can replace it with plain string addition.

Copy link
Member

Choose a reason for hiding this comment

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

Yeah. I think we tend to do string addition in these.

google/cloud/gkeconnect/CMakeLists.txt Outdated Show resolved Hide resolved
google/cloud/gkeconnect/quickstart/quickstart.cc Outdated Show resolved Hide resolved
@cuiy0006 cuiy0006 marked this pull request as ready for review August 23, 2024 21:28
@cuiy0006 cuiy0006 requested a review from a team as a code owner August 23, 2024 21:28
@cuiy0006 cuiy0006 enabled auto-merge (squash) August 23, 2024 21:28
@cuiy0006 cuiy0006 merged commit 75a514a into googleapis:main Aug 26, 2024
69 checks passed
@cuiy0006 cuiy0006 deleted the gkeconnect-quickstart-use-correct-format branch August 26, 2024 15:15
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.

2 participants