Skip to content

Commit

Permalink
settings: use cloudformation settings extension in models
Browse files Browse the repository at this point in the history
  • Loading branch information
mgsharm committed May 29, 2024
1 parent 758ba84 commit a5fad7c
Show file tree
Hide file tree
Showing 15 changed files with 38 additions and 44 deletions.
1 change: 1 addition & 0 deletions sources/Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions sources/models/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ toml = "0.8"

# settings extensions
settings-extension-aws = { path = "../settings-extensions/aws", version = "0.1" }
settings-extension-cloudformation = { path = "../settings-extensions/cloudformation", version = "0.1" }
settings-extension-container-registry = { path = "../settings-extensions/container-registry", version = "0.1" }
settings-extension-dns = { path = "../settings-extensions/dns", version = "0.1" }
settings-extension-ecs = { path = "../settings-extensions/ecs", version = "0.1" }
Expand Down
6 changes: 2 additions & 4 deletions sources/models/src/aws-dev/mod.rs
Original file line number Diff line number Diff line change
@@ -1,9 +1,7 @@
use model_derive::model;
use std::collections::HashMap;

use crate::{
BootSettings, BootstrapContainer, CloudFormationSettings, HostContainer, NetworkSettings,
};
use crate::{BootSettings, BootstrapContainer, HostContainer, NetworkSettings};
use modeled_types::Identifier;

// Note: we have to use 'rename' here because the top-level Settings structure is the only one
Expand All @@ -23,6 +21,6 @@ struct Settings {
pki: settings_extension_pki::PkiSettingsV1,
container_registry: settings_extension_container_registry::RegistrySettingsV1,
oci_hooks: settings_extension_oci_hooks::OciHooksSettingsV1,
cloudformation: CloudFormationSettings,
cloudformation: settings_extension_cloudformation::CloudFormationSettingsV1,
dns: settings_extension_dns::DnsSettingsV1,
}
7 changes: 2 additions & 5 deletions sources/models/src/aws-ecs-1-nvidia/mod.rs
Original file line number Diff line number Diff line change
@@ -1,10 +1,7 @@
use model_derive::model;
use std::collections::HashMap;

use crate::{
AutoScalingSettings, BootstrapContainer, CloudFormationSettings, HostContainer,
NetworkSettings, OciDefaults,
};
use crate::{AutoScalingSettings, BootstrapContainer, HostContainer, NetworkSettings, OciDefaults};
use modeled_types::Identifier;

// Note: we have to use 'rename' here because the top-level Settings structure is the only one
Expand All @@ -25,7 +22,7 @@ struct Settings {
container_registry: settings_extension_container_registry::RegistrySettingsV1,
oci_defaults: OciDefaults,
oci_hooks: settings_extension_oci_hooks::OciHooksSettingsV1,
cloudformation: CloudFormationSettings,
cloudformation: settings_extension_cloudformation::CloudFormationSettingsV1,
autoscaling: AutoScalingSettings,
dns: settings_extension_dns::DnsSettingsV1,
}
7 changes: 2 additions & 5 deletions sources/models/src/aws-ecs-1/mod.rs
Original file line number Diff line number Diff line change
@@ -1,10 +1,7 @@
use model_derive::model;
use std::collections::HashMap;

use crate::{
AutoScalingSettings, BootstrapContainer, CloudFormationSettings, HostContainer,
NetworkSettings, OciDefaults,
};
use crate::{AutoScalingSettings, BootstrapContainer, HostContainer, NetworkSettings, OciDefaults};
use modeled_types::Identifier;

// Note: we have to use 'rename' here because the top-level Settings structure is the only one
Expand All @@ -25,7 +22,7 @@ struct Settings {
container_registry: settings_extension_container_registry::RegistrySettingsV1,
oci_defaults: OciDefaults,
oci_hooks: settings_extension_oci_hooks::OciHooksSettingsV1,
cloudformation: CloudFormationSettings,
cloudformation: settings_extension_cloudformation::CloudFormationSettingsV1,
autoscaling: AutoScalingSettings,
dns: settings_extension_dns::DnsSettingsV1,
}
6 changes: 3 additions & 3 deletions sources/models/src/aws-ecs-2-nvidia/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@ use model_derive::model;
use std::collections::HashMap;

use crate::{
AutoScalingSettings, BootSettings, BootstrapContainer, CloudFormationSettings, HostContainer,
NetworkSettings, OciDefaults,
AutoScalingSettings, BootSettings, BootstrapContainer, HostContainer, NetworkSettings,
OciDefaults,
};
use modeled_types::Identifier;

Expand All @@ -26,7 +26,7 @@ struct Settings {
container_registry: settings_extension_container_registry::RegistrySettingsV1,
oci_defaults: OciDefaults,
oci_hooks: settings_extension_oci_hooks::OciHooksSettingsV1,
cloudformation: CloudFormationSettings,
cloudformation: settings_extension_cloudformation::CloudFormationSettingsV1,
autoscaling: AutoScalingSettings,
dns: settings_extension_dns::DnsSettingsV1,
}
6 changes: 3 additions & 3 deletions sources/models/src/aws-ecs-2/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@ use model_derive::model;
use std::collections::HashMap;

use crate::{
AutoScalingSettings, BootSettings, BootstrapContainer, CloudFormationSettings, HostContainer,
NetworkSettings, OciDefaults,
AutoScalingSettings, BootSettings, BootstrapContainer, HostContainer, NetworkSettings,
OciDefaults,
};
use modeled_types::Identifier;

Expand All @@ -26,7 +26,7 @@ struct Settings {
container_registry: settings_extension_container_registry::RegistrySettingsV1,
oci_defaults: OciDefaults,
oci_hooks: settings_extension_oci_hooks::OciHooksSettingsV1,
cloudformation: CloudFormationSettings,
cloudformation: settings_extension_cloudformation::CloudFormationSettingsV1,
autoscaling: AutoScalingSettings,
dns: settings_extension_dns::DnsSettingsV1,
}
6 changes: 3 additions & 3 deletions sources/models/src/aws-k8s-1.24-nvidia/mod.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
use crate::{
AutoScalingSettings, BootSettings, BootstrapContainer, CloudFormationSettings,
ContainerRuntimeSettings, HostContainer, KubernetesSettings, NetworkSettings, OciDefaults,
AutoScalingSettings, BootSettings, BootstrapContainer, ContainerRuntimeSettings, HostContainer,
KubernetesSettings, NetworkSettings, OciDefaults,
};
use modeled_types::Identifier;

Expand All @@ -26,7 +26,7 @@ struct Settings {
container_registry: settings_extension_container_registry::RegistrySettingsV1,
oci_defaults: OciDefaults,
oci_hooks: settings_extension_oci_hooks::OciHooksSettingsV1,
cloudformation: CloudFormationSettings,
cloudformation: settings_extension_cloudformation::CloudFormationSettingsV1,
dns: settings_extension_dns::DnsSettingsV1,
container_runtime: ContainerRuntimeSettings,
autoscaling: AutoScalingSettings,
Expand Down
6 changes: 3 additions & 3 deletions sources/models/src/aws-k8s-1.24/mod.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
use crate::{
AutoScalingSettings, BootSettings, BootstrapContainer, CloudFormationSettings,
ContainerRuntimeSettings, HostContainer, KubernetesSettings, NetworkSettings, OciDefaults,
AutoScalingSettings, BootSettings, BootstrapContainer, ContainerRuntimeSettings, HostContainer,
KubernetesSettings, NetworkSettings, OciDefaults,
};
use modeled_types::Identifier;

Expand All @@ -26,7 +26,7 @@ struct Settings {
container_registry: settings_extension_container_registry::RegistrySettingsV1,
oci_defaults: OciDefaults,
oci_hooks: settings_extension_oci_hooks::OciHooksSettingsV1,
cloudformation: CloudFormationSettings,
cloudformation: settings_extension_cloudformation::CloudFormationSettingsV1,
dns: settings_extension_dns::DnsSettingsV1,
container_runtime: ContainerRuntimeSettings,
autoscaling: AutoScalingSettings,
Expand Down
6 changes: 3 additions & 3 deletions sources/models/src/aws-k8s-1.25-nvidia/mod.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
use crate::{
AutoScalingSettings, BootSettings, BootstrapContainer, CloudFormationSettings,
ContainerRuntimeSettings, HostContainer, KubernetesSettings, NetworkSettings, OciDefaults,
AutoScalingSettings, BootSettings, BootstrapContainer, ContainerRuntimeSettings, HostContainer,
KubernetesSettings, NetworkSettings, OciDefaults,
};
use modeled_types::Identifier;

Expand All @@ -26,7 +26,7 @@ struct Settings {
container_registry: settings_extension_container_registry::RegistrySettingsV1,
oci_defaults: OciDefaults,
oci_hooks: settings_extension_oci_hooks::OciHooksSettingsV1,
cloudformation: CloudFormationSettings,
cloudformation: settings_extension_cloudformation::CloudFormationSettingsV1,
dns: settings_extension_dns::DnsSettingsV1,
container_runtime: ContainerRuntimeSettings,
autoscaling: AutoScalingSettings,
Expand Down
6 changes: 3 additions & 3 deletions sources/models/src/aws-k8s-1.25/mod.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
use crate::{
AutoScalingSettings, BootSettings, BootstrapContainer, CloudFormationSettings,
ContainerRuntimeSettings, HostContainer, KubernetesSettings, NetworkSettings, OciDefaults,
AutoScalingSettings, BootSettings, BootstrapContainer, ContainerRuntimeSettings, HostContainer,
KubernetesSettings, NetworkSettings, OciDefaults,
};
use modeled_types::Identifier;

Expand All @@ -26,7 +26,7 @@ struct Settings {
container_registry: settings_extension_container_registry::RegistrySettingsV1,
oci_defaults: OciDefaults,
oci_hooks: settings_extension_oci_hooks::OciHooksSettingsV1,
cloudformation: CloudFormationSettings,
cloudformation: settings_extension_cloudformation::CloudFormationSettingsV1,
dns: settings_extension_dns::DnsSettingsV1,
container_runtime: ContainerRuntimeSettings,
autoscaling: AutoScalingSettings,
Expand Down
6 changes: 3 additions & 3 deletions sources/models/src/aws-k8s-1.26-nvidia/mod.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
use crate::{
AutoScalingSettings, BootSettings, BootstrapContainer, CloudFormationSettings,
ContainerRuntimeSettings, HostContainer, KubernetesSettings, NetworkSettings, OciDefaults,
AutoScalingSettings, BootSettings, BootstrapContainer, ContainerRuntimeSettings, HostContainer,
KubernetesSettings, NetworkSettings, OciDefaults,
};
use modeled_types::Identifier;

Expand All @@ -26,7 +26,7 @@ struct Settings {
container_registry: settings_extension_container_registry::RegistrySettingsV1,
oci_defaults: OciDefaults,
oci_hooks: settings_extension_oci_hooks::OciHooksSettingsV1,
cloudformation: CloudFormationSettings,
cloudformation: settings_extension_cloudformation::CloudFormationSettingsV1,
dns: settings_extension_dns::DnsSettingsV1,
container_runtime: ContainerRuntimeSettings,
autoscaling: AutoScalingSettings,
Expand Down
6 changes: 3 additions & 3 deletions sources/models/src/aws-k8s-1.26/mod.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
use crate::{
AutoScalingSettings, BootSettings, BootstrapContainer, CloudFormationSettings,
ContainerRuntimeSettings, HostContainer, KubernetesSettings, NetworkSettings, OciDefaults,
AutoScalingSettings, BootSettings, BootstrapContainer, ContainerRuntimeSettings, HostContainer,
KubernetesSettings, NetworkSettings, OciDefaults,
};
use modeled_types::Identifier;

Expand All @@ -26,7 +26,7 @@ struct Settings {
container_registry: settings_extension_container_registry::RegistrySettingsV1,
oci_defaults: OciDefaults,
oci_hooks: settings_extension_oci_hooks::OciHooksSettingsV1,
cloudformation: CloudFormationSettings,
cloudformation: settings_extension_cloudformation::CloudFormationSettingsV1,
dns: settings_extension_dns::DnsSettingsV1,
container_runtime: ContainerRuntimeSettings,
autoscaling: AutoScalingSettings,
Expand Down
6 changes: 3 additions & 3 deletions sources/models/src/aws-k8s-1.30-nvidia/mod.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
use crate::{
AutoScalingSettings, BootSettings, BootstrapContainer, CloudFormationSettings,
ContainerRuntimeSettings, HostContainer, KubernetesSettings, NetworkSettings, OciDefaults,
AutoScalingSettings, BootSettings, BootstrapContainer, ContainerRuntimeSettings, HostContainer,
KubernetesSettings, NetworkSettings, OciDefaults,
};
use modeled_types::Identifier;

Expand All @@ -26,7 +26,7 @@ struct Settings {
container_registry: settings_extension_container_registry::RegistrySettingsV1,
oci_defaults: OciDefaults,
oci_hooks: settings_extension_oci_hooks::OciHooksSettingsV1,
cloudformation: CloudFormationSettings,
cloudformation: settings_extension_cloudformation::CloudFormationSettingsV1,
dns: settings_extension_dns::DnsSettingsV1,
container_runtime: ContainerRuntimeSettings,
autoscaling: AutoScalingSettings,
Expand Down
6 changes: 3 additions & 3 deletions sources/models/src/aws-k8s-1.30/mod.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
use crate::{
AutoScalingSettings, BootSettings, BootstrapContainer, CloudFormationSettings,
ContainerRuntimeSettings, HostContainer, KubernetesSettings, NetworkSettings, OciDefaults,
AutoScalingSettings, BootSettings, BootstrapContainer, ContainerRuntimeSettings, HostContainer,
KubernetesSettings, NetworkSettings, OciDefaults,
};
use modeled_types::Identifier;

Expand All @@ -26,7 +26,7 @@ struct Settings {
container_registry: settings_extension_container_registry::RegistrySettingsV1,
oci_defaults: OciDefaults,
oci_hooks: settings_extension_oci_hooks::OciHooksSettingsV1,
cloudformation: CloudFormationSettings,
cloudformation: settings_extension_cloudformation::CloudFormationSettingsV1,
dns: settings_extension_dns::DnsSettingsV1,
container_runtime: ContainerRuntimeSettings,
autoscaling: AutoScalingSettings,
Expand Down

0 comments on commit a5fad7c

Please sign in to comment.