gateway-api icon indicating copy to clipboard operation
gateway-api copied to clipboard

BackendTLSPolicy does not show up in generated API Spec

Open robscott opened this issue 1 year ago • 6 comments

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.

robscott avatar Apr 23 '24 23:04 robscott

@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

candita avatar Apr 24 '24 17:04 candita

@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.

robscott avatar Apr 24 '24 18:04 robscott

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.

candita avatar Apr 24 '24 21:04 candita

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 avatar Apr 24 '24 22:04 robscott

/assign @gcs278

robscott avatar Jul 18 '24 20:07 robscott