-
Notifications
You must be signed in to change notification settings - Fork 512
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: Arnaldo Garcia Rincon <agarrcia@amazon.com>
- Loading branch information
1 parent
8896f88
commit 54415cb
Showing
22 changed files
with
209 additions
and
1 deletion.
There are no files selected for viewing
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
aws-k8s.conf |
7 changes: 7 additions & 0 deletions
7
sources/models/shared-defaults/kubernetes-containerd-nvidia.toml
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
[configuration-files.containerd-config-toml] | ||
# No override to path | ||
template-path = "/usr/share/templates/containerd-config-toml_k8s_nvidia" | ||
|
||
# Image registries | ||
[metadata.settings.container-registry] | ||
affected-services = ["containerd", "host-containers", "bootstrap-containers"] |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
[settings.oci-hooks] | ||
log4j-hotpatch-enabled = false | ||
|
||
[metadata.settings.oci-hooks] | ||
affected-services = ["oci-hooks"] | ||
|
||
[services.oci-hooks] | ||
configuration-files = ["oci-hooks"] | ||
restart-commands = [] | ||
|
||
[configuration-files.oci-hooks] | ||
path = "/etc/shimpei/nvidia-oci-hooks.json" | ||
template-path = "/usr/share/templates/nvidia-oci-hooks-json" |
1 change: 1 addition & 0 deletions
1
sources/models/src/aws-k8s-1.21-nvidia/defaults.d/10-defaults.toml
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
../../../shared-defaults/defaults.toml |
1 change: 1 addition & 0 deletions
1
sources/models/src/aws-k8s-1.21-nvidia/defaults.d/20-aws-host-containers.toml
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
../../../shared-defaults/aws-host-containers.toml |
1 change: 1 addition & 0 deletions
1
sources/models/src/aws-k8s-1.21-nvidia/defaults.d/30-metrics.toml
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
../../../shared-defaults/metrics.toml |
1 change: 1 addition & 0 deletions
1
sources/models/src/aws-k8s-1.21-nvidia/defaults.d/50-kubernetes-aws.toml
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
../../../shared-defaults/kubernetes-aws.toml |
1 change: 1 addition & 0 deletions
1
sources/models/src/aws-k8s-1.21-nvidia/defaults.d/51-kubernetes-containerd-nvidia.toml
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
../../../shared-defaults/kubernetes-containerd-nvidia.toml |
1 change: 1 addition & 0 deletions
1
sources/models/src/aws-k8s-1.21-nvidia/defaults.d/52-kubernetes-services.toml
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
../../../shared-defaults/kubernetes-services.toml |
1 change: 1 addition & 0 deletions
1
sources/models/src/aws-k8s-1.21-nvidia/defaults.d/60-lockdown-none.toml
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
../../../shared-defaults/lockdown-none.toml |
1 change: 1 addition & 0 deletions
1
sources/models/src/aws-k8s-1.21-nvidia/defaults.d/70-oci-hooks.toml
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
../../../shared-defaults/nvidia-oci-hooks.toml |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
use model_derive::model; | ||
use serde::{Deserialize, Serialize}; | ||
use std::collections::HashMap; | ||
|
||
use crate::modeled_types::Identifier; | ||
use crate::{ | ||
AwsSettings, BootstrapContainer, HostContainer, KernelSettings, KubernetesSettings, | ||
MetricsSettings, NetworkSettings, NtpSettings, OciHooks, PemCertificate, RegistrySettings, | ||
UpdatesSettings, | ||
}; | ||
|
||
// Note: we have to use 'rename' here because the top-level Settings structure is the only one | ||
// that uses its name in serialization; internal structures use the field name that points to it | ||
#[model(rename = "settings", impl_default = true)] | ||
struct Settings { | ||
motd: String, | ||
kubernetes: KubernetesSettings, | ||
updates: UpdatesSettings, | ||
host_containers: HashMap<Identifier, HostContainer>, | ||
bootstrap_containers: HashMap<Identifier, BootstrapContainer>, | ||
ntp: NtpSettings, | ||
network: NetworkSettings, | ||
kernel: KernelSettings, | ||
aws: AwsSettings, | ||
metrics: MetricsSettings, | ||
pki: HashMap<Identifier, PemCertificate>, | ||
container_registry: RegistrySettings, | ||
oci_hooks: OciHooks, | ||
} |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains 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
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
[package] | ||
# This is the aws-k8s-1.21-nvidia variant. "." is not allowed in crate names, but we | ||
# don't use this crate name anywhere. | ||
name = "aws-k8s-1_21-nvidia" | ||
version = "0.1.0" | ||
edition = "2018" | ||
publish = false | ||
build = "build.rs" | ||
# Don't rebuild crate just because of changes to README. | ||
exclude = ["README.md"] | ||
|
||
[package.metadata.build-variant] | ||
included-packages = [ | ||
"aws-iam-authenticator", | ||
"cni", | ||
"cni-plugins", | ||
"kernel-5.10", | ||
"kubelet-1.21", | ||
"release", | ||
"nvidia-container-toolkit", | ||
"kmod-5.10-nvidia-tesla-470" | ||
] | ||
kernel-parameters = [ | ||
"console=tty0", | ||
"console=ttyS0,115200n8", | ||
] | ||
|
||
[lib] | ||
path = "lib.rs" | ||
|
||
[build-dependencies] | ||
aws-iam-authenticator = { path = "../../packages/aws-iam-authenticator" } | ||
cni = { path = "../../packages/cni" } | ||
cni-plugins = { path = "../../packages/cni-plugins" } | ||
kernel-5_10 = { path = "../../packages/kernel-5.10" } | ||
kubernetes-1_21 = { path = "../../packages/kubernetes-1.21" } | ||
release = { path = "../../packages/release" } | ||
nvidia-container-toolkit = { path = "../../packages/nvidia-container-toolkit" } | ||
kmod-5_10-nvidia = { path = "../../packages/kmod-5.10-nvidia" } |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
use std::process::{exit, Command}; | ||
|
||
fn main() -> Result<(), std::io::Error> { | ||
let ret = Command::new("buildsys").arg("build-variant").status()?; | ||
if !ret.success() { | ||
exit(1); | ||
} | ||
Ok(()) | ||
} |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
// not used |