feat(kellnr): add cargo config for rustdoc auto-generation#63
Merged
secana merged 2 commits intokellnr:mainfrom Feb 19, 2026
Merged
feat(kellnr): add cargo config for rustdoc auto-generation#63secana merged 2 commits intokellnr:mainfrom
secana merged 2 commits intokellnr:mainfrom
Conversation
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.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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: