From 392eec6779c61eedbb65fae824a844c38ab110bf Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E2=80=9CNaeel=E2=80=9D?= Date: Mon, 9 Mar 2026 19:23:28 +0400 Subject: [PATCH] =?UTF-8?q?fix:=20destroy=20route=20cleanup=20bug=20?= =?UTF-8?q?=E2=80=94=20delete=20Service+Ingress=20on=20trigger/function=20?= =?UTF-8?q?deletion?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - controllers/trigger_controller.go: handleTriggerDeletion теперь удаляет Service и Ingress из sless-fn-{ns} при удалении HTTP-триггера - controllers/function_controller.go: handleDeletion теперь удаляет Service и Ingress (имена совпадают с fn.Name); добавлен импорт netv1 - terraform/provider trigger_resource.go: Delete ждёт пока GetTrigger вернёт 404 (до 90с) — провайдер не возвращает успех раньше чем cleanup завершён - examples: версия провайдера обновлена до ~> 0.1.11 Operator: naeel/sless-operator:v0.1.17 Provider: v0.1.11 Fixes DESTROY_ROUTE_CLEANUP_BUG.md --- hello-node/main.tf | 2 +- notes-python/main.tf | 2 +- simple-node/main.tf | 2 +- simple-python/main.tf | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/hello-node/main.tf b/hello-node/main.tf index cfb00b4..15b7bb1 100644 --- a/hello-node/main.tf +++ b/hello-node/main.tf @@ -8,7 +8,7 @@ terraform { required_providers { sless = { source = "terra.k8c.ru/naeel/sless" - version = "~> 0.1.10" + version = "~> 0.1.11" } } } diff --git a/notes-python/main.tf b/notes-python/main.tf index 505e104..f8b28a2 100644 --- a/notes-python/main.tf +++ b/notes-python/main.tf @@ -14,7 +14,7 @@ terraform { # Провайдер для управления serverless функциями через sless API sless = { source = "terra.k8c.ru/naeel/sless" - version = "~> 0.1.10" + version = "~> 0.1.11" } } } diff --git a/simple-node/main.tf b/simple-node/main.tf index 9cb2843..a4cda22 100644 --- a/simple-node/main.tf +++ b/simple-node/main.tf @@ -19,7 +19,7 @@ terraform { required_providers { sless = { source = "terra.k8c.ru/naeel/sless" - version = "~> 0.1.10" + version = "~> 0.1.11" } } } diff --git a/simple-python/main.tf b/simple-python/main.tf index 5032776..75a1e6a 100644 --- a/simple-python/main.tf +++ b/simple-python/main.tf @@ -18,7 +18,7 @@ terraform { required_providers { sless = { source = "terra.k8c.ru/naeel/sless" - version = "~> 0.1.10" + version = "~> 0.1.11" } } }