diff --git a/docs/cli/add/componentversions/index.html b/docs/cli/add/componentversions/index.html index b64e564c..45c0df31 100644 --- a/docs/cli/add/componentversions/index.html +++ b/docs/cli/add/componentversions/index.html @@ -1,5 +1,6 @@
Pointing the configuration to an existing Docker config json:
type: generic.config.ocm.software/v1 +configurations: + - type: credentials.config.ocm.software + repositories: + - repository: + type: DockerConfig/v1 + dockerConfigFile: "~/.docker/config.json" + propagateConsumerIdentity: true +
Pointing to an existing Docker config json and configure two additional consumers +for a Github repository and a Helm chart repository. +Caching for OCM component versions is switched on. +A key pair for signing / verifiying OCM component versions has been configured, too.
type: generic.config.ocm.software/v1 +configurations: + - type: credentials.config.ocm.software + consumers: + - identity: + type: HelmChartRepository + hostname: my.repository.mycomp.com + pathprefix: artifactory/myhelm-repo + port: "443" + credentials: + - type: Credentials + properties: + username: myuser + password: 8eYwL5Ru44L6ZySyLUcyP + - identity: + type: Github + hostname: github.com + credentials: + - type: Credentials + properties: + token: ghp_QRP489abcd1234A9q3x17a8BlD42kabv65 + repositories: + - repository: + type: DockerConfig/v1 + dockerConfigFile: ~/.docker/config.json + propagateConsumerIdentity: true + - type: attributes.config.ocm.software + attributes: + cache: ~/.ocm/cache + - type: keys.config.ocm.software + privateKeys: + sap.com: + path: /Users/myuser/.ocm/keys/mycomp.com.key + publicKeys: + sap.com: + path: /Users/myuser/.ocm/keys/mycomp.com.pub +
The command line client supports configuration using a configuration file. +If existent, by default, the file $HOME/.ocmconfig will be read. +Using the option –config an alternative file can be specified.
$HOME/.ocmconfig
–config
For a detailed description of the configuration file structure and all possible attributes see
The file format is yaml. It uses the same type mechanism used for all +kinds of typed specification in the ocm area. The file must have the type of +a configuration specification. Instead, the command line client supports +a generic configuration specification able to host a list of arbitrary configuration +specifications. The type for this spec is generic.config.ocm.software/v1.
generic.config.ocm.software/v1
The following configuration types are supported:
attributes.config.ocm.software +The config type attributes.config.ocm.software can be used to define a list +of arbitrary attribute specifications:
attributes.config.ocm.software
+ type: attributes.config.ocm.software + attributes: + <name>: <yaml defining the attribute> + ... +
credentials.config.ocm.software +The config type credentials.config.ocm.software can be used to define a list +of arbitrary configuration specifications:
credentials.config.ocm.software
+ type: credentials.config.ocm.software + consumers: + - identity: + <name>: <value> + ... + credentials: + - <credential specification> + ... credential chain + repositories: + - repository: <repository specification> + credentials: + - <credential specification> + ... credential chain + aliases: + <name>: + repository: <repository specification> + credentials: + - <credential specification> + ... credential chain +
downloader.ocm.config.ocm.software +The config type downloader.ocm.config.ocm.software can be used to define a list +of pre-configured download handler registrations (see ocm ocm-downloadhandlers):
downloader.ocm.config.ocm.software
+ type: downloader.ocm.config.ocm.software + descrition: "my standard download handler configuration" + handlers: + - name: oci/artifact + artifactType: ociImage + mimeType: + config: ... + ... +
generic.config.ocm.software +The config type generic.config.ocm.software can be used to define a list +of arbitrary configuration specifications and named configuration sets:
generic.config.ocm.software
+ type: generic.config.ocm.software + configurations: + - type: <any config type> + ... + ... + sets: + standard: + description: my selectable standard config + configurations: + - type: ... + ... + ... +
Configurations are directly applied. Configuration sets are +just stored in the configuration context and can be applied +on-demand. On the CLI, this can be done using the main command option +–config-set <name>.
–config-set <name>
hasher.config.ocm.software +The config type hasher.config.ocm.software can be used to define +the default hash algorithm used to calculate digests for resources. +It supports the field hashAlgorithm, with one of the following +values:
hasher.config.ocm.software
hashAlgorithm
NO-DIGEST
SHA-256
SHA-512
keys.config.ocm.software +The config type keys.config.ocm.software can be used to define +public and private keys. A key value might be given by one of the fields:
keys.config.ocm.software
path
data
stringdata
+ type: keys.config.ocm.software + privateKeys: + <name>: + path: <file path> + ... + publicKeys: + <name>: + data: <base64 encoded key representation> + ... +
logging.config.ocm.software +The config type logging.config.ocm.software can be used to configure the logging +aspect of a dedicated context type:
logging.config.ocm.software
+ type: logging.config.ocm.software + contextType: attributes.context.ocm.software + settings: + defaultLevel: Info + rules: + - ... +
The context type attributes.context.ocm.software is the root context of a +context hierarchy.
If no context type is specified, the config will be applies to any target +acting as logging context provider, which is not a non-root context.
memory.credentials.config.ocm.software +The config type memory.credentials.config.ocm.software can be used to define a list +of arbitrary credentials stored in a memory based credentials repository:
memory.credentials.config.ocm.software
+ type: memory.credentials.config.ocm.software + repoName: default + credentials: + - credentialsName: ref + reference: # refer to a credential set stored in some other credential repository + type: Credentials # this is a repo providing just one explicit credential set + properties: + username: mandelsoft + password: specialsecret + - credentialsName: direct + credentials: # direct credential specification + username: mandelsoft2 + password: specialsecret2 +
merge.config.ocm.software +The config type merge.config.ocm.software can be used to set some +assignments for the merging of (label) values. It applies to a value +merge handler registry, either directly or via an OCM context.
merge.config.ocm.software
+ type: merge.config.ocm.software + labels: + - name: acme.org/audit/level + merge: + algorithm: acme.org/audit + config: ... + assignments: + label:acme.org/audit/level@v1: + algorithm: acme.org/audit + config: ... + ... +
oci.config.ocm.software +The config type oci.config.ocm.software can be used to define +OCI registry aliases:
oci.config.ocm.software
+ type: oci.config.ocm.software + aliases: + <name>: <OCI registry specification> + ... +
ocm.cmd.config.ocm.software +The config type ocm.cmd.config.ocm.software can be used to +configure predefined aliases for dedicated OCM repositories and +OCI registries.
ocm.cmd.config.ocm.software
+ type: ocm.cmd.config.ocm.software + ocmRepositories: + <name>: <specification of OCM repository> + ... + ociRepositories: + <name>: <specification of OCI registry> + ... +
ocm.config.ocm.software +The config type ocm.config.ocm.software can be used to set some +configurations for an OCM context;
ocm.config.ocm.software
+ type: ocm.config.ocm.software + aliases: + myrepo: + type: <any repository type> + <specification attributes> + ... + resolvers: + - repository: + type: <any repository type> + <specification attributes> + ... + prefix: ghcr.io/open-component-model/ocm + priority: 10 +
With aliases repository alias names can be mapped to a repository specification. +The alias name can be used in a string notation for an OCM repository.
Resolvers define a list of OCM repository specifications to be used to resolve +dedicated component versions. These settings are used to compose a standard +component version resolver provided for an OCM context. Optionally, a component +name prefix can be given. It limits the usage of the repository to resolve only +components with the given name prefix (always complete name segments). +An optional priority can be used to influence the lookup order. Larger value +means higher priority (default 10).
All matching entries are tried to lookup a component version in the following +order:
If resolvers are defined, it is possible to use component version names on the +command line without a repository. The names are resolved with the specified +resolution rule. +They are also used as default lookup repositories to lookup component references +for recursive operations on component versions (–lookup option).
–lookup
plugin.config.ocm.software +The config type plugin.config.ocm.software can be used to configure a +plugin.
plugin.config.ocm.software
+ type: plugin.config.ocm.software + plugin: <plugin name> + config: <arbitrary configuration structure> + disableAutoRegistration: <boolean flag to disable auto registration for handlers> +
scripts.ocm.config.ocm.software +The config type scripts.ocm.config.ocm.software can be used to define transfer scripts:
scripts.ocm.config.ocm.software
+ type: scripts.ocm.config.ocm.software + scripts: + <name>: + path: <>file path> + <other name>: + script: <>nested script as yaml> +
transport.ocm.config.ocm.software +The config type transport.ocm.config.ocm.software can be used to define transfer scripts:
transport.ocm.config.ocm.software
+ type: transport.ocm.config.ocm.software + recursive: true + overwrite: true + localResourcesByValue: false + resourcesByValue: true + sourcesByValue: false + keepGlobalAccess: false + stopOnExistingVersion: false + omitAccessTypes: + - s3 +
uploader.ocm.config.ocm.software +The config type uploader.ocm.config.ocm.software can be used to define a list +of pre-configured download handler registrations (see ocm ocm-downloadhandlers):
uploader.ocm.config.ocm.software
+ type: uploader.ocm.config.ocm.software + descrition: "my standard download handler configuration" + handlers: + - name: oci/artifact + artifactType: ociImage + mimeType: + config: ... + ... +
Pointing to an existing Docker config json:
Pointing to an existing Docker config json and configure two additional consumers, one +for a Github repository and another for a Helm chart repository. +Caching for OCM component versions is switched on. +A key pair for signing / verifiying OCM component versions has been configured, too.