コード例 #1
0
ファイル: reconcile.py プロジェクト: k8spin/k8spin-operator
def reconciler(name, **kwargs):  # pylint: disable=W0613
    organization.ensure_organization_resources(organization_name=name)
    # pylint: disable=E1120
    org = organization.get_organization(name)
    org_tenants = org.tenants
    for org_tenant in org_tenants:
        tenant.ensure_tenant_resources(
            organization=org, tenant_name=org_tenant.name)
        tenant_spaces = org_tenant.spaces
        for tenant_space in tenant_spaces:
            space.ensure_space_resources(
                organization=org, tenant=org_tenant, space_name=tenant_space.name)
コード例 #2
0
def create_organization(name, **kwargs):  # pylint: disable=W0613
    organization.ensure_organization_resources(organization_name=name)
コード例 #3
0
def create_organization(name, **kwargs):
    organization.ensure_organization_resources(organization_name=name)