Skip to content

Comments

Add new /apis/nova structure, update imports, and remove old api/#1075

Open
auniyal61 wants to merge 3 commits intoopenstack-k8s-operators:mainfrom
auniyal61:multi-group-apis-restructure
Open

Add new /apis/nova structure, update imports, and remove old api/#1075
auniyal61 wants to merge 3 commits intoopenstack-k8s-operators:mainfrom
auniyal61:multi-group-apis-restructure

Conversation

@auniyal61
Copy link
Contributor

  • Create apis/nova/v1beta1/ for Nova API types
  • Copy all Nova API files from api/v1beta1/ to apis/nova/v1beta1/
  • Create apis/go.mod with updated module path (api --> apis)
  • Update import paths from api/v1beta1 to apis/nova/v1beta1 dirs
  • Remove old api/ dir

Placement will be added in a separate PR.

- Create apis/nova/v1beta1/ for Nova API types
- Copy all Nova API files from api/v1beta1/ to apis/nova/v1beta1/
- Create apis/go.mod with updated module path (api --> apis)
- Update import paths from api/v1beta1 to apis/nova/v1beta1 dirs
- Remove old api/ dir

Placement will be added in a separate PR.
@openshift-ci openshift-ci bot requested review from abays and jamepark4 February 23, 2026 05:05
@openshift-ci
Copy link
Contributor

openshift-ci bot commented Feb 23, 2026

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: auniyal61

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Details Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@softwarefactory-project-zuul
Copy link

Build failed (check pipeline). Post recheck (without leading slash)
to rerun all jobs. Make sure the failure cause has been resolved before
you rerun jobs.

https://softwarefactory-project.io/zuul/t/rdoproject.org/buildset/9d4a0ce79e3449eebd1aeaa76a18bbc6

openstack-meta-content-provider FAILURE in 6m 18s
⚠️ nova-operator-kuttl SKIPPED Skipped due to failed job openstack-meta-content-provider
⚠️ nova-operator-tempest-multinode SKIPPED Skipped due to failed job openstack-meta-content-provider
⚠️ nova-operator-tempest-multinode-ceph SKIPPED Skipped due to failed job openstack-meta-content-provider

@auniyal61 auniyal61 force-pushed the multi-group-apis-restructure branch from 0284901 to 66b2f48 Compare February 23, 2026 05:22
@softwarefactory-project-zuul
Copy link

Build failed (check pipeline). Post recheck (without leading slash)
to rerun all jobs. Make sure the failure cause has been resolved before
you rerun jobs.

https://softwarefactory-project.io/zuul/t/rdoproject.org/buildset/0dc601b27ecb471db71801bb82f75085

openstack-meta-content-provider FAILURE in 9m 50s
⚠️ nova-operator-kuttl SKIPPED Skipped due to failed job openstack-meta-content-provider
⚠️ nova-operator-tempest-multinode SKIPPED Skipped due to failed job openstack-meta-content-provider
⚠️ nova-operator-tempest-multinode-ceph SKIPPED Skipped due to failed job openstack-meta-content-provider

@softwarefactory-project-zuul
Copy link

Build failed (check pipeline). Post recheck (without leading slash)
to rerun all jobs. Make sure the failure cause has been resolved before
you rerun jobs.

https://softwarefactory-project.io/zuul/t/rdoproject.org/buildset/1f5ad0ec578345b391db2fb308e12bd1

openstack-meta-content-provider FAILURE in 9m 21s
⚠️ nova-operator-kuttl SKIPPED Skipped due to failed job openstack-meta-content-provider
⚠️ nova-operator-tempest-multinode SKIPPED Skipped due to failed job openstack-meta-content-provider
⚠️ nova-operator-tempest-multinode-ceph SKIPPED Skipped due to failed job openstack-meta-content-provider

manifests: gowork controller-gen ## Generate WebhookConfiguration, ClusterRole and CustomResourceDefinition objects.
$(CONTROLLER_GEN) rbac:roleName=manager-role crd webhook paths="./..." output:crd:artifacts:config=config/crd/bases && \
rm -f api/bases/* && cp -a config/crd/bases api/
$(CONTROLLER_GEN) rbac:roleName=manager-role crd webhook paths="./apis/..." paths="./internal/..." paths="./cmd/..." output:crd:artifacts:config=config/crd/bases && \
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

we added extra paths (internal and cmd) here for rbac permissions
scan ./apis for CRDs, ./internal and ./cmd for RBAC markers

go.mod Outdated
)

replace github.com/openstack-k8s-operators/nova-operator/api => ./api
replace github.com/openstack-k8s-operators/nova-operator/apis => ./apis //allow-merging
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

so here used apis/ (like infra operator) instead of api/ (like openstack-operator)
to make it clear nova operator will host multiple API groups (nova, placement and eventually cyborg).

@auniyal61 auniyal61 force-pushed the multi-group-apis-restructure branch from 6a10cec to 237e678 Compare February 23, 2026 10:02
@softwarefactory-project-zuul
Copy link

Build failed (check pipeline). Post recheck (without leading slash)
to rerun all jobs. Make sure the failure cause has been resolved before
you rerun jobs.

https://softwarefactory-project.io/zuul/t/rdoproject.org/buildset/76476cf72e7246409d658ce620195916

openstack-meta-content-provider FAILURE in 9m 24s
⚠️ nova-operator-kuttl SKIPPED Skipped due to failed job openstack-meta-content-provider
⚠️ nova-operator-tempest-multinode SKIPPED Skipped due to failed job openstack-meta-content-provider
⚠️ nova-operator-tempest-multinode-ceph SKIPPED Skipped due to failed job openstack-meta-content-provider

- go.mod: Replaced module reference from /api to /apis, added //allow-merging comment
- PROJECT: Updated Nova API paths to apis/nova/v1beta1
- Makefile: Updated manifests, gowork, operator-lint, vet, and test targets for /apis
            Use explicit controller-gen paths instead of ./...
- make manifests to generate Nova CRDs in config/crd/bases/
- creates and place all CRDs in  apis/bases/
@auniyal61 auniyal61 force-pushed the multi-group-apis-restructure branch from 237e678 to e1e0ed6 Compare February 23, 2026 10:39
@softwarefactory-project-zuul
Copy link

Build failed (check pipeline). Post recheck (without leading slash)
to rerun all jobs. Make sure the failure cause has been resolved before
you rerun jobs.

https://softwarefactory-project.io/zuul/t/rdoproject.org/buildset/cf355f8c619047b8b17bd61514e4978d

openstack-meta-content-provider FAILURE in 9m 39s
⚠️ nova-operator-kuttl SKIPPED Skipped due to failed job openstack-meta-content-provider
⚠️ nova-operator-tempest-multinode SKIPPED Skipped due to failed job openstack-meta-content-provider
⚠️ nova-operator-tempest-multinode-ceph SKIPPED Skipped due to failed job openstack-meta-content-provider

Copy link
Contributor

@gibizer gibizer left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Changes in the api structure looks good to me.

Next steps are restructuring

  • the internal dir
  • the tests dir
  • the template dir

Copy link
Contributor

@gibizer gibizer left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

make a symlink to ./apis -> ./api/nova to make the build pass. Then bump the meta operator then remove the symlink

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants