Skip to content

Tenant with loadbalancer quota cannot be deleted #1746

@lllamnyp

Description

@lllamnyp

Describe the bug
Tenant gets stuck on deletion if it has a quota for services.loadbalancers.

To Reproduce
Create a tenant

kubectl create -f <<EOF
apiVersion: apps.cozystack.io/v1alpha1
kind: Tenant
metadata:
  name: user
  namespace: tenant-root
spec:
  resourceQuotas:
    services.loadbalancers: "3"
EOF

After all is reconciled, delete the tenant

kubectl -n tenant-root delete tenant user

Expected behaviour
Tenant is cleanly deleted.

Actual behaviour
Helm hook (a Job) times out, tenant is never deleted.

Additional context
If the tenant is edited to remove the quota for loadbalancers, it is successfully removed.

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions