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_machine_learning_inference_cluster - support for the ssl.leaf_domain_label and ssl. overwrite_existing_domain properties #11830

Conversation

gro1m
Copy link
Contributor

@gro1m gro1m commented May 22, 2021

Tasks:

  • update resource to allow for leaf_domain_label using status 'Auto'
  • add ConflictsWith to ssl block
  • add tests
  • update docs

@ghost ghost added the size/XS label May 22, 2021
@gro1m gro1m changed the title [WIP] update azurerm_machine_learning_inference_cluster - add possibility to use Microsoft ssl certificates for [WIP] update azurerm_machine_learning_inference_cluster - add possibility to use Microsoft ssl certificates (add leaf_domain_label) May 22, 2021
@ghost ghost added size/S and removed size/XS labels May 22, 2021
@ghost ghost added size/M and removed size/S labels May 23, 2021
Optional: true,
ForceNew: true,
Default: "",
ConflictsWith: []string{"leaf_domain_label", "overwrite_existing_domain"},
Copy link
Collaborator

Choose a reason for hiding this comment

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

Persumably should be:

Suggested change
ConflictsWith: []string{"leaf_domain_label", "overwrite_existing_domain"},
ConflictsWith: []string{"ssl.0.leaf_domain_label", "ssl.0.overwrite_existing_domain"},

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@magodo Yes you are right, but I do not understand why as the parameters are defined within the same block.

Copy link
Collaborator

@magodo magodo May 24, 2021

Choose a reason for hiding this comment

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

@gro1m Unfortunately this is how the resource data is implemented internally for now, as a map keyed by property addresses.

@gro1m
Copy link
Contributor Author

gro1m commented May 24, 2021

Test summary (everything passes):

TF_ACC=1 go test -v ./azurerm/internal/services/machinelearning -run=TestAccInferenceCluster -timeout 60m -ldflags="-X=github.com/terraform-providers/terraform-provider-azurerm/version.ProviderVersion=acc"
2021/05/24 10:44:22 [DEBUG] not using binary driver name, it's no longer needed
2021/05/24 10:44:23 [DEBUG] not using binary driver name, it's no longer needed
=== RUN   TestAccInferenceCluster_basic
=== PAUSE TestAccInferenceCluster_basic
=== RUN   TestAccInferenceCluster_requiresImport
=== PAUSE TestAccInferenceCluster_requiresImport
=== RUN   TestAccInferenceCluster_completeCustomSSL
=== PAUSE TestAccInferenceCluster_completeCustomSSL
=== RUN   TestAccInferenceCluster_completeMicrosoftSSL
=== PAUSE TestAccInferenceCluster_completeMicrosoftSSL
=== RUN   TestAccInferenceCluster_completeProduction
=== PAUSE TestAccInferenceCluster_completeProduction
=== CONT  TestAccInferenceCluster_basic
=== CONT  TestAccInferenceCluster_requiresImport
=== CONT  TestAccInferenceCluster_completeProduction
=== CONT  TestAccInferenceCluster_completeMicrosoftSSL
=== CONT  TestAccInferenceCluster_completeCustomSSL
--- PASS: TestAccInferenceCluster_requiresImport (836.13s)
--- PASS: TestAccInferenceCluster_completeCustomSSL (898.38s)
--- PASS: TestAccInferenceCluster_completeProduction (942.92s)
--- PASS: TestAccInferenceCluster_basic (952.25s)
--- PASS: TestAccInferenceCluster_completeMicrosoftSSL (952.58s)
PASS
ok      github.com/terraform-providers/terraform-provider-azurerm/azurerm/internal/services/machinelearning     957.866s

@ghost ghost added the documentation label May 24, 2021
@gro1m gro1m marked this pull request as ready for review May 24, 2021 13:18
@gro1m gro1m changed the title [WIP] update azurerm_machine_learning_inference_cluster - add possibility to use Microsoft ssl certificates (add leaf_domain_label) azurerm_machine_learning_inference_cluster - update to allow use of Microsoft ssl certificates (add leaf_domain_label) May 24, 2021
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.

Thanks @gro1m - LGTM 🚀

@katbyte katbyte added this to the v2.62.0 milestone Jun 2, 2021
@katbyte katbyte changed the title azurerm_machine_learning_inference_cluster - update to allow use of Microsoft ssl certificates (add leaf_domain_label) azurerm_machine_learning_inference_cluster - support for the ssl.leaf_domain_label and ssl. overwrite_existing_domain properties Jun 2, 2021
@katbyte katbyte merged commit 675f02a into hashicorp:master Jun 2, 2021
katbyte added a commit that referenced this pull request Jun 2, 2021
@ghost
Copy link

ghost commented Jun 4, 2021

This has been released in version 2.62.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.62.0"
}
# ... other configuration ...

@github-actions
Copy link

github-actions bot commented Jul 5, 2021

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 Jul 5, 2021
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