Skip to content

GCP-696: Add channelGroup to ReleaseSpec model#46

Open
cristianoveiga wants to merge 3 commits into
openshift-hyperfleet:mainfrom
cristianoveiga:feat/GCP-696-add-channelgroup-to-releasespec
Open

GCP-696: Add channelGroup to ReleaseSpec model#46
cristianoveiga wants to merge 3 commits into
openshift-hyperfleet:mainfrom
cristianoveiga:feat/GCP-696-add-channelgroup-to-releasespec

Conversation

@cristianoveiga
Copy link
Copy Markdown

@cristianoveiga cristianoveiga commented May 15, 2026

Summary

  • Adds channelGroup?: string to ReleaseSpec in models-gcp/cluster/model.tsp
  • Bumps API version to 1.0.14
  • Regenerates all four schema artifacts (GCP/core × OpenAPI 3.0/Swagger 2.0)
  • Updates CHANGELOG.md

Context

The version-resolution-adapter (GCP-677) reads spec.release.channelGroup via CEL optional chaining to determine which Cincinnati channel group to use when resolving a version to a release image (e.g. candidate-4.22, stable-4.22, fast-4.22).

Without this field formally in the API spec, clients had no documentation or validation, and requiredFieldsGate would fire silently. No adapter changes are needed — the CEL already handles the field.

Related

Checklist

  • Dependencies installed: npm install
  • GCP variant builds: ./build-schema.sh gcp
  • GCP Swagger builds: ./build-schema.sh gcp --swagger
  • Core variant builds: ./build-schema.sh core
  • Core Swagger builds: ./build-schema.sh core --swagger
  • Schema files generated: ls schemas/*/openapi.yaml
  • No TypeSpec compilation errors
  • Schemas pass linting: spectral lint schemas/core/openapi.yaml schemas/gcp/openapi.yaml
  • Changes committed including schema updates
  • PR description references related issue

🤖 Generated with Claude Code via /jira:solve GCP-696

@coderabbitai
Copy link
Copy Markdown

coderabbitai Bot commented May 15, 2026

Warning

Rate limit exceeded

@cristianoveiga has exceeded the limit for the number of commits that can be reviewed per hour. Please wait 50 minutes and 40 seconds before requesting another review.

You’ve run out of usage credits. Purchase more in the billing tab.

⌛ How to resolve this issue?

After the wait time has elapsed, a review can be triggered using the @coderabbitai review command as a PR comment. Alternatively, push new commits to this PR.

We recommend that you space out your commits to avoid hitting the rate limit.

🚦 How do rate limits work?

CodeRabbit enforces hourly rate limits for each developer per organization.

Our paid plans have higher rate limits than the trial, open-source and free plans. In all cases, we re-allow further reviews after a brief timeout.

Please see our FAQ for further information.

ℹ️ Review info
⚙️ Run configuration

Configuration used: Central YAML (base), Organization UI (inherited)

Review profile: ASSERTIVE

Plan: Enterprise

Run ID: b0478e06-640a-4f41-87c2-f7a786971701

📥 Commits

Reviewing files that changed from the base of the PR and between eb30396 and 72bd11c.

📒 Files selected for processing (11)
  • CHANGELOG.md
  • aliases.tsp
  • main.tsp
  • models-gcp/cluster/example_cluster.tsp
  • models-gcp/cluster/example_patch.tsp
  • models-gcp/cluster/example_post.tsp
  • models-gcp/cluster/model.tsp
  • schemas/core/openapi.yaml
  • schemas/core/swagger.yaml
  • schemas/gcp/openapi.yaml
  • schemas/gcp/swagger.yaml
📝 Walkthrough

Walkthrough

This PR releases version 1.0.14 of the HyperFleet API specification with two main updates. First, the ReleaseSpec model now includes an optional channelGroup string field to specify OpenShift release channel group configurations. Second, all OpenShift Cluster Version Operator references are updated from v4.14.0 to v4.22.0-ec.4. The API version is bumped to 1.0.14 across all metadata, TypeSpec service definitions, and generated OpenAPI/Swagger specifications. All example payloads in TypeSpec source files and generated schemas are synchronized with the new operator version and channel group values.

Estimated code review effort

🎯 2 (Simple) | ⏱️ ~12 minutes

🚥 Pre-merge checks | ✅ 5
✅ Passed checks (5 passed)
Check name Status Explanation
Title check ✅ Passed The title clearly summarizes the main change: adding a channelGroup field to the ReleaseSpec model, which is the core objective of the PR.
Description check ✅ Passed The description is detailed and directly related to the changeset, explaining the purpose, context, related issues, and verification steps performed.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.

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

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

@cristianoveiga cristianoveiga marked this pull request as ready for review May 15, 2026 21:35
@openshift-ci openshift-ci Bot requested review from Mischulee and tirthct May 15, 2026 21:35
@cristianoveiga
Copy link
Copy Markdown
Author

/cc @ckandag @apahim

@openshift-ci
Copy link
Copy Markdown

openshift-ci Bot commented May 15, 2026

@cristianoveiga: GitHub didn't allow me to request PR reviews from the following users: ckandag, apahim.

Note that only openshift-hyperfleet members and repo collaborators can review this PR, and authors cannot review their own PRs.

Details

In response to this:

/cc @ckandag @apahim

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 kubernetes-sigs/prow repository.

Copy link
Copy Markdown

@coderabbitai coderabbitai Bot left a comment

Choose a reason for hiding this comment

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

Actionable comments posted: 1

🤖 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 `@CHANGELOG.md`:
- Around line 10-15: The changelog link references are stale after adding the
new release header: update the link refs at the bottom so [Unreleased] compares
from v1.0.14..HEAD (or HEAD..v1.0.14 depending on your repo convention) and add
a new [1.0.14] link that compares v1.0.13..v1.0.14; specifically edit
CHANGELOG.md to add a `[1.0.14]: .../compare/v1.0.13...v1.0.14` link and update
the existing `[Unreleased]: .../compare/v1.0.13...HEAD` to point from v1.0.14 to
HEAD (or the repo’s expected order), making sure the `[Unreleased]` and
`[1.0.14]` reference names match the headings exactly.
🪄 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: Central YAML (base), Organization UI (inherited)

Review profile: ASSERTIVE

Plan: Enterprise

Run ID: 58ec5faf-4fd8-4963-ad4e-8043e21fc446

📥 Commits

Reviewing files that changed from the base of the PR and between dc7687c and eb30396.

📒 Files selected for processing (11)
  • CHANGELOG.md
  • aliases.tsp
  • main.tsp
  • models-gcp/cluster/example_cluster.tsp
  • models-gcp/cluster/example_patch.tsp
  • models-gcp/cluster/example_post.tsp
  • models-gcp/cluster/model.tsp
  • schemas/core/openapi.yaml
  • schemas/core/swagger.yaml
  • schemas/gcp/openapi.yaml
  • schemas/gcp/swagger.yaml

Comment thread CHANGELOG.md Outdated
cristianoveiga and others added 3 commits May 15, 2026 17:44
The version-resolution-adapter (GCP-677) reads spec.release.channelGroup
to determine which Cincinnati channel to use when resolving a version to
a release image (e.g. candidate-4.22, stable-4.22, fast-4.22). Without
this field in the API spec, clients had no documentation or validation,
and the field was not formally part of the contract.

Bumps version to 1.0.14 and regenerates all four schema artifacts.

Closes GCP-696

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Show channelGroup usage in create, patch, and GET response examples
so clients can discover the new field from the API documentation.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Update [Unreleased] to compare from v1.0.15...HEAD and add missing
[1.0.15] link per Keep a Changelog conventions.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@cristianoveiga cristianoveiga force-pushed the feat/GCP-696-add-channelgroup-to-releasespec branch from d4fec7d to 72bd11c Compare May 15, 2026 21:44
Copy link
Copy Markdown

@apahim apahim left a comment

Choose a reason for hiding this comment

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

/lgtm

@openshift-ci
Copy link
Copy Markdown

openshift-ci Bot commented May 15, 2026

@apahim: changing LGTM is restricted to collaborators

Details

In response to this:

/lgtm

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 kubernetes-sigs/prow repository.

@openshift-ci
Copy link
Copy Markdown

openshift-ci Bot commented May 15, 2026

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by: apahim
Once this PR has been reviewed and has the lgtm label, please assign aredenba-rh 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

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.

2 participants