Skip to content

Add create volume in Go kubectl plugin #2481

Open
@TeddyAndrieux

Description

Component:

'salt', 'kubectl-plugin'

Why this is needed:

Centralized CLI

What should be done:

MetalK8s create volume command should be part of metalk8s Go kubectl plugin

kubectl metalk8s create volume <name> --node-name <node_name> --type <type> --storage-class <storage_class>

A lot of arguments are not mandatory, check volume documentation for more detail about available arguments and default values.

Name, node-name, type, and storage-class are not mandatory if you provide a file using -f, --filename containing information about the resource.

Implementation proposal (strongly recommended):

This command will create a Kubernetes volume object with the right labels, taints, spec ... according to the CLI arguments.

It will be written in Go (check design documentation about Centralized CLI for more detail).

Follow kubectl best practice as much as possible.

Metadata

Assignees

No one assigned

    Labels

    complexity:easySomething that requires less than a day to fixkind:enhancementNew feature or requestpriority:highHigh priority issues, should be worked on ASAP (after urgent issues), not postponedtopic:kubectl-pluginKubectl plugin related issuestopic:storageIssues related to storage

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions