Skip to content

UUID

The UUID generator provides random UUIDs that you can feed into your applications. A UUID (Universally Unique Identifier) is a 128-bit label used for information in computer systems. The generator produces version 4 (random) UUIDs as defined in RFC 9562, in the lowercase canonical form.

Output Keys and Values

Key Description
uuid the generated UUID

Parameters

The UUID generator does not require any additional parameters.

Example Manifest

apiVersion: generators.external-secrets.io/v1alpha1
kind: UUID
metadata:
  name: my-uuid
spec: {}

Example ExternalSecret that references the UUID generator:

apiVersion: external-secrets.io/v1
kind: ExternalSecret
metadata:
  name: "uuid"
spec:
  refreshInterval: "30m0s"
  target:
    name: uuid-secret
  dataFrom:
    - sourceRef:
        generatorRef:
          apiVersion: generators.external-secrets.io/v1alpha1
          kind: UUID
          name: "my-uuid"

Which will generate a Kind=Secret with a key called 'uuid' that may look like:

21061816-abbd-40ef-8985-6db0fbcbc4c4