sless-primer/simple-python/outputs.tf
“Naeel” 695f217e13 feat: operator v0.1.16 — job stdout -> status.Message (feature B)
- FunctionJobReconciler: added KubeClient field (kubernetes.Interface)
- getJobPodOutput(): reads pod logs via typed client after job succeeds
- main.go: inject kubernetes.NewForConfigOrDie into FunctionJobReconciler
- rbac.yaml: add pods/pods/log get/list/watch permissions
- examples/simple-python/: job->function chain demo (Python)
- examples/simple-node/: job->function chain demo (Node.js)

sless_job.X.message now contains the return value of the function
2026-03-09 14:50:06 +04:00

15 lines
589 B
HCL

# Создано: 2026-03-09
# outputs.tf — полезные значения после terraform apply.
# URL HTTP-триггера для тестирования функции display
output "display_url" {
description = "URL HTTP-триггера функции time_display"
value = sless_trigger.display_http.url
}
# Результат джоба — JSON строка {"time": "..."} из stdout функции get_time()
output "job_result" {
description = "Stdout джоба (return value функции get_time)"
value = sless_job.run_getter.message
}