Skip to content

docs: add Use the ADP CLI section with GitOps how-to#112

Draft
birdayz wants to merge 1 commit into
redpanda-data:mainfrom
birdayz:jb/adp-docs-cli-gitops
Draft

docs: add Use the ADP CLI section with GitOps how-to#112
birdayz wants to merge 1 commit into
redpanda-data:mainfrom
birdayz:jb/adp-docs-cli-gitops

Conversation

@birdayz

@birdayz birdayz commented Jun 26, 2026

Copy link
Copy Markdown
Contributor

What

Add a new top-level Use the ADP CLI section (beta) with two pages, and wire them into the nav:

  • Use the ADP CLI (modules/cli/pages/index.adoc) — what rpk ai is, how to install it, how to connect it, the resource command surface, and output formats.
  • Manage Resources with GitOps (modules/cli/pages/gitops.adoc) — the rpk ai <resource> apply/diff workflow.

Why

The rpk ai CLI can manage every ADP resource declaratively from YAML manifests, but the docs only shipped the autogenerated command reference. Operators automating ADP in Git and CI had no guide for the apply/diff workflow, its reconcile semantics, or drift gating. GitOps is a first-class CLI workflow and belongs in a guide section distinct from the command reference, the same split Kubernetes, Confluent, and Databricks use.

Implementation details

New module modules/cli, both pages marked :page-beta: because the ADP CLI and GitOps are beta.

  • The overview page covers install (rpk ai install) and connect (reuses the rpk cloud login token and the active profile, with --rpai-endpoint for one-off overrides). It links to the existing gateway:connect-agent.adoc setup walkthrough rather than forking the install steps, so there is one source of truth.
  • The GitOps page documents the reconcile semantics straight from the engine: presence-based update mask (omitted fields untouched), lists, maps, and oneof variants replace wholesale, create-only fields are immutable, secrets stay by reference, no prune, and diff exits non-zero on drift for CI gating. It covers llm, mcp, oauth, oauth-client, and agent, with an exported manifest example, a worked apply/diff cycle, the declarative omitted-means-zero caveat, and troubleshooting.
  • The example manifest and all console output were verified against the CLI binary and the reconcile engine; the YAML dump reproduces the CLI's exact serialization.
  • nav.adoc: the section sits between Routing & LLM Settings and Reference.

References

  • rpk ai command reference: reference:rpk/rpk-ai/rpk-ai.adoc
  • CLI setup walkthrough this builds on: gateway:connect-agent.adoc

The rpk ai CLI can manage every ADP resource declaratively from YAML
manifests, but the docs only shipped the autogenerated command
reference. Operators automating ADP in Git and CI had no guide for the
apply/diff workflow, its reconcile semantics, or drift gating.

Add a top-level "Use the ADP CLI" section (beta) with two pages:

- index.adoc: what rpk ai is, install, connect (reuses rpk cloud login
  and the active profile), the resource command surface, and output
  formats. Links to the existing connect-agent setup walkthrough rather
  than duplicating it.
- gitops.adoc: export with get -o yaml, preview with diff, reconcile
  with apply, directory/stdin/multi-document inputs, CI drift gating,
  the declarative omitted-means-zero caveat, and troubleshooting. Covers
  llm, mcp, oauth, oauth-client, and agent.

Wire both into the nav between Routing & LLM Settings and Reference.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@netlify

netlify Bot commented Jun 26, 2026

Copy link
Copy Markdown

👷 Deploy request for redpanda-agentic-data-plane pending review.

Visit the deploys page to approve it

Name Link
🔨 Latest commit a887371

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