feat: provider v0.1.9 — namespace removed from resources, moved to provider block
This commit is contained in:
@@ -6,7 +6,7 @@ terraform {
|
||||
required_providers {
|
||||
sless = {
|
||||
source = "terra.k8c.ru/naeel/sless"
|
||||
version = "~> 0.1.7"
|
||||
version = "~> 0.1.9"
|
||||
}
|
||||
archive = {
|
||||
source = "hashicorp/archive"
|
||||
@@ -16,6 +16,7 @@ terraform {
|
||||
}
|
||||
|
||||
provider "sless" {
|
||||
endpoint = "https://sless-api.kube5s.ru"
|
||||
token = "dev-token-change-me"
|
||||
endpoint = "https://sless-api.kube5s.ru"
|
||||
token = "dev-token-change-me"
|
||||
namespace = "default"
|
||||
}
|
||||
|
||||
@@ -13,7 +13,6 @@ data "archive_file" "handler_pg_query" {
|
||||
}
|
||||
|
||||
resource "sless_function" "pg_query" {
|
||||
namespace = "default"
|
||||
name = "pg-query"
|
||||
runtime = "python3.11"
|
||||
entrypoint = "handler.handle"
|
||||
@@ -31,7 +30,6 @@ resource "sless_function" "pg_query" {
|
||||
}
|
||||
|
||||
resource "sless_trigger" "pg_query_http" {
|
||||
namespace = "default"
|
||||
name = "pg-query-http"
|
||||
type = "http"
|
||||
function = sless_function.pg_query.name
|
||||
|
||||
Reference in New Issue
Block a user