rpk ai sandbox-template diff
Dry-run of apply for sandbox templates. 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 sandbox-template diff.
python.yaml
name: sandboxTemplates/python
display_name: Python
idle_timeout: 1800s
image: docker.io/library/python@sha256:<digest>
resources:
cpu_millicores: 500
memory_bytes: 536870912
rpk ai sandbox-template diff -f python.yaml
rpk ai sandbox-template apply -f python.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. |