You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Support requestTimeout service setting and generalize settings handling for future keys #41
The platform API supports requestTimeout (1–300 s, default 10 s) on GET/PATCH /v2/projects/{project}/services/{service}/settings and Deployment.settings, but valar/cli currently blocks it locally:
valar service settings set requestTimeout=60 and reset requestTimeout fail locally with exit code 2 because settingNames (cmd/settings.go:18) only allows cpu, memory, http, and minRunning.
.valar.yml rejects deployment.requestTimeout during local schema validation (config/service.go:67-98, schema/valar.yml.json).
valar service settings hides requestTimeout in the human table (cmd/settings.go:171-178).
valar deployment list/create/rollback --json silently drops settings.requestTimeout because api.Deployment.Settings unmarshals into api.ServiceSettings (api/client.go:928, api/settings.go:25-30).
Furthermore, with additional settings coming (such as port in #33 and future string-valued settings like protocol), the current hardcoded client allowlist and int/bool-only parser (cmd/settings.go:134-162) will break on every new platform setting until a new CLI release ships.
Proposed changes
Add requestTimeout to api.ServiceSettings, api.SettingsLimits, cmd/settings.go, config/service.go, and schema/valar.yml.json (and coordinate updating the server-served valar.yml.json schema, which also still lacks cpu, memory, http, minRunning from PR Add service settings and roll back only to deployments that served #28).
Generalize service settings parsing/rendering and preserve unknown fields on Deployment.Settings JSON so future int/bool/string platform settings pass through cleanly without requiring emergency CLI patches.
Activity