Agentic Data Plane

rpk ai service-account diff

Dry-run of apply for service accounts. Prints, per manifest, whether apply would create, update (and which fields), or leave the resource unchanged. Exits non-zero when any change is pending, so CI can gate on no drift.

Every writable field is compared, including the ones a manifest omits: an omitted field is drift when live differs from what a create would have produced. What diff does not detect is a resource that exists live but is absent from the manifests (no prune).

Usage

rpk ai service-account diff -f <file|dir|-> [flags]

Examples

This section provides examples of how to use rpk ai service-account diff.

ci-bot.yaml

name: serviceAccounts/ci-bot
description: CI publisher
tags:
  env: prod
  team: data
rpk ai service-account diff -f ci-bot.yaml
rpk ai service-account apply -f ci-bot.yaml

Flags

Value Type Description

-f, --filename

strings

manifest file, directory, or - for stdin (repeatable).

Global flags

Value Type Description

--config

string

Redpanda or rpk config file; default search paths are ~/.config/rpk/rpk.yaml, $PWD/redpanda.yaml, and /etc/redpanda/redpanda.yaml.

-X, --config-opt

stringArray

Override rpk configuration settings; -X help for detail or -X list for terser detail.

--ignore-profile

bool

Ignore rpk.yaml and redpanda.yaml; use default settings.

--profile

string

rpk profile to use.

-v, --verbose

bool

Enable verbose logging.