canonical / k8s-snap

Canonical Kubernetes is an opinionated and CNCF conformant Kubernetes operated by Snaps and Charms, which come together to bring simplified operations and an enhanced security posture on any infrastructure.
GNU General Public License v3.0
20 stars 6 forks source link

Unlike the `k8s enable --help` the `k8s enable` command doesn't list features available to be enabled #523

Closed perk closed 2 days ago

perk commented 3 days ago

Summary

The k8s enable command doesn't show what features are there to be enabled.

$ sudo k8s enable 
Error: requires at least 1 arg(s), only received 0
Usage:
  k8s enable <feature> ... [flags]

Flags:
  -h, --help                   help for enable
      --output-format string   set the output format to one of plain, json or yaml (default "plain")
      --timeout duration       the max time to wait for the command to execute (default 1m30s)

What Should Happen Instead?

List of features should be there, just like for k8s enable --help:

$ sudo k8s enable --help
Enable one of network, dns, gateway, ingress, local-storage, load-balancer.

Usage:
  k8s enable <feature> ... [flags]

Flags:
  -h, --help                   help for enable
      --output-format string   set the output format to one of plain, json or yaml (default "plain")
      --timeout duration       the max time to wait for the command to execute (default 1m30s)

Reproduction Steps

Run k8s enable

System information

Ubuntu 24.04, x86-64

Can you suggest a fix?

No response

Are you interested in contributing with a fix?

No response