Skip to content

Latest commit

 

History

History
44 lines (36 loc) · 1.03 KB

builds-source-input-subman-config.adoc

File metadata and controls

44 lines (36 loc) · 1.03 KB

Adding Subscription Manager configurations to builds

Builds that use the Subscription Manager to install content must provide appropriate configuration files and certificate authorities for subscribed repositories.

Prerequisites

You must have access to the Subscription Manager’s configuration and certificate authority files.

Procedure
  1. Create a ConfigMap for the Subscription Manager configuration:

    $ oc create configmap rhsm-conf --from-file /path/to/rhsm/rhsm.conf
  2. Create a ConfigMap for the certificate authority:

    $ oc create configmap rhsm-ca --from-file /path/to/rhsm/ca/redhat-uep.pem
  3. Add the Subscription Manager configuration and certificate authority to the BuildConfig:

    source:
        configMaps:
        - configMap:
            name: rhsm-conf
          destinationDir: rhsm-conf
        - configMap:
            name: rhsm-ca
          destinationDir: rhsm-ca