Files
iris-context/commands/sys/cdk8s.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

35 lines
1.6 KiB
Go

package sys
import (
"github.com/versenilvis/iris/spec"
)
func init() {
spec.Register(&spec.Spec{
Name: "cdk8s",
Description: "CDK for K8s",
Subcommands: []spec.Subcommand{
{Name: "init", Description: "Create a new, empty CDK8S project"},
{Name: "type", Description: "Select language you are using"},
{Name: "import", Description: "Import a CRD schema to generate generate resources"},
{Name: "spec", Description: "Path to the CRD schema"},
{Name: "synth", Description: "Synthesizes Kubernetes manifests for all charts in your app"},
},
Options: []spec.Option{
{Name: "--language", Description: "Output programming language"},
{Name: "--class-prefix", Description: "A prefix to add to all generated class names"},
{Name: "--no-class-prefix", Description: "Does not add a prefix to generated class names"},
{Name: "--exclude", Description: "Do not import types that match these regular expressions"},
{Name: "--output", Description: "Output directory"},
{Name: "--app", Description: "Command to use in order to execute cdk8s app"},
{Name: "--stdout", Description: "Write synthesized manifests to STDOUT instead of the output directory"},
{Name: "--plugins-dir", Description: "Directory to store cdk8s plugins"},
{Name: "--validate", Description: "Apply validation plugins on the resulting manifests"},
{Name: "--no-validate", Description: "Disable validation"},
{Name: "--version", Description: "The current version"},
{Name: "--help", Description: "Show help"},
{Name: "--check-upgrade", Description: "Check for cdk8s-cli upgrade"},
},
})
}