On this page
Kater CLI Present and share chart
kater chart duplicate
Copies a saved chart under a new name, over the same query.
The copy comes after the query’s last chart. Without a name, the copy is unnamed_chart_1, or the next free number.
Examples
# Keep the spend_mix chart in a filekater chart read --request-file spend_mix.json --json > spend_mix_read.json# Make a request that copies it as spend_mix_donutjq '{chart: .definition.spec.relation, expected_revision: .definition.revision, name: "spend_mix_donut"}' spend_mix_read.json > spend_mix_duplicate.json# Copy the chartkater chart duplicate --request-file spend_mix_duplicate.jsonArguments
Options
It also takes the global options --json, --kater-root, --scope and --help.
The request
| Field | What it holds |
|---|---|
chart | The chart to copy: its name, and the full path of its workspace under namespace. |
expected_revision | The chart’s revision from kater chart read. |
name | Optional. The copy’s name, such as spend_mix_donut. |