revert: remove Go function (runtime compilation timeout)

This commit is contained in:
Naeel
2026-04-15 16:24:57 +03:00
parent 66404fde3a
commit cccc5ca024
5 changed files with 198 additions and 72 deletions
+1 -1
View File
@@ -1,2 +1,2 @@
def main():
return "ok-auto-func-UPDATED-v2"
return "ok-auto-func-UPDATED-v3-with-comment"
-11
View File
@@ -1,11 +0,0 @@
package main
import (
"fmt"
"net/http"
)
func Handler(w http.ResponseWriter, r *http.Request) {
w.Header().Set("Content-Type", "text/plain")
fmt.Fprintf(w, "Hello from Go in Fission")
}
-39
View File
@@ -1,39 +0,0 @@
terraform {
required_providers {
fission = {
source = "nail/fission"
version = "~> 0.1.0"
}
}
}
provider "fission" {
kubeconfig_path = "/home/naeel/.kube/config"
namespace = "default"
}
resource "fission_environment" "go" {
name = "tf-go-hello-env"
image = "ghcr.io/fission/go-env"
version = 3
}
resource "fission_package" "pkg" {
name = "tf-go-hello-pkg"
environment = fission_environment.go.name
source_dir = "${path.module}/code"
}
resource "fission_function" "fn" {
name = "tf-go-hello-fn"
environment = fission_environment.go.name
package_name = fission_package.pkg.name
entrypoint = "main.Handler"
}
resource "fission_http_trigger" "route" {
name = "tf-go-hello-route"
function = fission_function.fn.name
url = "/go-hello"
methods = ["GET"]
}