Improve Validation for Kina Resource Groups on Delete #3

Open
opened 2025-04-04 17:53:36 +01:00 by cpressland · 0 comments
cpressland commented 2025-04-04 17:53:36 +01:00 (Migrated from github.com)

Currently the logic for handling the deletion of a Kina Resource Group is a simple:

if not resource_group_name.startswith("kina-"):
    raise ValueError("Only resource groups created by kina can be deleted.")

We should instead use the Azure API to determine if:

  1. The resource group exists
  2. The resource group has all of the expected tags (multi cluster, created-by, managed-by)
Currently the logic for handling the deletion of a Kina Resource Group is a simple: ```python if not resource_group_name.startswith("kina-"): raise ValueError("Only resource groups created by kina can be deleted.") ``` We should instead use the Azure API to determine if: 1. The resource group exists 2. The resource group has all of the expected tags (multi cluster, created-by, managed-by)
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
cpressland/kina#3
No description provided.