Skip to content

Latest commit

 

History

History
31 lines (26 loc) · 824 Bytes

builds-strategy-custom-secrets.adoc

File metadata and controls

31 lines (26 loc) · 824 Bytes

Using secrets in custom builds

In addition to secrets for source and images that can be added to all build types, custom strategies allow adding an arbitrary list of secrets to the builder pod.

Procedure

To mount each secret at a specific location:

strategy:
  customStrategy:
    secrets:
      - secretSource: (1)
          name: "secret1"
        mountPath: "/tmp/secret1" (2)
      - secretSource:
          name: "secret2"
        mountPath: "/tmp/secret2"
  1. secretSource is a reference to a secret in the same namespace as the build.

  2. mountPath is the path inside the custom builder where the secret should be mounted.