Skip to content
This repository has been archived by the owner on May 26, 2023. It is now read-only.

Latest commit

 

History

History
80 lines (54 loc) · 2.33 KB

component-cli_component-archive_component-references_add.md

File metadata and controls

80 lines (54 loc) · 2.33 KB

component-cli component-archive component-references add

Adds a component reference to a component descriptor

Synopsis

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}"

component-cli component-archive component-references add COMPONENT_ARCHIVE_PATH [COMPONENT_REFERENCE_PATH...] [flags]

Options

  -a, --archive string                  path to the component archive directory
      --component-name string           name of the component
      --component-name-mapping string   [OPTIONAL] repository context name mapping (default "urlPath")
      --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