Skip to content

Commit cbb3e40

Browse files
stuggiclaude
andcommitted
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) <noreply@anthropic.com> Signed-off-by: Martin Schuppert <mschuppert@redhat.com>
1 parent dcc6133 commit cbb3e40

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

docs/build_docs.sh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,10 +15,10 @@ DATAPLANE_PATHS=(
1515
"api/dataplane/v1beta1/common.go"
1616
)
1717

18-
# Getting APIs from Services
19-
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))
18+
# Getting APIs from Services (use find to support multi-group operators like nova-operator)
19+
SERVICE_PATH=($(MODCACHE=$(go env GOMODCACHE) awk '/openstack-k8s-operators/ && ! /lib-common/ && ! /openstack-operator/ && ! /infra/ && ! /replace/ {print ENVIRON["MODCACHE"] "/" $1 "@" $2}' api/go.mod))
2020
for SERVICE in ${SERVICE_PATH[@]};do
21-
CTLPLANE_PATHS+=($(ls ${SERVICE}))
21+
CTLPLANE_PATHS+=($(find ${SERVICE} -path "*/v1beta1/*_types.go"))
2222
done
2323

2424
# Getting APIs from Infra

0 commit comments

Comments
 (0)