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).
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 |
|---|---|---|
|
strings |
manifest file, directory, or - for stdin ( |
Global flags
| Value | Type | Description |
|---|---|---|
|
string |
Redpanda or |
|
stringArray |
Override |
|
bool |
Ignore |
|
string |
|
|
bool |
Enable verbose logging. |