Skip to content

Commit

Permalink
Add integrations.github to atmos.yaml (#538)
Browse files Browse the repository at this point in the history
* Add `integrations.gitops` to `atmos.yaml`

* Update pkg/schema/schema.go

Co-authored-by: Erik Osterman (CEO @ Cloud Posse) <[email protected]>

---------

Co-authored-by: Erik Osterman (CEO @ Cloud Posse) <[email protected]>
  • Loading branch information
aknysh and osterman authored Feb 14, 2024
1 parent f355719 commit a22fa0a
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 7 deletions.
2 changes: 1 addition & 1 deletion examples/quick-start/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ ARG GEODESIC_OS=debian
# https://atmos.tools/
# https://github.com/cloudposse/atmos
# https://github.com/cloudposse/atmos/releases
ARG ATMOS_VERSION=1.62.0
ARG ATMOS_VERSION=1.63.0

# Terraform: https://github.com/hashicorp/terraform/releases
ARG TF_VERSION=1.7.3
Expand Down
2 changes: 1 addition & 1 deletion internal/exec/describe_config.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ func ExecuteDescribeConfigCmd(cmd *cobra.Command, args []string) error {
return err
}

cliConfig, err := cfg.InitCliConfig(info, true)
cliConfig, err := cfg.InitCliConfig(info, false)
if err != nil {
return err
}
Expand Down
11 changes: 6 additions & 5 deletions pkg/schema/schema.go
Original file line number Diff line number Diff line change
Expand Up @@ -282,16 +282,17 @@ type CommandComponentConfig struct {
// Integrations

type Integrations struct {
Atlantis Atlantis `yaml:"atlantis" json:"atlantis" mapstructure:"atlantis"`
Atlantis Atlantis `yaml:"atlantis,omitempty" json:"atlantis,omitempty" mapstructure:"atlantis"`
GitHub map[string]any `yaml:"github,omitempty" json:"github,omitempty" mapstructure:"github"`
}

// Atlantis integration

type Atlantis struct {
Path string `yaml:"path" json:"path" mapstructure:"path"`
ConfigTemplates map[string]AtlantisRepoConfig `yaml:"config_templates" json:"config_templates" mapstructure:"config_templates"`
ProjectTemplates map[string]AtlantisProjectConfig `yaml:"project_templates" json:"project_templates" mapstructure:"project_templates"`
WorkflowTemplates map[string]any `yaml:"workflow_templates" json:"workflow_templates" mapstructure:"workflow_templates"`
Path string `yaml:"path,omitempty" json:"path,omitempty" mapstructure:"path"`
ConfigTemplates map[string]AtlantisRepoConfig `yaml:"config_templates,omitempty" json:"config_templates,omitempty" mapstructure:"config_templates"`
ProjectTemplates map[string]AtlantisProjectConfig `yaml:"project_templates,omitempty" json:"project_templates,omitempty" mapstructure:"project_templates"`
WorkflowTemplates map[string]any `yaml:"workflow_templates,omitempty" json:"workflow_templates,omitempty" mapstructure:"workflow_templates"`
}

type AtlantisRepoConfig struct {
Expand Down

0 comments on commit a22fa0a

Please sign in to comment.