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

Fix inaccurate documentation for TargetHttpsProxy resource #10874

Conversation

Hamzawy63
Copy link
Contributor

@Hamzawy63 Hamzawy63 commented Jun 4, 2024

This PR

Release Note Template for Downstream PRs (will be copied)

compute: updated documentation of google_compute_target_https_proxy and google_compute_region_target_https_proxy

@modular-magician modular-magician added the awaiting-approval Pull requests that needs reviewer's approval to run presubmit tests label Jun 4, 2024
@Hamzawy63 Hamzawy63 marked this pull request as ready for review June 5, 2024 09:46
@github-actions github-actions bot requested a review from melinath June 5, 2024 09:47
Copy link

github-actions bot commented Jun 5, 2024

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

@melinath, 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.

@@ -134,7 +134,8 @@ properties:
name: 'certificateManagerCertificates'
description: |
URLs to certificate manager certificate resources that are used to authenticate connections between users and the load balancer.
Currently, you may specify up to 15 certificates. Certificate manager certificates do not apply when the load balancing scheme is set to INTERNAL_SELF_MANAGED.
Currently, you may specify up to 15 certificates. Certificate manager certificates only apply when the load balancing scheme is set to INTERNAL_MANAGED.
Copy link
Contributor

@pawelJas pawelJas Jun 5, 2024

Choose a reason for hiding this comment

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

"Currently, you may specify up to 15 certificates." this is not true for CertificateManagerCertificates.

I would suggest something like below. In line with sslCertificate definition.

URLs to Certificate manager certificate resources that are used to authenticate connections between users and the load balancer.
Certificate manager certificates only apply when the load balancing scheme is set to INTERNAL_MANAGED.
SslCertificates and CertificateManagerCertificates can not be defined together.
Accepted format is `//certificatemanager.googleapis.com/projects/{project}/locations/{location}/certificates/{resourceName}` or just the self_link `projects/{project}/locations/{location}/certificates/{resourceName}`

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Done! Just to confirm, the 15 certificate limit is still true for sslCertificates and not for certificate manager certificate, right?

Copy link
Contributor

Choose a reason for hiding this comment

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

Yes, exactly.

Copy link
Contributor

@pawelJas pawelJas left a comment

Choose a reason for hiding this comment

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

Please also update RegionTargetHttpsProxy - The 15 limit is not true and also regional INTERNAL_SELF_MANAGED doesn't exists so it can be dropped.

Suggestion:

URLs to Certificate manager certificate resources that are used to authenticate connections between users and the load balancer.
SslCertificates and CertificateManagerCertificates can not be defined together.
Accepted format is `//certificatemanager.googleapis.com/projects/{project}/locations/{location}/certificates/{resourceName}` or just the self_link `projects/{project}/locations/{location}/certificates/{resourceName}`

Copy link
Member

@melinath melinath left a comment

Choose a reason for hiding this comment

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

Removing from my queue pending the changes suggested above; I will rely on y'all to let me know when these docs are accurate & then merge.

@Hamzawy63 Hamzawy63 force-pushed the compute-target-https-proxy-update-documentation branch from cc215a9 to 43e8e71 Compare June 5, 2024 17:49
@github-actions github-actions bot requested a review from melinath June 5, 2024 17:50
@modular-magician modular-magician added service/compute-l7-load-balancer and removed awaiting-approval Pull requests that needs reviewer's approval to run presubmit tests labels Jun 5, 2024
@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 ( 4 files changed, 10 insertions(+), 8 deletions(-))
google-beta provider: Diff ( 4 files changed, 10 insertions(+), 8 deletions(-))

@modular-magician
Copy link
Collaborator

Tests analytics

Total tests: 952
Passed tests: 877
Skipped tests: 74
Affected tests: 1

Click here to see the affected service packages
  • compute

Action taken

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

Get to know how VCR tests work

@modular-magician
Copy link
Collaborator

$\textcolor{red}{\textsf{Tests failed during RECORDING mode:}}$
TestAccComputeInstanceNetworkIntefaceWithSecurityPolicy[Error message] [Debug log]

$\textcolor{red}{\textsf{Please fix these to complete your PR.}}$
View the build log or the debug log for each test

Copy link
Member

@melinath melinath left a comment

Choose a reason for hiding this comment

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

a couple minor nits based on the dev docs style guide.

@@ -134,7 +134,8 @@ properties:
name: 'certificateManagerCertificates'
description: |
URLs to certificate manager certificate resources that are used to authenticate connections between users and the load balancer.
Currently, you may specify up to 15 certificates. Certificate manager certificates do not apply when the load balancing scheme is set to INTERNAL_SELF_MANAGED.
Certificate manager certificates only apply when the load balancing scheme is set to INTERNAL_MANAGED.
For EXTERNAL and EXTERNAL_MANAGED please use certificate_map instead.
Copy link
Member

@melinath melinath Jun 6, 2024

Choose a reason for hiding this comment

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

https://developers.google.com/style/word-list#please

Suggested change
For EXTERNAL and EXTERNAL_MANAGED please use certificate_map instead.
For EXTERNAL and EXTERNAL_MANAGED, use certificate_map instead.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Done

@@ -164,7 +165,8 @@ properties:
name: 'certificateMap'
description: |
A reference to the CertificateMap resource uri that identifies a certificate map
associated with the given target proxy. This field can only be set for global target proxies.
associated with the given target proxy. This field is only supported for EXTERNAL and EXTERNAL_MANAGED load balancing schemes.
For INTERNAL_MANAGED, please use certificate_manager_certificates instead.
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
For INTERNAL_MANAGED, please use certificate_manager_certificates instead.
For INTERNAL_MANAGED, use certificate_manager_certificates instead.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Done!

@@ -140,8 +140,7 @@ properties:
name: 'certificateManagerCertificates'
description: |
URLs to certificate manager certificate resources that are used to authenticate connections between users and the load balancer.
Currently, you may specify up to 15 certificates. Certificate manager certificates do not apply when the load balancing scheme is set to INTERNAL_SELF_MANAGED.
sslCertificates and certificateManagerCertificates fields can not be defined together.
sslCertificates and certificateManagerCertificates can not be defined together.
Copy link
Member

Choose a reason for hiding this comment

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

https://developers.google.com/style/contractions#negation-contractions

Suggested change
sslCertificates and certificateManagerCertificates can not be defined together.
sslCertificates and certificateManagerCertificates can't be defined together.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Done!

@github-actions github-actions bot requested a review from melinath June 7, 2024 11:56
@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 ( 4 files changed, 10 insertions(+), 8 deletions(-))
google-beta provider: Diff ( 4 files changed, 10 insertions(+), 8 deletions(-))

@modular-magician
Copy link
Collaborator

Tests analytics

Total tests: 955
Passed tests: 880
Skipped tests: 74
Affected tests: 1

Click here to see the affected service packages
  • compute

Action taken

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

Get to know how VCR tests work

@modular-magician
Copy link
Collaborator

$\textcolor{red}{\textsf{Tests failed during RECORDING mode:}}$
TestAccComputeInstanceNetworkIntefaceWithSecurityPolicy[Error message] [Debug log]

$\textcolor{red}{\textsf{Please fix these to complete your PR.}}$
View the build log or the debug log for each test

Copy link
Member

@melinath melinath left a comment

Choose a reason for hiding this comment

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

LGTM, going ahead with merge since @pawelJas has also approved

@melinath
Copy link
Member

melinath commented Jun 7, 2024

failing test is unrelated

jessdejong pushed a commit to jessdejong/magic-modules that referenced this pull request Jun 10, 2024
BBBmau pushed a commit to BBBmau/magic-modules that referenced this pull request Jun 24, 2024
pcostell pushed a commit to pcostell/magic-modules that referenced this pull request Jul 16, 2024
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.

5 participants