Terraform-provider-kubernetes: Add path_type to kubernetes_ingress

Created on 1 Oct 2020  ·  2Comments  ·  Source: hashicorp/terraform-provider-kubernetes

Description

I am fairly new to kubernetes so I can't suggest how this can be done but we'd really like the ability to specify path_type as part of rule within a kubernetes_ingress.

Potential Terraform Configuration

In Yaml this would look like this:


- path: /api/app.api
        pathType: Prefix
        backend:
          serviceName: appapi
          servicePort: 80


References

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
enhancement help wanted sizL

Most helpful comment

pathType was introduced as part of 1.18. It is part of the v1 ingress spec as of 1.19. In 1.19 pathType MUST be specified.

image

All 2 comments

pathType was introduced as part of 1.18. It is part of the v1 ingress spec as of 1.19. In 1.19 pathType MUST be specified.

image

Thanks for opening this @zolty – we definitely want to bring in support for v1 of the networking API, which this attribute is a part of. As we currently use v1beta1 of the API however we will still need to support that for some time too.

If anyone is interested in opening a PR for this, we have some prior art on supporting two API versions with the horizontal_pod_autoscaler resource.

Was this page helpful?
0 / 5 - 0 ratings