Skip to content

Conversation

@vbotbuildovich
Copy link
Contributor

This PR adds the latest OpenAPI spec for version v25.3.1 of the Redpanda Admin API:

npx doc-tools generate bundle-openapi --tag v25.3.1 --use-admin-major-version --surface admin --out-admin admin/admin-v2.yaml

@vbotbuildovich vbotbuildovich requested a review from a team as a code owner November 19, 2025 21:30
@coderabbitai
Copy link

coderabbitai bot commented Nov 19, 2025

📝 Walkthrough

Walkthrough

The pull request updates the OpenAPI specification file admin/admin-v2.yaml with documentation and structural changes across multiple admin service endpoints. The changes introduce required request headers (Connect-Protocol-Version and Connect-Timeout-Ms) for eleven BrokerService, ClusterService, and ShadowLinkService endpoints. Additionally, operation descriptions and summaries are revised—some are expanded with more explicit wording, while others are condensed or removed. The overall API surface and functionality remain unchanged; these are specification and documentation amendments.

Estimated code review effort

🎯 2 (Simple) | ⏱️ ~10 minutes

  • Changes follow a consistent, homogeneous pattern applied across multiple endpoints (repetitive structure reduces review complexity)
  • Single file affected (admin/admin-v2.yaml)
  • Updates are primarily documentation, header requirements, and minor formatting adjustments
  • No complex logic or control flow changes
  • Verify that all header additions (Connect-Protocol-Version and Connect-Timeout-Ms) are correctly formatted and applied to the intended endpoints
  • Confirm updated descriptions and summaries are accurate and consistent in tone across all ShadowLinkService endpoints

Possibly related PRs

  • Add Admin v2 spec file #29 — Updates the same admin/admin-v2.yaml spec file with Connect-Protocol-Version and Connect-Timeout-Ms header additions and operation documentation changes for overlapping endpoints
  • Admin API: edits for 25.3 beta #31 — Modifies the same OpenAPI operations (ListKafkaConnections, BrokerService, and multiple ShadowLinkService endpoints) in admin/admin-v2.yaml

Suggested reviewers

  • paulohtb6
  • kbatuigas

Pre-merge checks and finishing touches

✅ Passed checks (3 passed)
Check name Status Explanation
Title check ✅ Passed The title 'auto-docs: Update Admin API docs for v25.3.1' is clear, specific, and accurately summarizes the main change—updating API documentation for a specific version.
Description check ✅ Passed The description is directly related to the changeset, explaining the update to the OpenAPI spec and providing the command used to generate the changes.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.
✨ Finishing touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Post copyable unit tests in a comment
  • Commit unit tests in branch auto-docs/admin-api

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

@github-actions
Copy link

github-actions bot commented Nov 19, 2025

ℹ️ API content change detected:

No structural change, nothing to display.

Preview documentation

Powered by Bump.sh

@github-actions
Copy link

ℹ️ API content change detected:

No structural change, nothing to display.

Preview documentation

Powered by Bump.sh

@github-actions
Copy link

ℹ️ API content change detected:

No structural change, nothing to display.

Preview documentation

Powered by Bump.sh

@github-actions
Copy link

ℹ️ API content change detected:

No structural change, nothing to display.

Preview documentation

Powered by Bump.sh

@github-actions
Copy link

ℹ️ API content change detected:

No structural change, nothing to display.

Preview documentation

Powered by Bump.sh

Copy link

@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: 0

🧹 Nitpick comments (2)
admin/admin-v2.yaml (2)

2040-2073: Minor formatting inconsistency in ListKafkaConnections summary.

The description uses a line break between "cluster's Kafka" and "connections", but the summary converts this to two consecutive spaces ("Kafka connections"). While semantically equivalent, this creates a minor formatting inconsistency in the OpenAPI spec.

Given this is an auto-generated file, this may be expected YAML formatting behavior. If consistency is desired across the spec, consider normalizing multi-line summaries to use consistent spacing or hyphenation.


2294-2327: ListShadowTopics summary has line-break-to-spaces conversion like ListKafkaConnections.

Similar to the ListKafkaConnections endpoint, the description's line break ("Shadow Link and\n their status") is converted to double spaces in the summary ("Shadow Link and their status"). This is consistent with the auto-generation tool's behavior but creates a minor stylistic deviation from typical summary formatting.

📜 Review details

Configuration used: CodeRabbit UI

Review profile: CHILL

Plan: Pro

Disabled knowledge base sources:

  • Jira integration is disabled by default for public repositories

You can enable these sources in your CodeRabbit configuration.

📥 Commits

Reviewing files that changed from the base of the PR and between ef98dcb and b1ec203.

📒 Files selected for processing (1)
  • admin/admin-v2.yaml (10 hunks)
🔇 Additional comments (3)
admin/admin-v2.yaml (3)

1961-1961: Version metadata updated correctly for v25.3.1 release.

The x-generated-at and x-redpanda-core-version fields have been updated to reflect the current specification version. These are appropriate for an auto-generated spec update.

Also applies to: 1963-1963


1968-1999: BrokerService endpoints now include required Connect headers and updated documentation.

Both GetBroker and ListBrokers endpoints now include Connect-Protocol-Version (required) and Connect-Timeout-Ms header parameters, with clear operation descriptions and summaries. The documentation consistently describes what each endpoint returns.

Also applies to: 2004-2035


2076-2364: ShadowLinkService endpoints: consistent header additions; some endpoints lack descriptions.

All ShadowLinkService endpoints now include the required Connect headers. However, there is an inconsistent pattern: while GetShadowTopic and ListShadowTopics include expanded descriptions, endpoints like CreateShadowLink, DeleteShadowLink, GetShadowLink, ListShadowLinks, and UpdateShadowLink only have summaries without descriptions.

This pattern aligns with the auto-generation output, where verbose operations document their behavior while shorter operations rely on the summary alone. No functional issues are present, but this is worth noting if manual documentation review is needed.

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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants