- Python 82.9%
- Nix 15.1%
- Shell 2%
|
|
||
|---|---|---|
| examples | ||
| nix | ||
| patches/helmfile | ||
| tools | ||
| .envrc | ||
| .gitignore | ||
| flake.lock | ||
| flake.nix | ||
| README.md | ||
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.