No description
  • Python 82.9%
  • Nix 15.1%
  • Shell 2%
Find a file
Carlo Field 6761133c6c
fix: improvements to limit range handling
Signed-off-by: Carlo Field <carlo@swiss.dev>
2026-11-21 12:08:30 +01:00
examples fix: improvements to limit range handling 2026-11-21 12:08:30 +01:00
nix fix: improvements to limit range handling 2026-11-21 12:08:30 +01:00
patches/helmfile feat: more helmfile patches 2026-11-20 15:18:59 +01:00
tools fix: improvements to limit range handling 2026-11-21 12:08:30 +01:00
.envrc feat: initial commit 2026-11-16 17:58:11 +01:00
.gitignore feat: lsp for config.nix 2026-11-17 17:04:44 +01:00
flake.lock feat: initial commit 2026-11-16 17:58:11 +01:00
flake.nix fix: improvements to limit range handling 2026-11-21 12:08:30 +01:00
README.md fix: improvements to limit range handling 2026-11-21 12:08:30 +01:00

opendesk-nix

Copy the basic tenant config into your deployment directory and replace the example address and domain. The advanced config adds dev/prod stores, a separate secret destination, Argo CD, and resource policies.

nix develop /path/to/opendesk-nix
render --config ./tenant.nix dev
validate --config ./tenant.nix

Runtime credential generation is the default. To use prepared credentials, run prepare-credentials --config ./tenant.nix dev --dry-run, then repeat without --dry-run and set openbao.derivedCredentials.mode = "vault". This uses KV2 in the selected seed store and requires regeneration after seed or target changes.

helmfile.concurrency also controls parallel Helm rendering into separate output directories. Values templates and stdout rendering stay ordered. Template caching and parallel nested states are not enabled; templates may read external state.

From this repository, run all checks with:

nix run .#check

The same check command is available in the devshell and accepts an optional repository path. It runs Nix checks, builds patched Helmfile with its Go tests, and runs the renderer and secret-converter Python suites, including local fake Vault tests. It does not contact your configured tenant stores.

All config options live in options.nix.

Resource checks apply namespace defaults before checking ratios. CPU values of 99 or 288 cores count as unset. Set resourceValidation.fixMissingResources = true; to fill missing container requests and limits in rendered manifests. This uses namespace defaults or the closest value allowed by the container rules, and keeps warnings so you can correct upstream values. Explicit values are preserved; remaining pod limits and quota violations still warn. The default is validation only.

neovim.lua shows the devshell LSP setup.