Open theunrepentantgeek opened 4 months ago
Decision: Block direct deletion, returning an error for the condition indicating that direct deletion can't be done, must delete the parent. This avoids noisy error messages in the logs.
Two ways to approach - one is to block async, which makes delete a one-way operation. The other is to modify the webhook, which may have issues with cascading deletes from the parent.
Removed high priority from this given we haven't had many user complaints
Planning to move this to 2.10.0, but think we should get this fixed there as it's definitely awkward.
Version of Azure Service Operator
v2.7.0 (and earlier)
Describe the bug
Discovered while testing API version 2023-11-15 of
documentdb
- the typeSqlDatabaseContainerThroughputSetting
may not be deleted directly via ARM.ASO knows this already, as we generate the correct list of supported operations in
sql_database_container_throughput_setting_types_gen.go
:However, we don't respect that when running, resulting in noisy errors:
Expected behavior
We should respect the available verbs for the resource, and skip deletion from Azure where it's not possible, even though this may produce results surprising for some users.