Skip to content

volume create command is not passing the labels properly #52

@msilambu

Description

@msilambu

When a volume is created with --labels argument, its values are not passed to CreateVolume() API in containerz/client/create_volume.go file.

The "--labels" persistent flag defined in containerz/cmd/volume_create.go file re-uses the '&options' variable but CreateVolume() API reads the label values from 'labels' variable that is empty. This causes the containerz app always to carry empty labels in CreateVolumeRequest message.

The persistent flag variable needs to be fixed. Also, the local variable 'labels' in containerz/client/create_volume.go file (line 41) could be renamed (like 'lbls') to avoid confusion with 'labels' variable.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions