# Managed replacement for the former seeded example.
# This creates services only. Create or import organizations in Tenant Management.
# Manager-owned tenant creation. This stack starts without organizations.
# Create organizations in the manager UI after deploying all four services.
apiVersion: tsg.dataspac.es/v1alpha2
kind: TsgDeployment
metadata:
  name: hosted
spec:
  namespace: tsg-hosted
  dataspace:
    name: example-dataspace
    authority:
      did: did:web:authority.example.com:tenants:authority
      domain: authority.example.com
      credentialType: ExampleCredential
  admin:
    username: platform-admin
    email: platform@example.com
    require2FA: true
    passwordSecret:
      name: hosted-admin
      key: password
  stacks:
    - id: hosted
      name: Hosted organizations
      host: hosted.example.com
      # Also supports subdomain routing: tenants.hosted.example.com is the UI.
      routing: path
      managedTenancy:
        # Choose this UUID before first deployment and preserve it afterward.
        adminUserId: 11111111-1111-4111-8111-111111111111
      components:
        controlPlane:
          enabled: true
        tenantManagement: {}
