terraform-provider-kubernetes icon indicating copy to clipboard operation
terraform-provider-kubernetes copied to clipboard

Nginx Ingress Controller is 'kubernetes_ingress_v1' example using wrong resource

Open HashBR opened this issue 3 years ago • 0 comments

Terraform Version, Provider Version and Kubernetes Version

This has nothing to do with my terraform version.

Affected Resource(s)

Here: https://registry.terraform.io/providers/hashicorp/kubernetes/latest/docs/resources/ingress_v1

Terraform Configuration Files

Nothing wrong with my configurations. It's just the example.

Debug Output

Steps to Reproduce

  • Open browser

  • Go here https://registry.terraform.io/providers/hashicorp/kubernetes/latest/docs/resources/ingress_v1#example-using-nginx-ingress-controller

  • Notice that the code is using

resource "kubernetes_service_v1" "example" {

while in resource "kubernetes_ingress_v1" "example" { is using name = kubernetes_service.example.metadata.0.name which doesn't exist in the example.

Expected Behavior

name = kubernetes_service_v1.example.metadata.0.name

Actual Behavior

name = kubernetes_service.example.metadata.0.name

Important Factoids

N/A

References

Not that I know.

Community Note

  • Please vote on this issue by adding a 👍 reaction to the original issue to help the community and maintainers prioritize this request
  • If you are interested in working on this issue or have submitted a pull request, please leave a comment

HashBR avatar Sep 24 '22 19:09 HashBR