Skip to content

Latest commit

 

History

History
79 lines (53 loc) · 2.22 KB

File metadata and controls

79 lines (53 loc) · 2.22 KB

components-cli component-archive component-references add

Adds a component reference to a component descriptor

Synopsis

add adds component references to the defined component descriptor. The component references can be defined in a file or given through stdin.

The component references are expected to be a multidoc yaml of the following form

---
name: 'ubuntu'
componentName: 'github.com/gardener/ubuntu'
version: 'v0.0.1'
...
---
name: 'myref'
componentName: 'github.com/gardener/other'
version: 'v0.0.2'
...

Templating: All yaml/json defined resources can be templated using simple envsubst syntax. Variables are specified after a "--" and follow the syntax "=".

Note: Variable names are case-sensitive.

Example:

 [args] [--flags] -- MY_VAL=test
key:
  subkey: "abc ${MY_VAL}"

components-cli component-archive component-references add [component descriptor path] [component-reference path]... [flags]

Options

  -a, --archive string             path to the component archive directory
      --component-name string      name of the component
      --component-version string   version of the component
  -h, --help                       help for add
      --repo-ctx string            [OPTIONAL] repository context url for component to upload. The repository url will be automatically added to the repository contexts.
  -r, --resource string            The path to the resources defined as yaml or json

Options inherited from parent commands

      --cli                  logger runs as cli logger. enables cli logging
      --dev                  enable development logging which result in console encoding, enabled stacktrace and enabled caller
      --disable-caller       disable the caller of logs (default true)
      --disable-stacktrace   disable the stacktrace of error logs (default true)
      --disable-timestamp    disable timestamp output (default true)
  -v, --verbosity int        number for the log level verbosity (default 1)

SEE ALSO