cub target create
cub target create
Create a new target
Synopsis
Create a new target with the specified slug and optional parameters and worker slug. Parameters are optional and can be used to pass additional configuration data to the target. Parameters are passed as a JSON string.
Example:
"{\"KubeContext\":\"kind-space17005\",\"KubeNamespace\":\"default\",\"WaitTimeout\":\"2m0s\"}"
Targets typically are created by workers, but may also be created using cub target create.
cub target create <slug> <parameters> [worker-slug] [flags]
Options
--allow-exists Allow creation of resources that already exist
--annotation strings annotations in key=value format; can separate by commas and/or use multiple instances of the flag
--delete-gate strings delete gates in key[=true] format; can separate by commas and/or use multiple instances of the flag
--filename string Read the ConfigHub entity JSON from file, URL (https://), or stdin (-); mutually exclusive with --from-stdin
--from-stdin Read the ConfigHub entity JSON (e.g., retrieved with cub <entity> get --quiet --json) from stdin; merged with command arguments on create, and merged with command arguments and existing entity on update
--from-target string target to copy from another space
--from-target-space string space of target to copy
-h, --help help for create
--jq string jq expression, suppressing default output
--json JSON output, suppressing default output
--label strings labels in key=value format; can separate by commas and/or use multiple instances of the flag
--livestate-type string The toolchain type for live state of the target's provider type.
(e.g., Kubernetes/YAML, ConfigHub/YAML)
--option strings bridge options in key=value format; can separate by commas and/or use multiple instances of the flag
--permission strings permission in format Action:UserIDOrUsername (e.g., Manage:user@example.com, can be repeated)
-p, --provider string The type of provider for the target.
Default is Kubernetes.
(e.g., Kubernetes)
--quiet No default output.
-t, --toolchain string The type of toolchain for the target.
Default is Kubernetes/YAML.
(e.g., Kubernetes/YAML, ConfigHub/YAML)
--trigger-filter string Filter slug or UUID to identify Triggers that should be invoked on Units associated with this Target (use '-' to clear)
--verbose Detailed output, additive with default output
--where-trigger string filter expression to identify Triggers that should be invoked on Units associated with this Target (use '-' to clear)
--yaml YAML output, suppressing default output
--yq string yq expression, suppressing default output
Options inherited from parent commands
--context string The context to use for this command
--debug Debug output
--space string space ID to perform command on
SEE ALSO
- cub target - Target commands