-
Notifications
You must be signed in to change notification settings - Fork 100
feat: skip provider registration #388
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
base: main
Are you sure you want to change the base?
Conversation
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.
Simple enough, preserves existing functionality. lgtm. The commit is missing the DCO signoff which is required as part of the contribution guidelines.
Just curious however, in generic terms what was the situation which drove this enhancement? Is it something that should be considered broadly?
Does this address the issue in #397 ? |
@stef-p Thank you for your contribution and we are currently looking over your PR. But going back to @Carus11's question, what was the situation which drove this enhancement and is it something that should be considered broadly considering in the doc you referenced it states that "if in doubt we strongly recommend letting Terraform register these for you" in regards to Resource Providers |
@stef-p After reviewing your PR a little more and attempting to test your changes locally, we noticed that the skip_provider_registration property has since been deprecated and will be removed in v5.0. Warning: Argument is deprecated Digging at bit deeper it seems that this deprecation was implemented in v4.0.0 (https://registry.terraform.io/providers/hashicorp/azurerm/latest/docs/guides/4.0-upgrade-guide#improved-resource-provider-registration) which took place around August 22, 2024 which is after your PR was created. If you are still interested in this enhancement, we will gladly work with on that but please consider modifying your changes to match the current implementation (https://registry.terraform.io/providers/hashicorp/azurerm/latest/docs/guides/4.0-upgrade-guide#improved-resource-provider-registration). Otherwise, if we don't get a response back from you within the next 30 days we will mark this PR stale and will be closed |
I think skip registration was required because the customer has BYO defined for many resources. They have defined aks_uai_name and the managed identity is created out of band from terraform. Terraform was failing because it was expecting to create the managed identity during its run. |
I think skip registration was required because the customer had several BYO resources. They have defined aks_uai_name and the managed identity is created out of band from terraform. Terraform was failing because it was expecting to create the managed identity during its run. |
I, Stef <[email protected]>, hereby add my Signed-off-by to this commit: 2b83324 Signed-off-by: Stef <[email protected]>
Signed-off-by: Stef Pierre <[email protected]>
I, Stef Pierre <[email protected]>, hereby add my Signed-off-by to this commit: a654571 I, Stef Pierre <[email protected]>, hereby add my Signed-off-by to this commit: 75371b3 Signed-off-by: Stef Pierre <[email protected]> Signed-off-by: Stef Pierre <[email protected]>
I, Stef Pierre <[email protected]>, hereby add my Signed-off-by to this commit: fdcf446 Signed-off-by: Stef Pierre <[email protected]>
Hey @stef-p, sorry for closing and re-opening your PR. I deleted the staging branch, which closed all PR's targeting it. I've updated your PR to point to the main branch. |
@stef-p |
This PR is stale because it has been open 30 days with no activity. |
Could you please check the failure for PR Conventional Commit Validation / validate-pr-title (pull_request), post this we will be able to merge this. Also let us know if this still needed to be a part of this Repo, or we could stale this and Close without merging. Thanks! |
This PR enables the
skip_provider_registration
field in azurerm provider as documented in:https://registry.terraform.io/providers/hashicorp/azurerm/latest/docs/resources/resource_provider_registration
The default behaviour will set the
skip_provider_registration = false