-
Notifications
You must be signed in to change notification settings - Fork 1.7k
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
Add endpoints service IAM #2318
Add endpoints service IAM #2318
Conversation
Hi! I'm the modular magician, I work on Magic Modules. Pull request statusesNo diff detected in Ansible. New Pull RequestsI built this PR into one or more new PRs on other repositories, and when those are closed, this PR will also be merged and closed. |
489f02d
to
d7b4ac1
Compare
Hi! I'm the modular magician, I work on Magic Modules. Pull request statusesterraform-provider-google-beta already has an open PR. New Pull RequestsI didn't open any new pull requests because of this PR. |
products/endpoints/api.yaml
Outdated
# See the License for the specific language governing permissions and | ||
# limitations under the License. | ||
|
||
# TODO(nelsonjr): Make all Zone and Region resource ref |
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.
nit: this can be removed
products/endpoints/api.yaml
Outdated
versions: | ||
- !ruby/object:Api::Product::Version | ||
name: ga | ||
base_url: https://servicemanagement.googleapis.com/v1/ |
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.
So one thing that appears to have been generated is the endpoints custom endpoint, which is a bit tricky since the existing endpoints_service resource uses the service management custom endpoint. I think it would be better if there were just one custom endpoint for the endpoints_service resource and its associated IAM resources.
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.
So change this to the service management product, and override the name via legacy name? It may be hard to match up the IAM resource to be named similarly to the google_endpoints_service
resource
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.
It's definitely going to need some thought on how to do it well. One option would be to create a function to determine the custom endpoint name, which would return a custom_endpoint_name value set in terraform.yaml, and default to whatever we currently use.
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.
Renamed the product to ServiceManagement and then overrode the name of the IAM resources to match the existing handwritten resource
d7b4ac1
to
a5870b0
Compare
Hi! I'm the modular magician. Your PR generated some diffs in downstreams - here they are. Diff report:Terraform GA: Diff ( 5 files changed, 558 insertions(+), 2 deletions(-)) |
1 similar comment
Hi! I'm the modular magician. Your PR generated some diffs in downstreams - here they are. Diff report:Terraform GA: Diff ( 5 files changed, 558 insertions(+), 2 deletions(-)) |
…th endpoints_service resource
Hi! I'm the modular magician. Your PR generated some diffs in downstreams - here they are. Diff report:Terraform GA: Diff ( 6 files changed, 559 insertions(+), 16 deletions(-)) |
Hi! I'm the modular magician. Your PR generated some diffs in downstreams - here they are. Diff report:Terraform GA: Diff ( 6 files changed, 559 insertions(+), 18 deletions(-)) |
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 you also update google.erb for the sidebar?
Hi! I'm the modular magician. Your PR generated some diffs in downstreams - here they are. Diff report:Terraform GA: Diff ( 7 files changed, 568 insertions(+), 18 deletions(-)) |
Hi! I'm the modular magician. Your PR generated some diffs in downstreams - here they are. Diff report:Terraform GA: Diff ( 7 files changed, 568 insertions(+), 18 deletions(-)) |
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.
You'll also want to update the changelog note to whatever we do differently now than we did in september
@@ -173,17 +173,6 @@ var RuntimeConfigCustomEndpointEntry = &schema.Schema{ | |||
}, RuntimeConfigDefaultBasePath), | |||
} | |||
|
|||
var ServiceManagementDefaultBasePath = "https://servicemanagement.googleapis.com/v1/" |
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.
Hmm I think we do need to leave these in until 4.0.0 so that anyone that was setting the custom endpoint still can
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.
Oh gosh, I keep changing the product name to make the docs line up right but the product name also goes in here 🤦♂
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.
Fixed by changing the docs to use the product's display name and moving the product that produces this IAM resource to use the same namespace as the existing handwritten one.
Hi! I'm the modular magician. Your PR generated some diffs in downstreams - here they are. Diff report:Terraform GA: Diff ( 10 files changed, 580 insertions(+), 30 deletions(-)) |
Hi! I'm the modular magician. Your PR generated some diffs in downstreams - here they are. Diff report:Terraform GA: Diff ( 23 files changed, 614 insertions(+), 98 deletions(-)) |
Hi! I'm the modular magician. Your PR generated some diffs in downstreams - here they are. Diff report:Terraform GA: Diff ( 23 files changed, 632 insertions(+), 82 deletions(-)) |
* Add endpoints service IAM resources
Fixes hashicorp/terraform-provider-google#3617
Release Note for Downstream PRs (will be copied)