-
Notifications
You must be signed in to change notification settings - Fork 231
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: Incorrect value of clientTLSPolicy from ComputeBackendService #3007
fix: Incorrect value of clientTLSPolicy from ComputeBackendService #3007
Conversation
fd98442
to
b3d51e8
Compare
b3d51e8
to
fd37a00
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you for the fix, @gemmahou ! Mostly LGTM with a couple of comments.
.../v1beta1/computebackendservice/globalcomputebackendservicesecuritysettings/dependencies.yaml
Outdated
Show resolved
Hide resolved
// For now TF servicemapping does not have a way to resolve dependency DCL resources' project number. | ||
// Skip checking no change after creation(testNoChangeAfterCreate) to bypass this temporarily. | ||
// See https://buganizer.corp.google.com/issues/374166656#comment11 for details. | ||
SkipNoChange: true, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can we make this field unreadable so that it'll always use the value specified in the CR as the live state for comparison?
Not a blocker for this PR though.
@@ -1166,7 +1166,8 @@ spec: | |||
- external | |||
properties: | |||
external: | |||
description: 'Allowed value: The `name` field of a `NetworkSecurityClientTLSPolicy` | |||
description: 'Allowed value: string of the format `//networksecurity.googleapis.com/projects/{{project}}/locations/{{location}}/clientTlsPolicies/{{value}}`, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Might be good to make this sort of description more of a standard. Seems like a huge improvement. Worth noting that for this resource it seems like location always has to be "global".
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ClientTlsPolicy does support other locations(API doc).
If a user incorrectly configures a regional policy, the request should be sent to the API as is and let the API to handle the error. We may not want to convert the regional policy to a global policy on our side(?). In rare cases, there might be a global resource with the same name, and this could lead to confusion.
2666216
to
9350589
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
/lgtm
/approve
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: maqiuyujoyce 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 |
68d9f31
into
GoogleCloudPlatform:master
Change description
Fixes b/374166656
Tests you have done
Resource created successfully:
Dynamic test passed(after skipping testNoChangeAfterCreate):
make ready-pr
to ensure this PR is ready for review.