From c7b063ba21b59c194335a2dbf327c981a5adb042 Mon Sep 17 00:00:00 2001 From: Saul France Date: Mon, 7 Oct 2024 11:26:05 +0100 Subject: [PATCH] feat: add eks to infra option (#49) --- docs/usage/commands/interactive.adoc | 1 + internal/config/staticFiles/config.yml | 8 ++++++++ pkg/config/stacks_test.go | 8 ++++---- 3 files changed, 13 insertions(+), 4 deletions(-) diff --git a/docs/usage/commands/interactive.adoc b/docs/usage/commands/interactive.adoc index aef683e..f4da46c 100644 --- a/docs/usage/commands/interactive.adoc +++ b/docs/usage/commands/interactive.adoc @@ -125,6 +125,7 @@ Which type of infrastructure is required? * ACA * AKS * Data +* EKS | infra | aks | `input.project[0].framework.type` diff --git a/internal/config/staticFiles/config.yml b/internal/config/staticFiles/config.yml index a548f17..6b64ff6 100644 --- a/internal/config/staticFiles/config.yml +++ b/internal/config/staticFiles/config.yml @@ -113,6 +113,14 @@ stacks: url: https://github.com/Ensono/stacks-infrastructure-aca/ version: main type: git + + infra_eks: + group: infra + name: eks + package: + url: https://github.com/Ensono/stacks-infrastructure-eks/ + version: main + type: git help: root: "https://stacks.ensono.com/docs/stackscli/usage" diff --git a/pkg/config/stacks_test.go b/pkg/config/stacks_test.go index a98ac1b..59fa480 100644 --- a/pkg/config/stacks_test.go +++ b/pkg/config/stacks_test.go @@ -93,7 +93,7 @@ func setupTestCase(t *testing.T, configuration []byte) (func(t *testing.T), stri func TestStacksComponents(t *testing.T) { - var expected int = 10 + var expected int = 11 config := Config{} config.Init() @@ -128,7 +128,7 @@ func TestStacksComponents(t *testing.T) { } func TestOverriddenStacksComponents(t *testing.T) { - var expected int = 12 + var expected int = 13 config := Config{} config.Init() @@ -281,12 +281,12 @@ func TestGetComponentOptionsDefault(t *testing.T) { }, { "infra", - []string{"aca", "aks", "data"}, + []string{"aca", "aks", "data", "eks"}, false, }, { "infra", - []string{"aca", "aks", "data", "keyvault"}, + []string{"aca", "aks", "data", "eks", "keyvault"}, true, }, {