fluxcd-flux2/cmd
Ruslan Shaydullin 96ba98b79f Add --layer-index flag to pull artifact
The flux pull artifact command currently extracts only the first layer
of the OCI manifest, which prevents pulling arbitrary layers from OCI
artifacts not created by flux. The underlying oci.Client.Pull already
accepts a WithPullLayerIndex option but it was not exposed to the CLI.

Add a --layer-index int flag (default -1, meaning unset) wired through
to oci.WithPullLayerIndex when set. The default flow is unchanged.

Signed-off-by: Ruslan Shaydullin <shaydullin.r.d@outlook.com>
Assisted-by: claude-code/claude-opus-4-7
2026-05-11 11:39:21 +05:00
..
flux Add --layer-index flag to pull artifact 2026-05-11 11:39:21 +05:00