Skip to main content
版本:v1.1

vela def edit`

Edit definition

Synopsis

Edit 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 to get. If empty, all namespaces will be searched.
-t, --type string Specify which definition type to get. If empty, all types will be searched. Valid types: scope, workflow-step, component, trait, policy, workload

Options inherited from parent commands

  -e, --env string   specify environment name for application

SEE ALSO

Auto generated by spf13/cobra on 19-Aug-2021