Repository navigation
Conversation
|
@tzvatot: This pull request references OSAC-1828 which is a valid jira issue. Warning: The referenced jira issue has an invalid target version for the target branch this PR targets: expected the task to target the "5.0.0" version, but no target version was set. DetailsIn response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the openshift-eng/jira-lifecycle-plugin repository. |
|
Skipping CI for Draft Pull Request. |
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: tzvatot The full list of commands accepted by this bot can be found here. The pull request process is described here DetailsNeeds approval from an approver in each of these files:
Approvers can indicate their approval by writing |
|
Warning Review limit reached
Next review available in: 33 minutes Enable usage-based reviews in Billing to review now. Otherwise, wait until the next included review is available. How can I continue?After more reviews become available, a review can be triggered using the To avoid repeated limits, reduce automatic review volume by pausing incremental auto-reviews earlier, using label-based review opt-in, excluding WIP or generated PR titles, or requesting reviews manually when the PR is ready. If your team needs uninterrupted high-volume reviews, an organization admin can enable usage-based reviews. How do review limits work?CodeRabbit enforces per-developer PR review limits for each organization. Most developers receive the normal plan review availability. For paid Pro and Pro+ PR reviews, CodeRabbit uses adaptive limits for sustained high-volume activity. When a developer's recent PR review activity reaches the 95th percentile or higher among CodeRabbit users, additional reviews become available more gradually as earlier reviews age out of the rolling window. Please refer docs for additional details. Review details⚙️ Run configurationConfiguration used: Repository: osac-project/coderabbit/.coderabbit.yaml Review profile: ASSERTIVE Plan: Enterprise Run ID: 📒 Files selected for processing (3)
WalkthroughMigration 71 inserts an Migration 71: ocp_small cluster template
Estimated code review effort🎯 1 (Trivial) | ⏱️ ~5 minutes Possibly related PRs
Poem
🚥 Pre-merge checks | ✅ 11✅ Passed checks (11 passed)
✨ Finishing Touches🧪 Generate unit tests (beta)
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. Comment |
There was a problem hiding this comment.
Actionable comments posted: 2
🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.
Inline comments:
In `@internal/database/migrations/71_add_ocp_small_cluster_template_test.go`:
- Around line 60-66: The test is still querying the wrong tenancy field, so
update the assertion in the migration test to validate the
cluster_templates.tenants array instead of tenant. Use the existing test block
around row.Scan in 71_add_ocp_small_cluster_template_test.go and make the
query/scan/assertion match the schema contract from migration 11 so it checks
the actual array value on the ocp_small template.
In `@internal/database/migrations/71_add_ocp_small_cluster_template.up.sql`:
- Around line 14-18: Update the `cluster_templates` seed in the
`71_add_ocp_small_cluster_template` migration to use the schema’s `tenants`
field instead of `tenant`, or omit the field if the default should apply. Make
the same adjustment in the related test that validates this seed so it asserts
against `tenants` on the `cluster_templates` record, keeping the migration and
test aligned with the existing tenancy contract.
🪄 Autofix (Beta)
Fix all unresolved CodeRabbit comments on this PR:
- Push a commit to this branch (recommended)
- Create a new PR with the fixes
ℹ️ Review info
⚙️ Run configuration
Configuration used: Repository: osac-project/coderabbit/.coderabbit.yaml
Review profile: ASSERTIVE
Plan: Enterprise
Run ID: 27dcf894-a2f8-411f-9be4-e639495fb47f
📒 Files selected for processing (3)
internal/database/migrations.sha256internal/database/migrations/71_add_ocp_small_cluster_template.up.sqlinternal/database/migrations/71_add_ocp_small_cluster_template_test.go
|
/retest |
|
Re-triggered failed runs:
|
New migration adds ocp_small cluster template to the database with a parameterized ocp_release_version (default 4.22.0) and spec_defaults setting the release image to OCP 4.22, which the server applies as the default release_image for clusters using this template. Assisted-by: Claude Code <noreply@anthropic.com> Signed-off-by: Elad Tabak <etabak@redhat.com>
Assisted-by: Claude Code <noreply@anthropic.com> Signed-off-by: Elad Tabak <etabak@redhat.com>
|
Why is a migration needed to add a new cluster template?
Moreover, this infrastructure already exists in osac-aap. The
The companion osac-aap PR (#385) already adds the The migration approach also means every new template requires a code change, PR, and release cycle in fulfillment-service. A cloud provider adding a custom template shouldn't need to touch the DB. Maybe I'm missing something, but this PR shouldn't be needed at all — just the osac-aap PR adding the role. |
Correct. I was wrong - closing this. |
OSAC-1828: Add ocp_small cluster template seed with OCP 4.22 default
Jira: OSAC-1828
Summary
Adds a new
ocp_smallcluster template to the database with a parameterizedocp_release_version(default 4.22.0) andspecDefaults.releaseImageset to the OCP 4.22 multi-arch release image. This is Phase 1 of a non-breaking approach to update the default CaaS cluster OCP version - the existingocp_4_17_smalltemplate is not modified.Companion PR: osac-project/osac-aap - adds the corresponding
ocp_smallAnsible role.Changes
68_add_ocp_small_cluster_template.up.sqlinserting theocp_smalltemplate with:ocp_release_versionstring parameter (default "4.22.0")specDefaults.releaseImage=quay.io/openshift-release-dev/ocp-release:4.22.0-multisharedtenantmigrations.sha256hashTesting
68_add_ocp_small_cluster_template_test.go)Acceptance Criteria
ocp_smalltemplaterelease_imageupdated to 4.22 (viaspecDefaults.releaseImage)ocp_4_17_smalltemplate remains functional (not modified)Summary by CodeRabbit
New Features
ocp_smallcluster template option for shared tenants.Tests