Skip to content

Added IAP Enable/Disable flag in cloudrunv2 service #12965

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

Closed

Conversation

Deepraj1996
Copy link

cloudrunv2: added `iap_enabled` field to `google_cloud_run_v2_service` (beta).

Copy link

google-cla bot commented Feb 5, 2025

Thanks for your pull request! It looks like this may be your first contribution to a Google open source project. Before we can look at your pull request, you'll need to sign a Contributor License Agreement (CLA).

View this failed invocation of the CLA check for more information.

For the most up to date status, view the checks section at the bottom of the pull request.

@modular-magician modular-magician added the awaiting-approval Pull requests that need reviewer's approval to run presubmit tests label Feb 5, 2025
@Deepraj1996 Deepraj1996 marked this pull request as ready for review March 5, 2025 11:00
@github-actions github-actions bot requested a review from SirGitsalot March 5, 2025 11:01
Copy link

github-actions bot commented Mar 5, 2025

Hello! I am a robot. Tests will require approval from a repository maintainer to run.

@SirGitsalot, a repository maintainer, has been assigned to review your changes. If you have not received review feedback within 2 business days, please leave a comment on this PR asking them to take a look.

You can help make sure that review is quick by doing a self-review and by running impacted tests locally.

@SirGitsalot
Copy link
Member

/gcbrun

@Deepraj1996
Copy link
Author

/gcbrun

Hi @SirGitsalot, I see a few PR checks were cancelled/skipped. Could you please rerun those?

@modular-magician modular-magician added service/run and removed awaiting-approval Pull requests that need reviewer's approval to run presubmit tests labels Mar 6, 2025
@modular-magician
Copy link
Collaborator

Hi there, I'm the Modular magician. I've detected the following information about your changes:

Diff report

Your PR generated some diffs in downstreams - here they are.

google provider: Diff ( 1 file changed, 29 insertions(+))
google-beta provider: Diff ( 5 files changed, 177 insertions(+))
terraform-google-conversion: Diff ( 1 file changed, 10 insertions(+))

@modular-magician
Copy link
Collaborator

Tests analytics

Total tests: 53
Passed tests: 46
Skipped tests: 5
Affected tests: 2

Click here to see the affected service packages
  • cloudrunv2

Action taken

Found 2 affected test(s) by replaying old test recordings. Starting RECORDING based on the most recent commit. Click here to see the affected tests
  • TestAccCloudRunV2Service_cloudrunv2ServiceIapExample
  • TestAccCloudRunV2Service_cloudrunv2ServiceIapUpdate

Get to know how VCR tests work

@modular-magician
Copy link
Collaborator

🟢 Tests passed during RECORDING mode:
TestAccCloudRunV2Service_cloudrunv2ServiceIapExample [Debug log]
TestAccCloudRunV2Service_cloudrunv2ServiceIapUpdate [Debug log]

🟢 No issues found for passed tests after REPLAYING rerun.


🟢 All tests passed!

View the build log or the debug log for each test

Copy link
Member

@SirGitsalot SirGitsalot left a comment

Choose a reason for hiding this comment

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

LGTM - I manually kicked off the integration tests, you'll need to sign the CLA (even as a Googler) for the next step

@yanweiguo
Copy link
Member

yanweiguo commented Mar 7, 2025

iap_enabled field is not in Cloud Run v2 api yet: https://cloud.google.com/run/docs/reference/rest/v2/projects.locations.services

I wonder how it would work.

@Deepraj1996
Copy link
Author

iap_enabled field is not in Cloud Run v2 api yet: https://cloud.google.com/run/docs/reference/rest/v2/projects.locations.services

I wonder how it would work.

Hi @yanweiguo, iap_enabled flag visibility is hidden from public doc

@github-actions github-actions bot requested a review from SirGitsalot March 11, 2025 17:30
@Deepraj1996
Copy link
Author

LGTM - I manually kicked off the integration tests, you'll need to sign the CLA (even as a Googler) for the next step

Hi @SirGitsalot , I have a CLA issue as I am from xWF, this PR will be cloned by Google team member and submitted on his behalf.

@yanweiguo
Copy link
Member

iap_enabled field is not in Cloud Run v2 api yet: https://cloud.google.com/run/docs/reference/rest/v2/projects.locations.services
I wonder how it would work.

Hi @yanweiguo, iap_enabled flag visibility is hidden from public doc

Right, I think the visibility limit should be removed first otherwise the setting for this field will be ignored by Cloud Run API.

@SirGitsalot
Copy link
Member

Yeah, we'll want to wait until the field is publicly available to merge. FWIW, the tests are able to set and retrieve the field, but that's likely because the service account that the tests run as has previously been granted visibility access to the label.

Copy link

@SirGitsalot This PR has been waiting for review for 3 weekdays. Please take a look! Use the label disable-review-reminders to disable these notifications.

Copy link

@GoogleCloudPlatform/terraform-team @SirGitsalot This PR has been waiting for review for 1 week. Please take a look! Use the label disable-review-reminders to disable these notifications.

Copy link

@GoogleCloudPlatform/terraform-team @SirGitsalot This PR has been waiting for review for 2 weeks. Please take a look! Use the label disable-review-reminders to disable these notifications.

Copy link

github-actions bot commented Apr 1, 2025

@GoogleCloudPlatform/terraform-team @SirGitsalot This PR has been waiting for review for 3 weeks. Please take a look! Use the label disable-review-reminders to disable these notifications.

Copy link

github-actions bot commented Apr 8, 2025

@GoogleCloudPlatform/terraform-team @SirGitsalot This PR has been waiting for review for 4 weeks. Please take a look! Use the label disable-review-reminders to disable these notifications.

@modular-magician modular-magician added the awaiting-approval Pull requests that need reviewer's approval to run presubmit tests label Apr 8, 2025
@SirGitsalot
Copy link
Member

/gcbrun

@modular-magician modular-magician removed the awaiting-approval Pull requests that need reviewer's approval to run presubmit tests label Apr 8, 2025
@modular-magician
Copy link
Collaborator

Hi there, I'm the Modular magician. I've detected the following information about your changes:

Diff report

Your PR generated some diffs in downstreams - here they are.

google provider: Diff ( 1 file changed, 29 insertions(+))
google-beta provider: Diff ( 5 files changed, 177 insertions(+))
terraform-google-conversion: Diff ( 1 file changed, 10 insertions(+))

@modular-magician
Copy link
Collaborator

Tests analytics

Total tests: 53
Passed tests: 46
Skipped tests: 5
Affected tests: 2

Click here to see the affected service packages
  • cloudrunv2

Action taken

Found 2 affected test(s) by replaying old test recordings. Starting RECORDING based on the most recent commit. Click here to see the affected tests
  • TestAccCloudRunV2Service_cloudrunv2ServiceFunctionExample
  • TestAccCloudRunV2Service_cloudrunv2ServiceFunctionExample_update

Get to know how VCR tests work

@modular-magician
Copy link
Collaborator

🟢 Tests passed during RECORDING mode:
TestAccCloudRunV2Service_cloudrunv2ServiceFunctionExample [Debug log]
TestAccCloudRunV2Service_cloudrunv2ServiceFunctionExample_update [Debug log]

🟢 No issues found for passed tests after REPLAYING rerun.


🟢 All tests passed!

View the build log or the debug log for each test

Copy link
Member

@SirGitsalot SirGitsalot left a comment

Choose a reason for hiding this comment

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

The other PR is merged, feel free to delete this PR. Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants