Files
iris-context/commands/ops/kind.go
T
VERSE ebde9ba68f refactor(commands): separate commands and its core into two folders (#32)
- I think it would be better if one for commands only, one for the spec
handling core logic so people won't be confused by the core logic inside
the commands folder (cleaner I guess)
- Regen docs
2026-07-05 11:27:30 +07:00

57 lines
3.2 KiB
Go

package ops
import (
"github.com/versenilvis/iris/spec"
)
func init() {
spec.Register(&spec.Spec{
Name: "kind",
Description: "Cluster",
Subcommands: []spec.Subcommand{
{Name: "Build", Description: "Build one of [node-image]"},
{Name: "node-image", Description: "Builds a node image"},
{Name: "architecture", Description: "Architecture to build for, defaults to the host architecture"},
{Name: "base image", Description: "Name:tag of the base image to use for the build"},
{Name: "name:tag", Description: "Name:tag of the resulting image to be built"},
{Name: "path", Description: "Path to the Kubernetes source directory"},
{Name: "type", Description: "Build type, default is docker"},
{Name: "create", Description: "Creates a cluster"},
{Name: "cluster", Description: "Creates a cluster"},
{Name: "completion", Description: "Generates shell completion scripts"},
{Name: "bash", Description: "Output shell completions for bash"},
{Name: "fish", Description: "Output shell completions for fish"},
{Name: "zsh", Description: "Output shell completions for zsh"},
{Name: "delete", Description: "Deletes one or more clusters"},
{Name: "clusters", Description: "Delete Clusters"},
{Name: "export", Description: "Exports a cluster's kubeconfig"},
{Name: "kubeconfig", Description: "Exports a cluster's kubeconfig"},
{Name: "logs", Description: "Exports logs to a tempdir or [output-dir] if specified"},
{Name: "get", Description: "Gets one of [clusters, nodes, kubeconfig]"},
{Name: "nodes", Description: "Lists existing kind nodes by their name"},
{Name: "load", Description: "Loads images into node from an archive or image on host"},
{Name: "docker-image", Description: "Loads docker images from host into all or specified nodes by name"},
{Name: "image-archive", Description: "Loads docker images from archive into all or specified nodes by name"},
{Name: "version", Description: "Prints the kind CLI version"},
},
Options: []spec.Option{
{Name: "--arch", Description: "Architecture to build for, defaults to the host architecture"},
{Name: "--base-image", Description: "Base image to use for the node image"},
{Name: "--image", Description: "Name:tag of the resulting image to be built"},
{Name: "--kube-root", Description: "Path to the Kubernetes source directory"},
{Name: "--type", Description: "Type of node image to build"},
{Name: "--config", Description: "Path to a kind config file"},
{Name: "--kubeconfig", Description: "Sets kubeconfig path instead of $KUBECONFIG or $HOME/.kube/config"},
{Name: "--name", Description: "Cluster name"},
{Name: "--retain", Description: "Retain nodes for debugging when cluster creation fails"},
{Name: "--wait", Description: "Wait for control-plane node to be ready"},
{Name: "-A", Description: "Delete all clusters"},
{Name: "--internal", Description: "Use internal address instead of externalt"},
{Name: "--nodes", Description: "Comma separated list of nodes to load images into"},
{Name: "-h", Description: "Help for kind"},
{Name: "-q", Description: "Silence all stderr output"},
{Name: "-v", Description: "Info log verbosity, higher value produces more output"},
},
})
}