Parameters

The parent key for all of the following parameters is secrets.

namespace

type

string

default

default

Fallback namespace to deploy namespaced secrets to.

opaque

type

dictionary

default

{}

Create secrets of type Opaque.

Deprecated: Use secrets parameter instead.

secrets

type

dictionary

default

{}

Create secrets of any type. Requires a valid partial secret manifest (see example below) If you omit field type from your secret definitions, the component will default to type: Opaque.

Example

The following example config will result in a Secret mySecret in namespace testing and a Secret anotherSecret in namespace prod.

secrets:
  namespace: prod
  opaque:
    testing/mySecret:
      myKey: myValue
    anotherSecret:
      anotherKey: anotherValue
  secrets:
    myNamespace/myTlsSecret:
      type: 'kubernetes.io/tls'
      stringData:
        tls.crt: |
          -----BEGIN CERTIFICATE-----
          MIIABCDEFGH.....
          -----END CERTIFICATE-----
        tls.key: |
          -----BEGIN PRIVATE KEY-----
          MIIHGFEDCBA....
          -----END PRIVATE KEY-----
    testing/myDockercfgSecret:
      type: 'kubernetes.io/dockercfg'
      stringData:
        dockercfg: ewogICJhdXRocyI6IHsKICAgICJodHRwczovL2luZGV4LmRvY2tlci5pby92MS8iOiB7CiAgICAgICJhdXRoIjogImFzbGRrZmphbGtnamFsc2tqZmFzbGtkZmoiCiAgICB9CiAgfQp9Cg==