kubernetes-sigs / gateway-api

Repository for the next iteration of composite service (e.g. Ingress) and load balancing APIs.
https://gateway-api.sigs.k8s.io
Apache License 2.0
1.8k stars 468 forks source link

BackendTLSPolicy does not show up in generated API Spec #3016

Open robscott opened 5 months ago

robscott commented 5 months ago

What happened: BackendTLSPolicy is currently absent from https://gateway-api.sigs.k8s.io/reference/spec.

What you expected to happen: BackendTLSPolicy to be included with all our other APIs.

How to reproduce it (as minimally and precisely as possible): Visit https://gateway-api.sigs.k8s.io/reference/spec.

Anything else we need to know?: It's worth noting that references to BackendTLSPolicy types are still linked, they just don't go anywhere:

Screenshot 2024-04-23 at 4 52 09 PM

My best guess is that the docs generator we're using is just confused by the transition to v1alpha3 while all other API types are in different versions. Maybe something used in the logic to combine API packages is messed up?

I've been meaning to move to https://github.com/elastic/crd-ref-docs, this may be another reason to try that out if we can't find an easy fix with our existing docs generation.

candita commented 5 months ago

@robscott do you want to include all the version packages on that page? In the template we only include two: https://github.com/kubernetes-sigs/gateway-api/blob/main/hack/api-docs/pkg.tpl#L40-L49

robscott commented 5 months ago

@candita good point! Maybe that's the only change we'd need? So far we've included all versions on a single page which I think is probably simplest, but happy to take a different approach if that's better.

candita commented 5 months ago

We could revert to https://github.com/kubernetes-sigs/gateway-api/blob/b1f655e6e88690b47447643066c550884e2f81ab/hack/api-docs/pkg.tpl, which iterates over the packages, and that would fix one problem.

robscott commented 5 months ago

We could revert to https://github.com/kubernetes-sigs/gateway-api/blob/b1f655e6e88690b47447643066c550884e2f81ab/hack/api-docs/pkg.tpl, which iterates over the packages, and that would fix one problem.

I'm not sure why we made that change to begin with, but reverting to the earlier version SGTM.

robscott commented 3 months ago

/assign @gcs278

k8s-triage-robot commented 3 days ago

The Kubernetes project currently lacks enough contributors to adequately respond to all issues.

This bot triages un-triaged issues according to the following rules:

You can:

Please send feedback to sig-contributor-experience at kubernetes/community.

/lifecycle stale