Skip to content

Commit f410b6b

Browse files
Merge pull request #1897 from stuggi/fix_make_docs
Fix make docs for multi-group API operators
2 parents dcc6133 + cbb3e40 commit f410b6b

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)