title: 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.

  1. vela def edit NAME [flags]

Examples

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

Options

  1. -h, --help help for edit
  2. -n, --namespace string Specify which namespace to get. If empty, all namespaces will be searched.
  3. -t, --type string Specify which definition type to get. If empty, all types will be searched. Valid types: workload, scope, workflow-step, component, trait, policy

SEE ALSO

Go Back to CLI Commands Homepage.

Auto generated by spf13/cobra on 12-Jan-2022, refer to script in KubeVela.