From ca16d59bf4cb526102781dc9bde92294feb7915c Mon Sep 17 00:00:00 2001 From: Flegma Date: Thu, 1 Oct 2026 12:05:27 +0200 Subject: [PATCH] feature: let the api delete Kubernetes nodes of removed game server nodes The api cleanup of removed game server nodes deletes their NotReady Node entry, so the api ClusterRole needs the delete verb on nodes. --- base/api/rbac/cluster-role.yaml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/base/api/rbac/cluster-role.yaml b/base/api/rbac/cluster-role.yaml index 90b3d6f..067b555 100644 --- a/base/api/rbac/cluster-role.yaml +++ b/base/api/rbac/cluster-role.yaml @@ -3,7 +3,8 @@ kind: ClusterRole metadata: name: server-creator-clusterrole rules: - # Nodes are cluster-scoped — patch needed for game server node labeling + # Nodes are cluster-scoped: patch labels game server nodes, delete removes + # the Node of one that was removed from the panel and stayed NotReady - apiGroups: - '' resources: @@ -12,6 +13,7 @@ rules: - get - list - patch + - delete # PVs are cluster-scoped — server-creator provisions per-node game server volumes - apiGroups: - ''