Skip to content

Commit

Permalink
Replace templated kong2tf with recursive implementation
Browse files Browse the repository at this point in the history
  • Loading branch information
mheap committed Sep 8, 2024
1 parent 283b09a commit bf711da
Show file tree
Hide file tree
Showing 41 changed files with 1,391 additions and 1,003 deletions.
2 changes: 2 additions & 0 deletions kong2tf/builder.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ import (
)

type ITerraformBuilder interface {
buildControlPlaneVar(*file.Content, *string, bool)
buildServices(*file.Content, *string, bool)
buildRoutes(*file.Content, *string, bool)
buildGlobalPlugins(*file.Content, *string, bool)
Expand Down Expand Up @@ -33,6 +34,7 @@ func newDirector(builder ITerraformBuilder) *Director {

func (d *Director) builTerraformResources(content *file.Content, generateImportsForControlPlaneID *string, ignoreCredentialChanges bool) string {

d.builder.buildControlPlaneVar(content, generateImportsForControlPlaneID, ignoreCredentialChanges)
d.builder.buildGlobalPlugins(content, generateImportsForControlPlaneID, ignoreCredentialChanges)
d.builder.buildServices(content, generateImportsForControlPlaneID, ignoreCredentialChanges)
d.builder.buildUpstreams(content, generateImportsForControlPlaneID, ignoreCredentialChanges)
Expand Down
Loading

0 comments on commit bf711da

Please sign in to comment.