Skip to content

feat(kellnr): add cargo config for rustdoc auto-generation#63

Merged
secana merged 2 commits intokellnr:mainfrom
loispostula:doc-config
Feb 19, 2026
Merged

feat(kellnr): add cargo config for rustdoc auto-generation#63
secana merged 2 commits intokellnr:mainfrom
loispostula:doc-config

Conversation

@loispostula
Copy link
Contributor

Kellnr's doc builder needs a Cargo config.toml to resolve crate dependencies from itself (localhost) when building documentation inside the container. Without source replacement, Cargo tries to reach the external registry URL and fails.

Adds a docBuilder values section that:

  • Creates a ConfigMap with Cargo registry and source replacement config
  • Mounts config.toml into CARGO_HOME via subPath
  • Injects the registry auth token from a referenced Secret
  • Triggers pod restart on config changes via annotation hash

Kellnr's doc builder needs a Cargo config.toml to resolve crate
dependencies from itself (localhost) when building documentation
inside the container. Without source replacement, Cargo tries to
reach the external registry URL and fails.

Adds a docBuilder values section that:
- Creates a ConfigMap with Cargo registry and source replacement config
- Mounts config.toml into CARGO_HOME via subPath
- Injects the registry auth token from a referenced Secret
- Triggers pod restart on config changes via annotation hash
…ilds

Crates with a rust-toolchain.toml trigger rustup to auto-download a
different toolchain mid-build, which can corrupt the installed
toolchain inside the container. Setting RUSTUP_TOOLCHAIN overrides
this behavior and locks the doc builder to the installed toolchain.
@secana secana merged commit d5e570a into kellnr:main Feb 19, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants