diff --git a/src/VirtoCommerce.Build/Cloud/Models/ArgoAppCustomAppSection.cs b/src/VirtoCommerce.Build/Cloud/Models/ArgoAppCustomAppSection.cs deleted file mode 100644 index 1d3a1ce..0000000 --- a/src/VirtoCommerce.Build/Cloud/Models/ArgoAppCustomAppSection.cs +++ /dev/null @@ -1,84 +0,0 @@ -using System.Collections.Generic; - -namespace Cloud.Models -{ - public class ArgoAppCustomAppSection - { - private string _app; - - public ArgoAppCustomAppSection() - { - PlatformPath = new List(); - StorefrontPath = new List(); - ServicePath = new List(); - } - - public void SetApp(string name) - { - _app = name; - } - - private string GetPrefix() - { - return $"custom.{_app}."; - } - - public string Enabled { get; set; } - public string Type { get; set; } - public string AttachedTo { get; set; } - public string ProbePath { get; set; } - public string Replicas { get; set; } - public string Hostname { get; set; } - public string Port { get; set; } - public string Name { get; set; } - public string ImageRepository { get; set; } - public string ImageTag { get; set; } - public string IngressPath { get; set; } - public string RequestsMemory { get; set; } - public string RequestsCPU { get; set; } - public string LimitsMemory { get; set; } - public string LimitsCPU { get; set; } - public List PlatformPath { get; set; } - public List StorefrontPath { get; set; } - public List ServicePath { get; set; } - - public List GetParameters(string customAppName) - { - SetApp(customAppName); - var parameters = new List() - { - new HelmParameter(name: $"{GetPrefix()}enabled", value: Enabled), - new HelmParameter(name: $"{GetPrefix()}type", value: Type), - new HelmParameter(name: $"{GetPrefix()}attached_to", value: AttachedTo), - new HelmParameter(name: $"{GetPrefix()}probe_path", value: ProbePath), - new HelmParameter(name: $"{GetPrefix()}replicas", value: Replicas), - new HelmParameter(name: $"{GetPrefix()}hostname", value: Hostname), - new HelmParameter(name: $"{GetPrefix()}port", value: Port), - new HelmParameter(name: $"{GetPrefix()}name", value: Name), - new HelmParameter(name: $"{GetPrefix()}image.repository", value: ImageRepository), - new HelmParameter(name: $"{GetPrefix()}image.tag", value: ImageTag), - new HelmParameter(name: $"{GetPrefix()}ingress_path", value: IngressPath), - new HelmParameter(name: $"{GetPrefix()}resources.requests.memory", value: RequestsMemory), - new HelmParameter(name: $"{GetPrefix()}resources.requests.cpu", value: RequestsCPU), - new HelmParameter(name: $"{GetPrefix()}resources.limits.memory", value: LimitsMemory), - new HelmParameter(name: $"{GetPrefix()}resources.limits.cpu", value: LimitsCPU) - }; - - parameters.AddRange(ConvertToPathParameters(PlatformPath, $"{GetPrefix()}paths.platform")); - parameters.AddRange(ConvertToPathParameters(StorefrontPath, $"{GetPrefix()}paths.storefront")); - parameters.AddRange(ConvertToPathParameters(ServicePath, $"{GetPrefix()}paths.service")); - - return parameters; - } - - private static List ConvertToPathParameters(List parameters, string name) - { - var result = new List(); - for (var i = 0; i < parameters.Count; i++) - { - result.Add(new HelmParameter(name: $"{name}[{i}]", value: parameters[i])); - } - return result; - } - } -} diff --git a/src/VirtoCommerce.Build/Cloud/Models/ArgoAppEnvironmentVariable.cs b/src/VirtoCommerce.Build/Cloud/Models/ArgoAppEnvironmentVariable.cs deleted file mode 100644 index 24db234..0000000 --- a/src/VirtoCommerce.Build/Cloud/Models/ArgoAppEnvironmentVariable.cs +++ /dev/null @@ -1,8 +0,0 @@ -namespace Cloud.Models -{ - public class ArgoAppEnvironmentVariable - { - public string Value { get; set; } - public string SecretValue { get; set; } - } -} diff --git a/src/VirtoCommerce.Build/Cloud/Models/ArgoAppIngressSection.cs b/src/VirtoCommerce.Build/Cloud/Models/ArgoAppIngressSection.cs deleted file mode 100644 index 213faf4..0000000 --- a/src/VirtoCommerce.Build/Cloud/Models/ArgoAppIngressSection.cs +++ /dev/null @@ -1,9 +0,0 @@ -namespace Cloud.Models -{ - public class ArgoAppIngressSection - { - public string Config { get; set; } - public string Hostname { get; set; } - public string StorefrontHostname { get; set; } - } -} diff --git a/src/VirtoCommerce.Build/Cloud/Models/ArgoAppPlatformSection.cs b/src/VirtoCommerce.Build/Cloud/Models/ArgoAppPlatformSection.cs deleted file mode 100644 index 86d82f6..0000000 --- a/src/VirtoCommerce.Build/Cloud/Models/ArgoAppPlatformSection.cs +++ /dev/null @@ -1,13 +0,0 @@ -using System.Collections.Generic; - -namespace Cloud.Models -{ - public class ArgoAppPlatformSection - { - public string ImageRepository { get; set; } - public string ImageTag { get; set; } - public string Tier { get; set; } - public Dictionary Config { get; set; } - public Dictionary SecretConfig { get; set; } - } -} diff --git a/src/VirtoCommerce.Build/Cloud/Models/ArgoAppStorefrontSection.cs b/src/VirtoCommerce.Build/Cloud/Models/ArgoAppStorefrontSection.cs deleted file mode 100644 index 05d6c66..0000000 --- a/src/VirtoCommerce.Build/Cloud/Models/ArgoAppStorefrontSection.cs +++ /dev/null @@ -1,15 +0,0 @@ -using System.Collections.Generic; - -namespace Cloud.Models -{ - public class ArgoAppStorefrontSection - { - public string ImageRepository { get; set; } - public string ImageTag { get; set; } - public string ThemeUrl { get; set; } - public string ThemeName { get; set; } - public string Ingress { get; set; } - public Dictionary Config { get; set; } - public Dictionary SecretConfig { get; set; } - } -} diff --git a/src/VirtoCommerce.Build/Cloud/Models/ArgoApplication.cs b/src/VirtoCommerce.Build/Cloud/Models/ArgoApplication.cs deleted file mode 100644 index 2511489..0000000 --- a/src/VirtoCommerce.Build/Cloud/Models/ArgoApplication.cs +++ /dev/null @@ -1,14 +0,0 @@ -using System.Collections.Generic; - -namespace Cloud.Models -{ - public class ArgoApplication - { - public string Name { get; set; } - public ArgoAppPlatformSection Platform { get; set; } - public ArgoAppStorefrontSection Storefront { get; set; } - public ArgoAppIngressSection Ingress { get; set; } - public Dictionary CustomApps { get; set; } - public List ProtectedParameters { get; set; } - } -} diff --git a/src/VirtoCommerce.Build/Cloud/Models/Platform/Config.cs b/src/VirtoCommerce.Build/Cloud/Models/Platform/Config.cs deleted file mode 100644 index 411ef6d..0000000 --- a/src/VirtoCommerce.Build/Cloud/Models/Platform/Config.cs +++ /dev/null @@ -1,9 +0,0 @@ -namespace Cloud.Models.Platform -{ - public class Config : HelmParameter - { - public Config(string name, string value) : base(false, $"platform.config.{name}", value) - { - } - } -} diff --git a/src/VirtoCommerce.Build/Cloud/Models/Platform/ImageRepository.cs b/src/VirtoCommerce.Build/Cloud/Models/Platform/ImageRepository.cs deleted file mode 100644 index 60a19c6..0000000 --- a/src/VirtoCommerce.Build/Cloud/Models/Platform/ImageRepository.cs +++ /dev/null @@ -1,9 +0,0 @@ -namespace Cloud.Models.Platform -{ - public class ImageRepository : HelmParameter - { - public ImageRepository(string value) : base(false, "platform.image.repository", value) - { - } - } -} diff --git a/src/VirtoCommerce.Build/Cloud/Models/Platform/ImageTag.cs b/src/VirtoCommerce.Build/Cloud/Models/Platform/ImageTag.cs deleted file mode 100644 index a176835..0000000 --- a/src/VirtoCommerce.Build/Cloud/Models/Platform/ImageTag.cs +++ /dev/null @@ -1,9 +0,0 @@ -namespace Cloud.Models.Platform -{ - public class ImageTag : HelmParameter - { - public ImageTag(string value) : base(false, "platform.image.tag", value) - { - } - } -} diff --git a/src/VirtoCommerce.Build/Cloud/Models/Platform/IngressConfig.cs b/src/VirtoCommerce.Build/Cloud/Models/Platform/IngressConfig.cs deleted file mode 100644 index db8d682..0000000 --- a/src/VirtoCommerce.Build/Cloud/Models/Platform/IngressConfig.cs +++ /dev/null @@ -1,9 +0,0 @@ -namespace Cloud.Models.Platform -{ - public class IngressConfig : HelmParameter - { - public IngressConfig(string value) : base(false, $"ingress.config", value) - { - } - } -} diff --git a/src/VirtoCommerce.Build/Cloud/Models/Platform/IngressHostname.cs b/src/VirtoCommerce.Build/Cloud/Models/Platform/IngressHostname.cs deleted file mode 100644 index 70e9953..0000000 --- a/src/VirtoCommerce.Build/Cloud/Models/Platform/IngressHostname.cs +++ /dev/null @@ -1,9 +0,0 @@ -namespace Cloud.Models.Platform -{ - public class IngressHostname : HelmParameter - { - public IngressHostname(string value) : base(false, $"ingress.hostname", value) - { - } - } -} diff --git a/src/VirtoCommerce.Build/Cloud/Models/Platform/Secret.cs b/src/VirtoCommerce.Build/Cloud/Models/Platform/Secret.cs deleted file mode 100644 index 3df37d6..0000000 --- a/src/VirtoCommerce.Build/Cloud/Models/Platform/Secret.cs +++ /dev/null @@ -1,9 +0,0 @@ -namespace Cloud.Models.Platform -{ - public class Secret : HelmParameter - { - public Secret(string name) : base(false, $"platform.secrets.{name}", name) - { - } - } -} diff --git a/src/VirtoCommerce.Build/Cloud/Models/Platform/SecretConfig.cs b/src/VirtoCommerce.Build/Cloud/Models/Platform/SecretConfig.cs deleted file mode 100644 index 4b7ab4f..0000000 --- a/src/VirtoCommerce.Build/Cloud/Models/Platform/SecretConfig.cs +++ /dev/null @@ -1,9 +0,0 @@ -namespace Cloud.Models.Platform -{ - public class SecretConfig : HelmParameter - { - public SecretConfig(string name, string value) : base(false, $"platform.secret_config.{name}", value) - { - } - } -} diff --git a/src/VirtoCommerce.Build/Cloud/Models/Platform/Tier.cs b/src/VirtoCommerce.Build/Cloud/Models/Platform/Tier.cs deleted file mode 100644 index c3169b6..0000000 --- a/src/VirtoCommerce.Build/Cloud/Models/Platform/Tier.cs +++ /dev/null @@ -1,9 +0,0 @@ -namespace Cloud.Models.Platform -{ - public class Tier : HelmParameter - { - public Tier(string value) : base(false, "platform.tier", value) - { - } - } -} diff --git a/src/VirtoCommerce.Build/Cloud/Models/Storefront/Config.cs b/src/VirtoCommerce.Build/Cloud/Models/Storefront/Config.cs deleted file mode 100644 index 3be09f0..0000000 --- a/src/VirtoCommerce.Build/Cloud/Models/Storefront/Config.cs +++ /dev/null @@ -1,9 +0,0 @@ -namespace Cloud.Models.Storefront -{ - public class Config : HelmParameter - { - public Config(string name, string value) : base(false, $"storefront.config.{name}", value) - { - } - } -} diff --git a/src/VirtoCommerce.Build/Cloud/Models/Storefront/ImageRepository.cs b/src/VirtoCommerce.Build/Cloud/Models/Storefront/ImageRepository.cs deleted file mode 100644 index 323129f..0000000 --- a/src/VirtoCommerce.Build/Cloud/Models/Storefront/ImageRepository.cs +++ /dev/null @@ -1,9 +0,0 @@ -namespace Cloud.Models.Storefront -{ - public class ImageRepository : HelmParameter - { - public ImageRepository(string value) : base(false, "storefront.image.repository", value) - { - } - } -} diff --git a/src/VirtoCommerce.Build/Cloud/Models/Storefront/ImageTag.cs b/src/VirtoCommerce.Build/Cloud/Models/Storefront/ImageTag.cs deleted file mode 100644 index 6bac1bc..0000000 --- a/src/VirtoCommerce.Build/Cloud/Models/Storefront/ImageTag.cs +++ /dev/null @@ -1,9 +0,0 @@ -namespace Cloud.Models.Storefront -{ - public class ImageTag : HelmParameter - { - public ImageTag(string value) : base(false, "storefront.image.tag", value) - { - } - } -} diff --git a/src/VirtoCommerce.Build/Cloud/Models/Storefront/IngressHostname.cs b/src/VirtoCommerce.Build/Cloud/Models/Storefront/IngressHostname.cs deleted file mode 100644 index 998c60c..0000000 --- a/src/VirtoCommerce.Build/Cloud/Models/Storefront/IngressHostname.cs +++ /dev/null @@ -1,9 +0,0 @@ -namespace Cloud.Models.Storefront -{ - public class IngressHostname : HelmParameter - { - public IngressHostname(string value) : base(false, $"ingress.storefront_hostname", value) - { - } - } -} diff --git a/src/VirtoCommerce.Build/Cloud/Models/Storefront/SecretConfig.cs b/src/VirtoCommerce.Build/Cloud/Models/Storefront/SecretConfig.cs deleted file mode 100644 index 9252884..0000000 --- a/src/VirtoCommerce.Build/Cloud/Models/Storefront/SecretConfig.cs +++ /dev/null @@ -1,9 +0,0 @@ -namespace Cloud.Models.Storefront -{ - public class SecretConfig : HelmParameter - { - public SecretConfig(string name, string value) : base(false, $"storefront.secret_config.{name}", value) - { - } - } -} diff --git a/src/VirtoCommerce.Build/Cloud/Models/Storefront/ThemeName.cs b/src/VirtoCommerce.Build/Cloud/Models/Storefront/ThemeName.cs deleted file mode 100644 index 272617f..0000000 --- a/src/VirtoCommerce.Build/Cloud/Models/Storefront/ThemeName.cs +++ /dev/null @@ -1,9 +0,0 @@ -namespace Cloud.Models.Storefront -{ - public class ThemeName : HelmParameter - { - public ThemeName(string value) : base(false, $"theme.name", value) - { - } - } -} diff --git a/src/VirtoCommerce.Build/Cloud/Models/Storefront/ThemeUrl.cs b/src/VirtoCommerce.Build/Cloud/Models/Storefront/ThemeUrl.cs deleted file mode 100644 index b04c3bd..0000000 --- a/src/VirtoCommerce.Build/Cloud/Models/Storefront/ThemeUrl.cs +++ /dev/null @@ -1,9 +0,0 @@ -namespace Cloud.Models.Storefront -{ - public class ThemeUrl : HelmParameter - { - public ThemeUrl(string value) : base(false, $"theme.url", value) - { - } - } -}