Skip to content

SANDBOX-1067 | feature: namespace deletion member service account#1250

Open
MikelAlejoBR wants to merge 1 commit intocodeready-toolchain:masterfrom
MikelAlejoBR:SANDBOX-1067-workspace-reset-mo
Open

SANDBOX-1067 | feature: namespace deletion member service account#1250
MikelAlejoBR wants to merge 1 commit intocodeready-toolchain:masterfrom
MikelAlejoBR:SANDBOX-1067-workspace-reset-mo

Conversation

@MikelAlejoBR
Copy link
Contributor

@MikelAlejoBR MikelAlejoBR commented Jan 29, 2026

The registration service uses the member service account to be able to
interact with the member clusters. In order to be able to delete the
user namespaces to trigger a reconciliation from the NSTemplateSet
controller, we need the service account to have the "delete" permission
too.

Jira ticket

[SANDBOX-1067]

Summary by CodeRabbit

  • Tests
    • Expanded test coverage for namespace permissions to include deletion checks in addition to get/list/watch validations, ensuring broader verification of resource permission handling and preventing regressions in permission-sensitive flows.

✏️ Tip: You can customize this high-level summary in your review settings.

@openshift-ci openshift-ci bot requested review from fbm3307 and xcoulon January 29, 2026 18:45
@openshift-ci
Copy link

openshift-ci bot commented Jan 29, 2026

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by: MikelAlejoBR
Once this PR has been reviewed and has the lgtm label, please assign jrosental for approval. For more information see the Code Review Process.

The full list of commands accepted by this bot can be found 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
Copy link

coderabbitai bot commented Jan 29, 2026

Walkthrough

The change updates WaitForToolchainClusterResources to expand the namespaces resource verbs from ["get", "list", "watch"] to ["delete", "get", "list", "watch"].

Changes

Cohort / File(s) Summary
Test Support Configuration
testsupport/wait/member.go
Added the delete verb to the namespaces resource verbs in WaitForToolchainClusterResources; no other logic changes.

Estimated code review effort

🎯 1 (Trivial) | ⏱️ ~2 minutes

Poem

🐰 I hopped through code with nimble feet,
A single verb added, tidy and neat,
delete joins get, list, watch in line,
Small change, small dance, all tests will shine,
Thump-thump — a rabbit's celebratory beat!

🚥 Pre-merge checks | ✅ 3
✅ Passed checks (3 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title is specific and clearly related to the main change—granting the namespace deletion permission to the member service account.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.

✏️ Tip: You can configure your own custom pre-merge checks in the settings.

✨ Finishing touches
  • 📝 Generate docstrings
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Post copyable unit tests in a comment

Tip

🧪 Unit Test Generation v2 is now available!

We have significantly improved our unit test generation capabilities.

To enable: Add this to your .coderabbit.yaml configuration:

reviews:
  finishing_touches:
    unit_tests:
      enabled: true

Try it out by using the @coderabbitai generate unit tests command on your code files or under ✨ Finishing Touches on the walkthrough!

Have feedback? Share your thoughts on our Discord thread!


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 and usage tips.

@MikelAlejoBR MikelAlejoBR reopened this Jan 29, 2026
@MikelAlejoBR MikelAlejoBR force-pushed the SANDBOX-1067-workspace-reset-mo branch from a323513 to 164c2a4 Compare January 29, 2026 19:00
@MikelAlejoBR
Copy link
Contributor Author

/retest

The registration service uses the member service account to be able to
interact with the member clusters. In order to be able to delete the
user namespaces to trigger a reconciliation from the NSTemplateSet
controller, we need the service account to have the "delete" permission
too.

SANDBOX-1067
@MikelAlejoBR MikelAlejoBR force-pushed the SANDBOX-1067-workspace-reset-mo branch from 164c2a4 to 8947756 Compare January 30, 2026 12:56
@MikelAlejoBR MikelAlejoBR reopened this Jan 30, 2026
@sonarqubecloud
Copy link

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant