-
Notifications
You must be signed in to change notification settings - Fork 988
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
kubernetes_ingress_v1 resource does not correctly include empty tls configuation blocks in resulting k8s ingress object #2343
Comments
I submitted a pull request that fixes this. |
Could you please share a reference doc that explains the OS behavior you refer to? Could you please also elaborate on this statement "multiple empty tls blocks cause a panic."? Thanks. |
The behavior I described is documented here: https://docs.openshift.com/container-platform/4.14/networking/routes/route-configuration.html#creating-edge-route-with-default-certificate_route-configuration
The panic I referred to looks like this:
It occurs when you use multiple TLS blocks. The first must be non-empty and a later one must be empty. This is because the
The code checks if the first block is |
@arybolovlev Please let me know if you would like be to provide any more information. I appreciate you taking the time to look at this. |
Thank you! I have left a comment in your PR. All in all, it looks great, just a few small fixes before we merge it. TY! |
Terraform Version, Provider Version and Kubernetes Version
Affected Resource(s)
kubernetes_ingress_v1. No others tested
Terraform Configuration Files
Steps to Reproduce
terraform apply
kubectl get ing myingress -o yaml
Expected Behavior
Ingress should have an empty tls block
Actual Behavior
Ingress has no tls blocks
Important Factoids
This behavior is important to support because an ingress controller may treat an empty tls config different from a missing tls config, like in OpenShift. Also something to note: multiple empty tls blocks cause a panic.
Community Note
The text was updated successfully, but these errors were encountered: