version: 1
kind: unidesk-secret-distribution

metadata:
  id: web-probe-external-form-fixture-secrets
  owner: unidesk
  relatedIssues:
    - 2501

sources:
  root: .state/web-probe-external-form-fixture
  files:
    - sourceRef: fixture.env
      type: env
      requiredKeys:
        - APPLICANT_NAME
        - APPLICANT_EMAIL
      createIfMissing:
        enabled: false
  externalFiles: []

targets:
  - id: external-form-fixture
    route: NC01:k3s
    namespace: fixture
    scope: web-probe-fixture
    enabled: false

kubernetesSecrets:
  - name: fixture-external-form
    targetId: external-form-fixture
    secretName: fixture-external-form
    type: Opaque
    data:
      - sourceRef: fixture.env
        sourceKey: APPLICANT_NAME
        targetKey: applicantName
      - sourceRef: fixture.env
        sourceKey: APPLICANT_EMAIL
        targetKey: applicantEmail
