-
Notifications
You must be signed in to change notification settings - Fork 2
Open
Labels
bugSomething isn't workingSomething isn't working
Description
Summary
When attempting to delete a domain that is associated with a DNS zone, the API consistently returns a success response, but the domain remains visible in the listing. Additionally, the domain record does not contain a deletionTimestamp, indicating that the deletion process did not actually occur.
If the domain cannot be deleted (e.g., due to DNS zone constraints or other validation rules), the API should return an error, not a success status.
Expected Behavior
When deleting a domain:
- If deletion is valid → domain should be marked with deletionTimestamp or removed from API listing.
- If deletion is NOT allowed → API should return a proper 4xx error, including a clear error message.
Actual Behavior
- API returns a 200 OK / success response.
- Domain still appears in the listing.
- Domain has no deletionTimestamp assigned.
- No error is surfaced to explain why deletion did not occur.
API Req/Res
curl -X DELETE -H "Accept:application/json, text/plain, */*" -H "Content-Type:application/json" -H "Authorization:{ACCESS_TOKEN}" "https://api.staging.env.datum.net/apis/resourcemanager.miloapis.com/v1alpha1/projects/{PROJECT_ID}/control-plane//apis/networking.datumapis.com/v1alpha/namespaces/default/domains/{DOMAIN_ID]"
{
"kind": "Status",
"apiVersion": "v1",
"metadata": {},
"status": "Success",
"details": {
"name": "hiyahya.dev",
"group": "networking.datumapis.com",
"kind": "domains",
"uid": "aedadcd9-f190-4e86-8034-c9a3b5exxxxx"
}
}
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working