Skip to content

Commit

Permalink
feat: add depends on for module array
Browse files Browse the repository at this point in the history
  • Loading branch information
zackhee997 committed Apr 23, 2024
1 parent 9cdba63 commit 87ba87d
Showing 1 changed file with 11 additions and 10 deletions.
21 changes: 11 additions & 10 deletions config/v2/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -230,15 +230,16 @@ type Env struct {
type Component struct {
Common `yaml:",inline"`

EKS *EKSConfig `yaml:"eks,omitempty"`
Kind *ComponentKind `yaml:"kind,omitempty"`
ModuleSource *string `yaml:"module_source,omitempty"`
ModuleName *string `yaml:"module_name,omitempty"`
ModuleForEach *string `yaml:"module_for_each,omitempty"`
ProvidersMap map[string]string `yaml:"module_providers,omitempty"`
Variables []string `yaml:"variables,omitempty"`
Outputs []string `yaml:"outputs,omitempty"`
Modules []ComponentModule `yaml:"modules,omitempty"`
EKS *EKSConfig `yaml:"eks,omitempty"`
Kind *ComponentKind `yaml:"kind,omitempty"`
ModuleSource *string `yaml:"module_source,omitempty"`
ModuleName *string `yaml:"module_name,omitempty"`
ModuleForEach *string `yaml:"module_for_each,omitempty"`
ModuleDependsOn []string `yaml:"module_depends_on,omitempty"`
ProvidersMap map[string]string `yaml:"module_providers,omitempty"`
Variables []string `yaml:"variables,omitempty"`
Outputs []string `yaml:"outputs,omitempty"`
Modules []ComponentModule `yaml:"modules,omitempty"`
}

type ComponentModule struct {
Expand All @@ -260,7 +261,7 @@ type ComponentModule struct {
ProvidersMap map[string]string `yaml:"providers,omitempty"`
// For Each metadata argument https://developer.hashicorp.com/terraform/language/modules/syntax#meta-arguments
ForEach *string `yaml:"for_each,omitempty"`
//
// Dependencies of this module
DependsOn []string `yaml:"depends_on,omitempty"`
}

Expand Down

0 comments on commit 87ba87d

Please sign in to comment.