Skip to content

Lcore dev improvements#125

Closed
Akrog wants to merge 3 commits into
openstack-lightspeed:lcore-migrationfrom
Akrog:lcore-dev-improvements
Closed

Lcore dev improvements#125
Akrog wants to merge 3 commits into
openstack-lightspeed:lcore-migrationfrom
Akrog:lcore-dev-improvements

Conversation

@Akrog

@Akrog Akrog commented Jun 24, 2026

Copy link
Copy Markdown
Contributor

Just some small improvements for developers:

  • ocp-deploy and ocp-deploy-cleanup targets
  • GOMAXPROCS support to limit parallel processes during golang compilation
  • Add kuttl test artifacts to .gitignore

Summary by CodeRabbit

  • New Features

    • Improved OpenShift deployment flow with a new cleanup step for registry/catalog resources.
    • Added stronger teardown behavior to remove deployed application resources more completely.
  • Bug Fixes

    • Build and container image creation now propagate CPU settings more consistently, helping ensure more reliable builds in different environments.
  • Chores

    • Updated ignored test artifacts so temporary KUTTL files are no longer tracked.

Simply ignore the `kubeconfig` and
`kuttl-report-openstack-lightspeed.xml` files that are generated during
a kuttl test run (eg: `make kuttl-test-ocp`).
@openshift-ci openshift-ci Bot requested review from lpiwowar and umago June 24, 2026 15:48
@openshift-ci

openshift-ci Bot commented Jun 24, 2026

Copy link
Copy Markdown

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: Akrog

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

@coderabbitai

coderabbitai Bot commented Jun 24, 2026

Copy link
Copy Markdown

Important

Review skipped

Auto reviews are disabled on base/target branches other than the default branch.

Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Pro

Run ID: f091779e-6515-4936-a590-d5e7822adad4

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • 🔍 Trigger review
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@lpiwowar lpiwowar left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

LGTM, this is helpful!

Only one super small nit. I'll give a time for the fix. If it does not happen I'm ok with /lgtm by whomever comes after me.

Comment thread Makefile Outdated
ocp-deploy: IMG = $(OCP_INTERNAL_REGISTRY)/$(OCP_REGISTRY_NAMESPACE)/operator:latest
ocp-deploy: BUNDLE_IMG = $(OCP_INTERNAL_REGISTRY)/openshift-marketplace/operator-bundle:$(TAG)
ocp-deploy: CATALOG_IMG = $(OCP_INTERNAL_REGISTRY)/openshift-marketplace/operator-catalog:$(TAG)
ocp-deploy: docker-build bundle bundle-build ocp-catalog-build ocp-registry-push openstack-lightspeed-deploy

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

nit (non-blocking):

Suggested change
ocp-deploy: docker-build bundle bundle-build ocp-catalog-build ocp-registry-push openstack-lightspeed-deploy
ocp-deploy: docker-build bundle bundle-build ocp-catalog-build ocp-registry-push openstack-lightspeed-deploy ## Build, push, and deploy the operator on an OCP cluster.

@umago umago left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Code looks good! Lukas left a small nit inline. We can approve after that update

Akrog added 2 commits July 6, 2026 14:08
Similar to `kuttl-test-ocp` that deploys and runs kuttl we now add a
couple of convenient make targets to help development:

- `ocp-deploy`
- `ocp-deploy-cleanup`
Right now when we build the container (make docker-build) or the
controller (make build) the go compiler will try to use all the CPUs on
the machine.

This can become problematic in some systems that may suffer starvation
(eg: audio problems), so we add support for the `GOMAXPROCS` env var to
be passed to those 2 make targets.
@Akrog

Akrog commented Jul 6, 2026

Copy link
Copy Markdown
Contributor Author

Closed after proposing the PR to new repository: openstack-k8s-operators/lightspeed-operator#10

@Akrog Akrog closed this Jul 6, 2026
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.

3 participants