deployment {

    environment otcTenantProd 'Prod - builth.ing' {

        cluster otcTenantEdpBuildthing 'edp.builth.ing' {
            icon tech:git
            description 'Primary Instance'

        }

        cluster otcTenantObservability 'observability.builth.ing' {
            icon tech:git
            description 'Observability Instance'
        }

        cluster otcTenantCustomerA 'customer-a.builth.ing' {
            icon tech:git
            description 'Customer Instance'
        }
    }

    environment otcTenantNonProd 'Non-Prod - t09.de' {

        cluster otcTenantDev1 'dev1.t09.de' {
            icon tech:git
            description 'Development Instance'
        }

        cluster otcTenantTestX 'test-x.t09.de' {
            icon tech:git
            description 'Testing Instance'
        }

    }

    otcTenantEdpBuildthing -> otcTenantObservability 'deploys'
    otcTenantEdpBuildthing -> otcTenantCustomerA 'deploys'
    otcTenantEdpBuildthing -> otcTenantDev1 'deploys'
    otcTenantEdpBuildthing -> otcTenantTestX 'deploys'
}

views {
  deployment view otcTenants {
    title 'OTC tenants'

    include
      otcTenantProd,
      otcTenantNonProd,
      otcTenantEdpBuildthing,
      otcTenantObservability,
      otcTenantCustomerA,
      otcTenantDev1,
      otcTenantTestX,
  }
}


