Skip to content
This repository was archived by the owner on Dec 21, 2021. It is now read-only.

Commit b2394a7

Browse files
authored
Rework usage of Krustlet config to allow passing parameters on the command line (#36)
Changed usage of Krustlet config code, so that it does not look at commandline parameters - which allows the agent to use its own parameters. fixes #34 Some minor refactoring is contained in here as well: - Pulled out documentation strings into separate files, which allows editing them as proper adoc files with preview, instead of string literals in Rust code. This makes writing documentation _a lot_ easier. - Refactored parsing of paths from config into an extra fn and implemented collecting all parse errors before panicing.
1 parent 1c3c34f commit b2394a7

17 files changed

+231
-89
lines changed

Cargo.lock

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@ edition = "2018"
1010
# We will look to move this to officially released versions as soon as possible
1111
kubelet = { git="https://github.com/deislabs/krustlet.git", rev="ac218b38ba564de806568e49d9e38aaef9f41537", default-features = true, features= ["derive", "cli"] }
1212
oci-distribution = { git="https://github.com/deislabs/krustlet.git", rev="ac218b38ba564de806568e49d9e38aaef9f41537"}
13-
1413
k8s-openapi = { version = "0.9", default-features = false, features = ["v1_18"] }
1514
kube = { version= "0.42", default-features = false, features = ["native-tls"] }
1615
kube-derive = "0.43"
@@ -30,6 +29,7 @@ thiserror = "1.0"
3029
url = "2.2"
3130
pnet = "0.26.0"
3231
stackable_config = { git = "https://github.com/stackabletech/common.git", branch = "main" }
32+
hostname = "0.3"
3333

3434
[dev-dependencies]
3535
indoc = "1.0"

0 commit comments

Comments
 (0)