On this page
Kater CLI Present and share chart
kater chart reorder
Changes the order of the charts that read one query.
List every chart of the query one time, in the new order, each with its revision. The answer lists the charts in their new order.
Examples
# Keep the charts of spend_by_platform in a filekater chart list --request-file spend_by_platform.json --json > spend_by_platform_charts.json# Make a request that puts the charts in reverse orderjq '{source: .charts[0].spec.source, charts: [.charts | reverse | .[] | {chart: .spec.relation, expected_revision: .revision}]}' spend_by_platform_charts.json > spend_by_platform_reorder.json# Save the new orderkater chart reorder --request-file spend_by_platform_reorder.jsonArguments
Options
It also takes the global options --json, --kater-root, --scope and --help.
The request
| Field | What it holds |
|---|---|
source | The query: its name, and the full path of its workspace under namespace. |
charts | Every chart of the query, one time each, in the new order. Each holds the chart, by its name and workspace, and its expected_revision from kater chart list. |