Skip to main content
版本:v1.9

vela def edit

Edit X-Definition.

Synopsis

Edit X-Definition in kubernetes. If type and namespace are not specified, the command will automatically search all possible results. By default, this command will use the vi editor and can be altered by setting EDITOR environment variable.

vela def edit NAME [flags]

Examples

# Command below will edit the ComponentDefinition (and other definitions if exists) of webservice in kubernetes
> vela def edit webservice
# Command below will edit the TraitDefinition of ingress in vela-system namespace
> vela def edit ingress --type trait --namespace vela-system

Options

  -h, --help               help for edit
-n, --namespace string Specify which namespace the definition locates. (default "vela-system")
-t, --type string Specify which definition type to get. If empty, all types will be searched. Valid types: workflow-step, component, trait, policy, workload

Options inherited from parent commands

  -V, --verbosity Level   number for the log level verbosity
-y, --yes Assume yes for all user prompts

SEE ALSO

Go Back to CLI Commands Homepage.

Auto generated by spf13/cobra script in KubeVela.