rpk ai egress-credential diff
Dry-run of apply for egress credentials. 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 egress-credential diff.
github.yaml
name: egressCredentials/github
display_name: GitHub API
static_key:
key_secret_ref: GITHUB_TOKEN
allowed_hosts:
- api.github.com
rpk ai egress-credential diff -f github.yaml
rpk ai egress-credential apply -f github.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. |