-
Notifications
You must be signed in to change notification settings - Fork 4.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
new resource "azurerm_spring_cloud_java_deployment" and "azurerm_spring_cloud_active_deployment" #9959
Conversation
@jackofallops to possibly help review this Azure Spring Cloud Deployment 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.
Hi @njuCZ
Thanks for this PR, and apologies for the delay in review.
Things are looking pretty good, I've left some comments and suggestions below. I think it would be wise/cleaner to rebase against current master before addressing the comments as there have been dependency and linter updates as well as quite a few refactoring PRs.
azurerm/internal/services/springcloud/spring_cloud_active_deployment_resource.go
Outdated
Show resolved
Hide resolved
azurerm/internal/services/springcloud/spring_cloud_active_deployment_resource.go
Outdated
Show resolved
Hide resolved
azurerm/internal/services/springcloud/spring_cloud_active_deployment_resource.go
Outdated
Show resolved
Hide resolved
azurerm/internal/services/springcloud/spring_cloud_active_deployment_resource.go
Outdated
Show resolved
Hide resolved
azurerm/internal/services/springcloud/spring_cloud_active_deployment_resource_test.go
Outdated
Show resolved
Hide resolved
e08ead0
to
e7e50bc
Compare
@jackofallops thanks for your sugestions! I have rebased the latest master branch and updated according to your suggestions. Could you have a look again? |
e7e50bc
to
00ac87a
Compare
@jackofallops I have rebase the latest master branch, and now this PR are using stable api version. |
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.
Thanks @njuCZ for the updates. Just a few more items below, and I think we'll be good to test and merge.
azurerm/internal/services/springcloud/spring_cloud_active_deployment_resource.go
Outdated
Show resolved
Hide resolved
azurerm/internal/services/springcloud/spring_cloud_active_deployment_resource.go
Outdated
Show resolved
Hide resolved
azurerm/internal/services/springcloud/spring_cloud_active_deployment_resource.go
Outdated
Show resolved
Hide resolved
azurerm/internal/services/springcloud/spring_cloud_active_deployment_resource.go
Outdated
Show resolved
Hide resolved
if sku := service.Sku; sku != nil { | ||
if sku.Name != nil { | ||
skuName = *sku.Name | ||
skuTier = *sku.Tier | ||
} | ||
} |
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.
Is there a valid case where we'd get an empty response back for these values? Feels like we should error if we don't have concrete values, rather than assume them?
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.
there should be no such case, I am just doing Defensive programming. I have changed it to throw error.
azurerm/internal/services/springcloud/spring_cloud_java_deployment_resource.go
Outdated
Show resolved
Hide resolved
azurerm/internal/services/springcloud/spring_cloud_java_deployment_resource_test.go
Outdated
Show resolved
Hide resolved
@jackofallops thanks for your suggestion and I have refined this PR. I have rerun the acctest in my local and all could pass. About the website-test CI fail, it seems not related with this PR. |
Thanks @njuCZ - We've addressed the failed |
This has been released in version 2.45.0 of the provider. Please see the Terraform documentation on provider versioning or reach out if you need any assistance upgrading. As an example: provider "azurerm" {
version = "~> 2.45.0"
}
# ... other configuration ... |
I'm going to lock this issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues. If you feel this issue should be reopened, we encourage creating a new issue linking back to this one for added context. If you feel I made an error 🤖 🙉 , please reach out to my human friends 👉 [email protected]. Thanks! |
The service team has refactored the API design, active deployment could be deleted now.
now spring cloud deployment could support different runtime: java and dotnet. We are going to split it into different resources and support java deployment first
this PR adds two resources:
azurerm_spring_cloud_java_deployment
andazurerm_spring_cloud_active_deployment