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

azurerm_spring_cloud_gateway - support for the allowed_origin_patterns property #22317

Conversation

ms-henglu
Copy link
Contributor

@ms-henglu ms-henglu commented Jun 29, 2023

image

Copy link
Member

@jackofallops jackofallops left a comment

Choose a reason for hiding this comment

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

Hi @ms-henglu
Thanks for this PR. I think we need to be explicit in the values for this new property and create an appropriate schema block for it. Please see the comment below and we can take another look when that is addressed.

Thanks!

@@ -58,6 +59,13 @@ func resourceSpringCloudGateway() *pluginsdk.Resource {
ValidateFunc: validate.SpringCloudServiceID,
},

"addon_json": {
Copy link
Member

Choose a reason for hiding this comment

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

I think we should be explicit here for the currently supported configuration, not arbitrary JSON. The fact that it is noted to be subject to change in the docs in future is not really any different to any other API parameter. We have known supported values today, and have the ability to update/deprecate etc in future as with any other property or set of properties.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Got it, I've removed this addon_json field. Please take another look, thanks!

@ms-henglu ms-henglu changed the title azurerm_spring_cloud_gateway - support for the allowed_origin_patterns, addon_json properties azurerm_spring_cloud_gateway - support for the allowed_origin_patterns property Jul 3, 2023
@ms-henglu ms-henglu requested a review from jackofallops July 3, 2023 08:24
Copy link
Collaborator

@katbyte katbyte left a comment

Choose a reason for hiding this comment

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

LGTM 💾

@katbyte katbyte merged commit dc88b6f into hashicorp:main Jul 6, 2023
katbyte added a commit that referenced this pull request Jul 6, 2023
@github-actions github-actions bot added this to the v3.64.0 milestone Jul 6, 2023
Copy link

I'm going to lock this pull request because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active contributions.
If you have found a problem that seems related to this change, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators May 24, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants