Skip to content

Commit

Permalink
feat(kubernetes): add max_parallel_image_pulls and serialize_image_pulls
Browse files Browse the repository at this point in the history
Signed-off-by: Gavin Inglis <[email protected]>
  • Loading branch information
ginglis13 committed Sep 5, 2024
1 parent 28f3c66 commit ebac9f2
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ settings-extension-dns = { path = "./bottlerocket-settings-models/settings-exten
settings-extension-ecs = { path = "./bottlerocket-settings-models/settings-extensions/ecs", version = "0.1" }
settings-extension-host-containers = { path = "./bottlerocket-settings-models/settings-extensions/host-containers", version = "0.1" }
settings-extension-kernel = { path = "./bottlerocket-settings-models/settings-extensions/kernel", version = "0.1" }
settings-extension-kubernetes = { path = "./bottlerocket-settings-models/settings-extensions/kubernetes", version = "0.1" }
settings-extension-kubernetes = { path = "./bottlerocket-settings-models/settings-extensions/kubernetes", version = "0.2" }
settings-extension-metrics = { path = "./bottlerocket-settings-models/settings-extensions/metrics", version = "0.1" }
settings-extension-motd = { path = "./bottlerocket-settings-models/settings-extensions/motd", version = "0.1" }
settings-extension-network = { path = "./bottlerocket-settings-models/settings-extensions/network", version = "0.1" }
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "settings-extension-kubernetes"
version = "0.1.0"
version = "0.2.0"
authors = ["Sean P. Kelly <[email protected]>"]
license = "Apache-2.0 OR MIT"
edition = "2021"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,9 @@ pub struct KubernetesSettingsV1 {
seccomp_default: bool,
#[cfg(feature = "nvidia-device-plugin")]
device_plugins: K8sDevicePluginsSettings,
// Generated in `k8s-1.27+` variants only
serialize_image_pulls: bool,
max_parallel_image_pulls: i32,
}

type Result<T> = std::result::Result<T, Infallible>;
Expand Down Expand Up @@ -197,6 +200,8 @@ mod test {
seccomp_default: None,
#[cfg(feature = "nvidia-device-plugin")]
device_plugins: None,
serialize_image_pulls: None,
max_parallel_image_pulls: None,
})
);
}
Expand Down

0 comments on commit ebac9f2

Please sign in to comment.