openshift/additional-pull-secret-params¶
Names of params whose registry credentials are merged into the cluster pull secret
Names of params that each hold a partial pull secret. The
openshift-cluster-set-pull-secrets.sh template of the
openshift-cluster-tools task merges them into
openshift/processed-pull-secret, which is the pull secret that ends up in
the cluster (except when openshift/external-registry is set, see below).
Add-on content uses this to contribute credentials for its own registries
without touching the base pull secret.
Requirements¶
- Each entry is the full name of a param (for example
isovalent/registry-pull-secret) - Each named param must hold an object with an
authsobject, the same shape as a pull secret - A named param that is not set, or has no
authsobject, fails the task, as does a base pull secret without anauthsobject - The task reads this list with
ParamComposeExpand, so contributions from the cluster, its profiles, andglobalconcatenate instead of shadowing each other
Merge Rule¶
The merge starts from the base pull secret (openshift/pull-secret, or the
param named by openshift/pull-secret-name). For each named param, in list
order, its auths entries are added to the base. When two entries name the same
registry host, the later one wins.
Named params may be Secure and may contain templates, which are expanded before merging.
The list is read with ParamComposeExpand, which concatenates the sources from
highest to lowest precedence. For a machine, cluster or resource broker the
DRP parameter precedence order is: Machine Parameter, Machine Profiles, Stage
Parameter, Stage Profiles, Lease Parameter, Lease Profiles, Reservation
Parameter, Reservation Profiles, Subnet Parameter, Subnet Profiles, Global
Profile, then the parameter default.
Because the later entry wins, a lower-precedence source's entry wins over a
higher-precedence source's entry for the same registry host. For example, a
global entry overrides a cluster entry that names the same host.
External Registry¶
When openshift/external-registry is set, the
openshift-cluster-registry-create.sh template writes
openshift/processed-pull-secret with only the external registry's
credentials. The additional params are not applied on that path, so their
credentials do not reach the cluster. This is a known limitation.
Usage¶
The default is empty, which leaves the pull secret unchanged.
Objects that Reference openshift/additional-pull-secret-params¶
- tasks openshift-cluster-tools in Openshift as part of Templates.[4].Contents (used)
Objects used by openshift/additional-pull-secret-params¶
Not used in current content packs