-
Notifications
You must be signed in to change notification settings - Fork 4.6k
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_redhat_openshift_cluster
- Allow multiple ingress_profile blocks, with a name
#25048
Comments
Tested the patch. Azure only creates a Load Balancer but no corresponding IngressController resource on the cluster. However, the second ingress is only listed on the ingressProfiles list in the az/terraform state once an IngressController has been applied to the cluster. That's not so elegant but at least the patch solves the immediate problem of forced cluster recreation. Suggestions? |
…locks, with a name (hashicorp#25028) * Fixes hashicorp#25048 * Provide multiIngress acceptance test. * Preserve using "default" as the default ingress name, if not specified. * Provide unique name using an index suffix if no name is defined for further ingresses.
azurerm_redhat_openshift_cluster
- Allow multiple ingress_profile blocks, with a name
Patch has been updated according to the PR review and an acceptance test has been added to verify multiple load balancers are actually created. Waiting for the acceptance tests to be re-ran. |
…locks, with a name (hashicorp#25028) * Fixes hashicorp#25048 * Provide multiIngress acceptance test. * Preserve using "default" as the default ingress name, if not specified. * Provide unique name using an index suffix if no name is defined for further ingresses.
Hi, @martin-aders How did you end up circumventing this? I saw that your PR got closed.
This block still generates changes and forces recreation. EDIT: Nevermind. For some reason it works now. |
Nice idea to work around the issue @Honken77 - the PR just got closed due to me reacting too slowly. Still using the patched provider locally. I need to revive the PR once I'm doing bigger changes in this area again. |
It would for sure be a lot better if we could define our Ingress Controllers at cluster creation within the resource. I can understand if we cannot touch the Default one, but definately create additional ones. |
Is there an existing issue for this?
Community Note
Terraform Version
1.7.4
AzureRM Provider Version
3.90.0
Affected Resource(s)/Data Source(s)
azurerm_redhat_openshift_cluster
Terraform Configuration Files
Debug Output/Panic Output
Expected Behaviour
I would expect that terraform plan would detect that there is a new ingress being listed. Once the user adds a second ingress_profile block to the terraform openshift resource, the plan should suggest to fetch the data of this second ingress and update the state accordingly. No cluster recreation.
Not sure whether the Azure API allows creation of an ARO cluster with two ingresses defined. However, it should be at least possible to allow a second ingress to be present after creation of the ARO. Otherwise the ARO cluster cannot be managed anymore using terraform.
The minimal expectation is that all non-default ingresses would at least be ignored for the plan.
Actual Behaviour
Terraform plan suggests to recreate the cluster, based on a detected change on the ingress_profile:
Steps to Reproduce
Important Factoids
No response
References
azurerm_redhat_openshift_cluster
- Allow multiple ingress_profile blocks, with a name #25028 (Should "name" be optional or not? Hoping for backward compatibility)The text was updated successfully, but these errors were encountered: