Skip to content

Commit

Permalink
Set up core-infra stack
Browse files Browse the repository at this point in the history
This will add a service context for the management cluster, but could also provision other infra like dns, etc
  • Loading branch information
michaeljguarino committed Dec 17, 2024
1 parent 402cd15 commit 0bc67d3
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion pkg/up/generate.go
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ func (ctx *Context) Generate() (dir string, err error) {
return
}

if err = git.PathClone("https://github.com/pluralsh/bootstrap.git", "main", dir); err != nil {
if err = git.PathClone("https://github.com/pluralsh/bootstrap.git", "add-core-infra-stack", dir); err != nil {
return
}

Expand Down Expand Up @@ -64,6 +64,7 @@ func (ctx *Context) Generate() (dir string, err error) {
copies := []templatePair{
{from: ctx.path("terraform/modules/clusters"), to: "terraform/modules/clusters"},
{from: ctx.path(fmt.Sprintf("terraform/clouds/%s", prov)), to: "terraform/mgmt/cluster"},
{from: ctx.path(fmt.Sprintf("terraform/core-infra/%s", prov)), to: "terraform/core-infra"},
{from: ctx.path("setup"), to: "bootstrap"},
{from: ctx.path("templates"), to: "templates"},
{from: ctx.path("resources"), to: "resources"},
Expand All @@ -90,6 +91,7 @@ func (ctx *Context) Generate() (dir string, err error) {
overwrites := []templatePair{
{from: "bootstrap/setup.yaml", to: "bootstrap/setup.yaml"},
{from: "bootstrap/pr-automation", to: "bootstrap/pr-automation"},
{from: "bootstrap/stacks/core-infra.yaml", to: "bootstrap/stacks/core-infra.yaml"},
}

for _, tpl := range overwrites {
Expand Down

0 comments on commit 0bc67d3

Please sign in to comment.