Skip to content

Commit

Permalink
feat: add eks to infra option (#49)
Browse files Browse the repository at this point in the history
  • Loading branch information
saulfrance authored Oct 7, 2024
1 parent 1bdad48 commit c7b063b
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 4 deletions.
1 change: 1 addition & 0 deletions docs/usage/commands/interactive.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -125,6 +125,7 @@ Which type of infrastructure is required?
* ACA
* AKS
* Data
* EKS
| infra | aks | `input.project[0].framework.type`

Expand Down
8 changes: 8 additions & 0 deletions internal/config/staticFiles/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
8 changes: 4 additions & 4 deletions pkg/config/stacks_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down Expand Up @@ -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()
Expand Down Expand Up @@ -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,
},
{
Expand Down

0 comments on commit c7b063b

Please sign in to comment.