feat: provider v0.1.9 — namespace removed from resources, moved to provider block

This commit is contained in:
“Naeel”
2026-03-09 15:12:07 +04:00
parent 0aaeb47b3b
commit 17d32fcb39
23 changed files with 138 additions and 141 deletions
-2
View File
@@ -20,7 +20,6 @@ data "archive_file" "notes_crud_zip" {
# CRUD функция в кластере.
# entrypoint = "notes_crud.crud" → файл notes_crud.py, функция crud().
resource "sless_function" "notes_crud" {
namespace = "default"
name = "notes"
runtime = "python3.11"
entrypoint = "notes_crud.crud"
@@ -39,7 +38,6 @@ resource "sless_function" "notes_crud" {
# Создаёт Ingress в кластере, URL доступен в outputs.tf.
# Базовый URL: https://sless-api.kube5s.ru/fn/default/notes
resource "sless_trigger" "notes_crud_http" {
namespace = "default"
name = "notes-http"
type = "http"
function = sless_function.notes_crud.name