-
Notifications
You must be signed in to change notification settings - Fork 62
Add AGENTS.md #1113
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
fmount
wants to merge
1
commit into
openstack-k8s-operators:main
Choose a base branch
from
fmount:agentsmd
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
+62
−0
Open
Add AGENTS.md #1113
Changes from all commits
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Some comments aren't visible on the classic Files Changed page.
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,62 @@ | ||
| # AGENTS.md - nova-operator | ||
|
|
||
| ## Project overview | ||
|
|
||
| nova-operator is a Kubernetes operator that manages | ||
| [OpenStack Nova](https://docs.openstack.org/nova/latest/) (the compute | ||
| service: VM lifecycle, scheduling, cells, live migration, VNC console, and | ||
| metadata) on OpenShift/Kubernetes. It is part of the | ||
| [openstack-k8s-operators](https://github.com/openstack-k8s-operators) project. | ||
|
|
||
| ## Tech stack | ||
|
|
||
| | Layer | Technology | | ||
| |-------|------------| | ||
| | Language | Go (modules, multi-module workspace via `go.work`) | | ||
| | Scaffolding | [Kubebuilder v4](https://book.kubebuilder.io/) + [Operator SDK](https://sdk.operatorframework.io/) | | ||
| | CRD generation | controller-gen (DeepCopy, CRDs, RBAC, webhooks) | | ||
| | Config management | Kustomize | | ||
| | Packaging | OLM bundle | | ||
| | Testing | Ginkgo/Gomega + envtest (functional), KUTTL (integration) | | ||
| | Linting | golangci-lint (`.golangci.yaml`) | | ||
| | CI | Zuul (`zuul.d/`), Prow (`.ci-operator.yaml`), GitHub Actions | | ||
|
|
||
| ## Directory structure and Custom Resources | ||
|
|
||
| The project directory structure and design choices are documented in | ||
| [doc/design.md](doc/design.md). | ||
|
|
||
| ## Build commands | ||
|
|
||
| After modifying Go code, always run: `make generate manifests fmt vet`. | ||
|
|
||
| ## Code style guidelines | ||
|
|
||
| - Follow standard openstack-k8s-operators conventions and lib-common patterns. | ||
| - Use `lib-common` modules for conditions, endpoints, TLS, storage, and other | ||
| cross-cutting concerns rather than re-implementing them. | ||
| - CRD types go in `api/v1beta1/`. Controller logic goes in | ||
| `internal/controller/`. Resource-building helpers go in `internal/nova*` | ||
| packages matching the CR they support. | ||
| - Config templates are plain files in `templates/` -- they are mounted at | ||
| runtime via the `OPERATOR_TEMPLATES` environment variable. | ||
| - Webhook logic is split between the kubebuilder markers in `api/v1beta1/` and | ||
| the implementation in `internal/webhook/`. | ||
|
|
||
| ## Testing | ||
|
|
||
| - Functional tests use the envtest framework with Ginkgo/Gomega and live in | ||
| `test/functional/`. | ||
| - KUTTL integration tests live in `test/kuttl/`. | ||
| - Run all functional tests: `make test`. | ||
| - When adding a new field or feature, add corresponding test cases in | ||
| `test/functional/` and update fixture data accordingly. | ||
|
|
||
| ## Key dependencies | ||
|
|
||
| - [lib-common](https://github.com/openstack-k8s-operators/lib-common): shared modules for conditions, endpoints, database, TLS, secrets, etc. | ||
| - [infra-operator](https://github.com/openstack-k8s-operators/infra-operator): RabbitMQ and topology APIs. | ||
| - [mariadb-operator](https://github.com/openstack-k8s-operators/mariadb-operator): database provisioning. | ||
| - [keystone-operator](https://github.com/openstack-k8s-operators/keystone-operator): identity service registration. | ||
| - [gophercloud](https://github.com/gophercloud/gophercloud): Go OpenStack SDK. | ||
| - [Developer guide](https://github.com/openstack-k8s-operators/nova-operator/blob/main/doc/developer.md): local development setup, building, running, and debugging the operator. | ||
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.