Naeel
4ca5a7bdfd
feat: sless_service CRD + ServiceReconciler, RBAC fix, split postgres/functions.tf, operator v0.1.41
2026-03-20 13:03:12 +03:00
Naeel
a3ea35d5d8
feat: Go runtime v0.1.1 (pgx/v5), stress-go-pgstorm, fix invoke.go dynamic timeout, nginx ingress timeout 900s
...
- runtimes/go1.23: добавлен pgx/v5 v5.7.2 в go.mod, сгенерирован go.sum
- runtimes/go1.23/Dockerfile: один stage golang:1.23-alpine, go mod download кеширует зависимости
- internal/builder/context.go: тег Go runtime v0.1.0 → v0.1.1
- internal/api/handler/invoke.go: таймаут прокси-клиента теперь динамический из Function.Spec.TimeoutSec + 5s буфер (был хардкод 30s)
- examples/POSTGRES/code/stress-go-pgstorm/handler.go: новая функция, 100 горутин, pgxpool, INSERT/COUNT/MAX, параметры: workers/duration_sec/max_delay_ms
- examples/POSTGRES/resources.tf: добавлены sless_function.stress_go_pgstorm + trigger, timeout_sec=700
- deployments/k8s/operator.yaml: nginx ingress proxy-read-timeout=900s, proxy-send-timeout=900s
- examples/*/main.tf: исправлен URL deck-api-test.ngcloud.ru → deck-test.ngcloud.ru (все 9 файлов)
- Оператор: v0.1.39 (pgx/v5) → v0.1.40 (dynamic timeout)
2026-03-19 21:33:41 +03:00
Naeel
46fdf99214
test: 8 стресс-функций (py/go/js), crash-тесты, stress_test.sh — 32 строки в PG
2026-03-19 19:44:26 +03:00
Naeel
c228462133
test: полный прогон POSTGRES example — changes, delete/recreate, new function
2026-03-19 18:45:18 +03:00
Naeel
f962b9806f
fix: invoke.go — forward Content-Length to proxied request (form POST fix)
...
Without ContentLength, Python BaseHTTPRequestHandler read 0 bytes from body.
operator v0.1.37, python runtime v0.1.4, pg-table-writer HTML form
2026-03-19 08:58:35 +03:00
Naeel
63e2a2b634
fix+docs: FunctionJob label bugfix, job ErrAlreadyExists, python str→text/plain, operator.yaml v0.1.33, progress.md
...
- controllers/functionjob_controller.go:
- PodTemplate labels: functionjob=, function= (k8s 1.27+ удалил job-name=)
- getJobPodOutput принимает labelSelector вместо jobName
- захват stderr при Failed job; truncateForStatus() helper
- terraform/provider/internal/client/client.go: ErrJobAlreadyExists (409 Conflict)
- terraform/provider/internal/resources/job_resource.go: при конфликте создания — читаем существующий job
- runtimes/python3.11/server.py: str return → text/plain
- internal/builder/context.go: python runtime base image → v0.1.3
- deployments/k8s/operator.yaml: image → v0.1.33
- doc/progress.md: добавлены секции FunctionJob bugfix, str→text/plain, web-console v0.2.0
2026-03-18 17:41:44 +03:00
Naeel
1960ac33cb
feat: funcs as global Go service (sless-funcs-service:v0.1.1)
...
- services/funcs/main.go: standalone Go HTTP server
extracts JWT sub -> SHA256[:8] -> namespace -> calls operator API
returns plain text list, sorted active first, /health probe endpoint
- services/funcs/Dockerfile: multi-stage Go build -> alpine
- deployments/k8s/funcs-service.yaml: Deployment+Service+Ingress in sless ns
ingress path /funcs -> sless-funcs-service:8090, reuses sless-operator-tls
- examples/POSTGRES/resources.tf: removed funcs_list function+trigger+output
Image: naeel/sless-funcs-service:v0.1.1
2026-03-18 15:58:08 +03:00
Naeel
ec61c2764f
feat: NodeJS pg-info function; funcs endpoint: filter + created_at/last_built_at; operator v0.1.32
2026-03-18 11:03:58 +03:00
Naeel
84a54671ee
feat: add funcs endpoint — list all functions with triggers for UI
2026-03-18 10:05:15 +03:00
Naeel
87d2422e8b
feat: POSTGRES example — add pg-table-reader HTTP function
2026-03-18 09:23:13 +03:00
Naeel
cd5695d0cc
fix: migrate sless endpoint from sless-api.kube5s.ru to sless.kube5s.ru (new cluster ingress 185.247.187.147)
2026-03-18 08:48:50 +03:00
Naeel
9bfed0dc77
fix: remove all prod endpoint references from examples (test stand only)
2026-03-18 08:08:20 +03:00
Naeel
00e4be5e28
docs: E2E results 2026-03-17 — all 4 examples PASS on test stand
2026-03-18 06:27:57 +03:00
“Naeel”
5ed8d76376
0
2026-03-15 09:38:27 +04:00
Naeel
e222dacbe4
feat: demo managed functions with harbor-backed operator setup
2026-03-14 18:16:53 +03:00
Naeel
2516ed61a2
chore: ignore *.tfvars in examples, remove ai_hint_level from pg-list-python
2026-03-12 09:21:20 +03:00
Naeel
29be4b7b5e
chore: provider v0.1.18, update examples (harbor branch)
2026-03-12 09:19:17 +03:00
“Naeel”
1889b18274
chore: terraform.tfvars.change — инструкция по переименованию
2026-03-11 18:38:51 +04:00
“Naeel”
23cca9bda3
chore: добавлены terraform.tfvars.change — шаблоны для токена (переименовать в terraform.tfvars)
2026-03-11 18:38:07 +04:00
“Naeel”
9201f5a72c
fix: ModifyPlan — terraform plan теперь видит изменения в source_dir (provider v0.1.16)
2026-03-11 18:27:46 +04:00
“Naeel”
05c9bfb1eb
security: убраны реальные токены из terraform.tfvars + инструкция в README
2026-03-11 17:41:34 +04:00
“Naeel”
b74ff361e4
docs: README для примера pg-list-python
2026-03-11 17:24:34 +04:00
“Naeel”
5e97f089b4
fix: восстановлен requirements.txt после теста
2026-03-11 16:54:53 +04:00
“Naeel”
7759a81501
test: невалидный requirements.txt
2026-03-11 16:53:01 +04:00
“Naeel”
a78abfc542
docs: переработан examples/README.md + комментарии function.tf
2026-03-11 16:48:01 +04:00
“Naeel”
d466e9ce98
fix: Decimal→float для JSON сериализации price
2026-03-11 16:39:56 +04:00
“Naeel”
f773fd4a5f
feat: пример pg-list-python — список из PostgreSQL без джоба
2026-03-11 16:37:22 +04:00
“Naeel”
da6fb42e69
chore: удалён отладочный push-sample (Harbor интеграция закончена)
2026-03-11 16:33:26 +04:00
“Naeel”
3c452d17f7
fix: go1.23 build context — COPY . /app/handler/ вместо COPY handler/
2026-03-11 16:14:42 +04:00
“Naeel”
b8da6b07ab
refactor: rename handler.go→greeting.go, buildGreeting() in hello-go example
2026-03-11 16:02:49 +04:00
“Naeel”
a576c19499
feat: go1.23 runtime support
...
- runtimes/go1.23/server.go: HTTP-wrapper + job-runner (SLESS_MODE=job)
- runtimes/go1.23/go.mod: module sless/fn (изолирует от корневого go.mod)
- runtimes/go1.23/Dockerfile: multi-stage build (golang:1.23-alpine → alpine:3.20)
- internal/builder/context.go: go1.23 в runtimeBaseImage + generateDockerfile
- controllers/functionjob_controller.go: go1.23 runner (nil cmd + SLESS_MODE=job env)
- api/v1alpha1/function_types.go: enum go1.21 → go1.23
- config/crd/bases/...: CRD обновлён
- terraform/provider: OneOf обновлён
- examples/hello-go: HTTP + job примеры на go1.23
- deployments/k8s/operator.yaml: v0.1.25
2026-03-11 15:40:47 +04:00
“Naeel”
c5111b9d2f
chore: staged files from prev session (gitignore, examples, harbor guide)
2026-03-11 14:36:32 +04:00
“Naeel”
32615c59d5
test: E2E скрипт run_e2e_tests.sh + fix provider token/version в примерах
2026-03-11 10:49:36 +04:00
“Naeel”
d757caf294
refactor: SoC — EnsureNamespace в namespace.go, маршрут /ensure, client.EnsureNamespace, fix secrets в .gitignore
...
- handler.go: убраны бизнес-логика и k8s-типы (corev1/k8serrors/metav1)
handler.go теперь только инфраструктура: Handler struct + helpers
- namespace.go: новый файл — EnsureNamespace хендлер живёт здесь
SoC: создание namespace — отдельная ответственность, не смешивается с CRUD
- router.go: добавлен маршрут POST /v1/namespaces/{namespace}/ensure
- client.go: добавлен метод EnsureNamespace(ctx, ns) → POST /ensure
- provider.go: Configure() вызывает c.EnsureNamespace(ctx, namespace) после создания Client
Namespace создаётся ОДИН РАЗ при инициализации провайдера
Resource-хендлеры (Function, Trigger, Job) namespace не трогают
- .gitignore: добавлена директория secrets/ (токены, ключи)
- provider v0.1.13, operator v0.1.21
Operator: naeel/sless-operator:v0.1.21
Provider: terra.k8c.ru/naeel/sless v0.1.13
2026-03-11 08:37:33 +04:00
“Naeel”
615048a6de
feat: JWT auth in operator + hello-node example updated
...
- operator: auth middleware теперь валидирует JWT (sub+exp), не статический токен
- operator: ensureNamespace идемпотентен при race condition (IsAlreadyExists)
- operator: NewRouter убран параметр apiToken — больше не нужен
- examples/hello-node: prod.token + nubes_endpoint + версия провайдера 0.1.12
- протестировано: namespace sless-cdd874dfa31ba6ca создан автоматически
2026-03-11 07:51:06 +04:00
“Naeel”
2e22072934
docs: update progress.md, errors/log.md; add gitignore for dist/ and tfstate backups
...
- doc/progress.md: обновлена версия до operator v0.1.18 / provider v0.1.11,
добавлен блок source_dir + fix destroy cleanup (2026-03-09),
уточнены комментарии к контроллерам и trigger_resource
- doc/errors/log.md: добавлены две записи — source_dir/hashicorp/archive,
destroy route cleanup bug (три причины + решения)
- .gitignore: добавлены examples/*/dist/ и terraform.tfstate.*.backup
- examples/: удалены dist/ zip и tfstate.*.backup из трекинга
2026-03-09 20:29:27 +04:00
“Naeel”
4142cdba43
docs: clarify sless_function description
2026-03-09 20:24:59 +04:00
“Naeel”
bb54d2a681
docs: remove informal tone from README
2026-03-09 20:24:23 +04:00
“Naeel”
4d3f42b6af
docs: add project description and resource types to examples README
2026-03-09 20:23:31 +04:00
“Naeel”
bd346e5877
fix: restore token in provider blocks (dev-token-change-me is the real token)
2026-03-09 19:51:27 +04:00
“Naeel”
fcd5020577
chore: remove hardcoded token from examples, use SLESS_API_TOKEN env
2026-03-09 19:25:52 +04:00
“Naeel”
1e592a1a52
fix: destroy route cleanup bug — delete Service+Ingress on trigger/function deletion
...
- controllers/trigger_controller.go: handleTriggerDeletion теперь удаляет Service
и Ingress из sless-fn-{ns} при удалении HTTP-триггера
- controllers/function_controller.go: handleDeletion теперь удаляет Service и Ingress
(имена совпадают с fn.Name); добавлен импорт netv1
- terraform/provider trigger_resource.go: Delete ждёт пока GetTrigger вернёт 404
(до 90с) — провайдер не возвращает успех раньше чем cleanup завершён
- examples: версия провайдера обновлена до ~> 0.1.11
Operator: naeel/sless-operator:v0.1.17
Provider: v0.1.11
Fixes DESTROY_ROUTE_CLEANUP_BUG.md
2026-03-09 19:23:28 +04:00
“Naeel”
55e71b5cb2
chore: удалён пример pg-query
2026-03-09 17:46:52 +04:00
“Naeel”
1a37c94cb4
feat: provider v0.1.10 — source_dir (zip внутри провайдера), убран archive провайдер из всех примеров
2026-03-09 17:45:45 +04:00
“Naeel”
6c93f6b5b5
docs: examples/README.md — порядок simple-first, без токена, без pg-query
2026-03-09 15:57:29 +04:00
“Naeel”
7f651b235d
feat: provider v0.1.9 — namespace hardcoded in client, removed from provider schema and all examples
2026-03-09 15:27:55 +04:00
“Naeel”
e36dbd410a
feat: provider v0.1.9 — namespace removed from resources, moved to provider block
2026-03-09 15:12:07 +04:00
“Naeel”
0235ba6a6d
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
“Naeel”
efaa8ce4bf
feat: outputs — статус init-джобов для пользователя без kubectl
2026-03-09 14:09:55 +04:00
“Naeel”
c8cd5d37fe
refactor: уникальные имена функций-обработчиков
...
handle() → run_sql() (sql_runner.py, entrypoint: sql_runner.run_sql)
handle() → crud() (notes_crud.py, entrypoint: notes_crud.crud)
handle() → list_notes() (notes_list.py, entrypoint: notes_list.list_notes)
2026-03-09 10:14:36 +04:00