-
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
azurerm_app_configuration
- add support for identity
#8875
azurerm_app_configuration
- add support for identity
#8875
Conversation
Acceptance tests pass:
|
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 @favoretti thanks for this PR! Looking good so far, but I assume since this identity block is optional, could we add some more tests to test the update behaviour of the identity?
For instance, a test from no identity to systemAssigned identity and then back to no identity to confirm the identity block could be properly updated.
@ArcturusZhang Something like commit below?
|
Adjusted the test to actually check for identity being present. |
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 @favoretti thanks for the revision! I just left some minor comments. And out of curiosity, the SDK supports more values of enum type IdentityType
actually, would we also support those other types of identity (such as UserAssignedIdentity)? But it should be fine if we only add the SystemAssigned identity in this PR for now.
azurerm/internal/services/appconfiguration/app_configuration_resource.go
Outdated
Show resolved
Hide resolved
azurerm/internal/services/appconfiguration/app_configuration_resource.go
Outdated
Show resolved
Hide resolved
azurerm/internal/services/appconfiguration/app_configuration_resource.go
Outdated
Show resolved
Hide resolved
azurerm/internal/services/appconfiguration/app_configuration_resource.go
Outdated
Show resolved
Hide resolved
azurerm/internal/services/appconfiguration/app_configuration_resource.go
Outdated
Show resolved
Hide resolved
azurerm/internal/services/appconfiguration/app_configuration_resource.go
Outdated
Show resolved
Hide resolved
…esource.go Co-authored-by: Arcturus <ufo54153@gmail.com>
…esource.go Co-authored-by: Arcturus <ufo54153@gmail.com>
…esource.go Co-authored-by: Arcturus <ufo54153@gmail.com>
…esource.go Co-authored-by: Arcturus <ufo54153@gmail.com>
…esource.go Co-authored-by: Arcturus <ufo54153@gmail.com>
Re: UserAssigned identities - those are a bit more complex and SystemAssigned is what we currently need support for, so in the interest of time getting this in I decided to implement just SystemAssigned. Happy to work on UserAssigned in a separate PR. Sorry for being selfish, time is precious unfortunately, so contributing the bare minimum needs atm :( |
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 now, thanks @favoretti ! And it is very fine that we could get the user assigned identity supported in another PR.
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.
hey @favoretti
Thanks for pushing those changes - taking a look through this is mostly looking good, if we can fix up the couple of comments then this should otherwise be good to merge 👍
Thanks!
azurerm/internal/services/appconfiguration/app_configuration_resource.go
Show resolved
Hide resolved
azurerm/internal/services/appconfiguration/tests/app_configuration_resource_test.go
Outdated
Show resolved
Hide resolved
…esource.go Co-authored-by: Tom Harvey <tombuildsstuff@users.noreply.github.com>
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.
left a couple of comments inline
azurerm/internal/services/appconfiguration/app_configuration_resource.go
Outdated
Show resolved
Hide resolved
azurerm/internal/services/appconfiguration/app_configuration_resource.go
Outdated
Show resolved
Hide resolved
"Fixed" it by sending payload with identity type None when clearing.
|
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.
otherwise LGTM 👍
azurerm/internal/services/appconfiguration/app_configuration_resource.go
Outdated
Show resolved
Hide resolved
azurerm/internal/services/appconfiguration/app_configuration_resource.go
Show resolved
Hide resolved
Yep, you're right, works :)
|
Thanks for pushing those changes @favoretti 👍 |
This has been released in version 2.33.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.33.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 👉 hashibot-feedback@hashicorp.com. Thanks! |
Adding support for
identity
toazurerm_app_configuration
.