Skip to content

Conversation

@kbatuigas
Copy link
Contributor

@kbatuigas kbatuigas commented Oct 9, 2025

The generated Admin v2 spec does not include a servers object. The protoc plugin also uses the short service names (e.g. "BrokerService") for tags, and we need to keep it end-user-friendly and consistent with our other API docs.

This PR adds two new overlays

  • add a servers object (same Admin API port as v1, but the v2 calls will use the v2 paths)
  • add the "user-friendly" list of tags and update the existing endpoints with these user-facing tags

The PR also reorganizes the overlays for Admin API in versioned directories for v1 and v2, so we can easily reference the matching overlays in our GH automation.

DEPLOY PREVIEW

@kbatuigas kbatuigas requested a review from a team as a code owner October 9, 2025 16:24
@coderabbitai
Copy link

coderabbitai bot commented Oct 9, 2025

Important

Review skipped

Auto incremental reviews are disabled on this repository.

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.

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

📝 Walkthrough

Walkthrough

Introduces two Admin API v2 overlay YAML files. One overlay (add-servers-object.yaml) adds a servers array at the spec root with a single http://localhost:9644 server. The other overlay (create-and-update-tags.yaml) adds a root-level tags list defining “Brokers” and “Shadow Links,” and updates existing endpoint tag references from “BrokerService” to “Brokers” and from “ShadowLinkService” to “Shadow Links.” No exported/public code entities are modified.

Estimated code review effort

🎯 2 (Simple) | ⏱️ ~10 minutes

Suggested reviewers

  • micheleRP

Pre-merge checks and finishing touches

❌ Failed checks (1 warning)
Check name Status Explanation Resolution
Out of Scope Changes Check ⚠️ Warning In addition to the tag-cleanup overlay required by DOC-1746, this pull request introduces a servers object overlay and reorganizes the overlay directory structure, which are unrelated to the linked issue’s tag-focused objectives. Consider splitting the servers object addition and directory reorganization into a separate pull request or clearly linking them to their respective issues to avoid mixing concerns.
✅ Passed checks (4 passed)
Check name Status Explanation
Title Check ✅ Passed The title clearly summarizes the primary changes by stating that both servers and tags objects are being added via overlays, which aligns with the modifications introduced in the pull request.
Linked Issues Check ✅ Passed The overlay for tags updates the root tags list to include “Brokers” and “Shadow Links” and replaces all occurrences of “BrokerService” and “ShadowLinkService” with these user-friendly names, fully addressing the requirements of DOC-1746.
Docstring Coverage ✅ Passed No functions found in the changes. Docstring coverage check skipped.
Description Check ✅ Passed The description clearly explains that the Admin v2 spec lacked a servers object and used non-user-friendly tags, and it outlines the specific overlays being added and the directory reorganization, directly reflecting the changes in the diff. It ties to both file-level summaries and PR objectives, providing relevant context for reviewers.

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

@kbatuigas kbatuigas requested a review from JakeSCahill October 9, 2025 16:25
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 (1)
admin/v2-overlays/create-and-update-tags.yaml (1)

25-26: Trim trailing blank lines for YAMLlint.

YAMLlint flags the extra blank lines at the end of the file. Please remove them to satisfy the linter.

- 
-
📜 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 58634be and f713c92.

📒 Files selected for processing (2)
  • admin/v2-overlays/add-servers-object.yaml (1 hunks)
  • admin/v2-overlays/create-and-update-tags.yaml (1 hunks)
🧰 Additional context used
🪛 YAMLlint (1.37.1)
admin/v2-overlays/create-and-update-tags.yaml

[warning] 26-26: too many blank lines (2 > 0)

(empty-lines)

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 (1)
admin/v2-overlays/add-servers-object.yaml (1)

4-6: Normalize overlay version formatting

info.version is set to v1, while the accompanying overlays use semantic versions (for example, 1.0.0). Consider adopting the same semver style here to keep the overlay metadata consistent across the admin docs.

📜 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 58634be and 83f9233.

📒 Files selected for processing (2)
  • admin/v2-overlays/add-servers-object.yaml (1 hunks)
  • admin/v2-overlays/create-and-update-tags.yaml (1 hunks)

Kat Batuigas added 4 commits October 9, 2025 15:50
We can keep minor, non-breaking changes to overlay functionality without making it seem like a major version change
@kbatuigas kbatuigas force-pushed the DOC-1746-admin-tags-and-test-doc-tools branch from ac54bef to 7d120e5 Compare October 9, 2025 22:50
version: 1.0.0

actions:
# Add tags object to the root level
Copy link

@Feediver1 Feediver1 Oct 13, 2025

Choose a reason for hiding this comment

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

Suggested change
# Add tags object to the root level
# Add the tags object at the root level

- name: Brokers
description: See details about brokers in a Redpanda cluster, including client connections.
- name: Shadow Links
description: Manage shadow links for migration and disaster recovery.

Choose a reason for hiding this comment

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

Suggested change
description: Manage shadow links for migration and disaster recovery.
description: Manage shadow links for disaster recovery and migration.

Choose a reason for hiding this comment

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

primary reason for the feature is disaster recovery, so thinking that should come first.

Copy link

@Feediver1 Feediver1 left a comment

Choose a reason for hiding this comment

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

lgtm

@kbatuigas kbatuigas merged commit 7309c88 into main Oct 14, 2025
8 checks passed
@kbatuigas kbatuigas deleted the DOC-1746-admin-tags-and-test-doc-tools branch October 14, 2025 16:31
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.

4 participants