feat: provider v0.1.9 — namespace removed from resources, moved to provider block
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user