From cbb3e405685321e86029c57700ea95e2b43efdc1 Mon Sep 17 00:00:00 2001 From: Martin Schuppert Date: Fri, 17 Apr 2026 17:48:03 +0200 Subject: [PATCH] Fix make docs for multi-group API operators The build_docs.sh script assumed all operator API types live directly under v1beta1/*_types.go, but nova-operator moved to a multi-group layout with types under nova/v1beta1/. The hardcoded ls glob failed for this structure. Replace ls with find -path "*/v1beta1/*_types.go" to discover types in any v1beta1 subdirectory regardless of nesting depth. Co-Authored-By: Claude Opus 4.6 (1M context) Signed-off-by: Martin Schuppert --- docs/build_docs.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/docs/build_docs.sh b/docs/build_docs.sh index 235c0e9176..18e3b843d0 100755 --- a/docs/build_docs.sh +++ b/docs/build_docs.sh @@ -15,10 +15,10 @@ DATAPLANE_PATHS=( "api/dataplane/v1beta1/common.go" ) -# Getting APIs from Services -SERVICE_PATH=($(MODCACHE=$(go env GOMODCACHE) awk '/openstack-k8s-operators/ && ! /lib-common/ && ! /openstack-operator/ && ! /infra/ && ! /replace/ {print ENVIRON["MODCACHE"] "/" $1 "@" $2 "/v1beta1/*_types.go"}' api/go.mod)) +# Getting APIs from Services (use find to support multi-group operators like nova-operator) +SERVICE_PATH=($(MODCACHE=$(go env GOMODCACHE) awk '/openstack-k8s-operators/ && ! /lib-common/ && ! /openstack-operator/ && ! /infra/ && ! /replace/ {print ENVIRON["MODCACHE"] "/" $1 "@" $2}' api/go.mod)) for SERVICE in ${SERVICE_PATH[@]};do - CTLPLANE_PATHS+=($(ls ${SERVICE})) + CTLPLANE_PATHS+=($(find ${SERVICE} -path "*/v1beta1/*_types.go")) done # Getting APIs from Infra