Tenant delete: clean up tenant-deployed app containers #55
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Follow-up from #45
When a vendor deletes a tenant,
DockerTenantProvisioner.remove()only removes the server + UI containers and the tenant network. App containers deployed by the tenant's server (viaDeploymentExecutor) are orphaned.Current state:
{envSlug}-{appSlug}-{replicaIndex}managed-by=cameleer3-server(no tenant identifier)cameleer-tenant-{slug}networkChanges needed:
cameleer3-server: Add a
cameleer-tenantlabel with the tenant slug to all deployed app containers (DeploymentExecutor). The tenant slug is derivable fromCAMELEER_DOCKER_NETWORKenv var (cameleer-tenant-{slug}) or should be passed as a dedicated env var (e.g.CAMELEER_TENANT_SLUG).cameleer-saas: In
DockerTenantProvisioner.remove(), before removing server/UI containers and network:cameleer-tenant={slug}cameleer-env-{tenantId}-*)cameleer-jars-{slug})Acceptance Criteria: