Skip to main content
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

Terminal window
# Keep the charts of spend_by_platform in a file
kater chart list --request-file spend_by_platform.json --json > spend_by_platform_charts.json
# Make a request that puts the charts in reverse order
jq '{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 order
kater chart reorder --request-file spend_by_platform_reorder.json

Arguments

ArgumentDescription
<path>Optional. In place of --request-file: the workspace, the query file or the chart file the request names.

Options

OptionDescription
--request-file <file>The query and its charts in the new order, as JSON. Give - to read it from standard input. See The request.

It also takes the global options --json, --kater-root, --scope and --help.

The request

FieldWhat it holds
sourceThe query: its name, and the full path of its workspace under namespace.
chartsEvery 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.

See also