Repository navigation
Update atmos describe affected command - #1267
Merged
Merged
Conversation
| sectionName string, | ||
| ) bool { | ||
| if remoteStackSection, ok := remoteStacks[localStackName].(map[string]any); ok { | ||
| if remoteStackSection, ok := (*remoteStacks)[localStackName].(map[string]any); ok { |
Check warning
Code scanning / golangci-lint
`if ok` has complex nested blocks (complexity: 15)
Contributor
|
Warning This PR exceeds the recommended limit of 1,000 lines.Large PRs are difficult to review and may be rejected due to their size. Please verify that this PR does not address multiple issues. |
Erik Osterman (Cloud Posse) (osterman)
approved these changes
May 26, 2025
Erik Osterman (Cloud Posse) (osterman)
approved these changes
May 26, 2025
|
These changes were released in v1.177.0. |
This was referenced Sep 5, 2025
This was referenced Feb 8, 2026
Merged
This branch was successfully deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
what
atmos describe affectedcommandaffected_allattribute to the output ofatmos describe affectedto show all component sections and attributes that were changedwhy
Improve usage of the
atmos describe affectedcommand in CI/CD, e.g. GitHub actionsaffected_allwill allow detecting everything that was changed for a component in a stack (including Terraform configurations/components/modules) and ack on the changesFor example, if you make changes to the
varsandsettingssections of the componentcomponent-1in thenonprodstack, and executeatmos describe affected, you will get the following result:[ { "component": "component-1", "component_type": "terraform", "stack": "nonprod", "stack_slug": "nonprod-component-1", "affected": "stack.vars", "affected_all": [ "stack.vars", "stack.settings" ] } ]If you create a new Terraform/Tofu component, configure a new Atmos component
component-1in thenonprodstack, and executeatmos describe affected, you will get the following result:[ { "component": "component-1", "component_type": "terraform", "stack": "nonprod", "stack_slug": "nonprod-component-1", "affected": "stack.metadata", "affected_all": [ "component", "stack.metadata", "stack.vars", "stack.env", "stack.settings" ] } ]where:
affectedshows that the Atmos component'smetadatasection was changed(since the component is new and the
metadatasection is the first section that Atmos processes)affected_allshows all the affected sections and attributes:component- the Terraform component (Terraform configuration) was affected (since it was just added)stack.metadata- the Atmos component'smetadatasection was changedstack.vars- the Atmos component'svarssection was changedstack.env- the Atmos component'senvsection was changedstack.settings- the Atmos component'ssettingssection was changedSummary by CodeRabbit
New Features
affected_all, to the output of thedescribe affectedcommand, providing a list of all changed sections for affected components and stacks.Bug Fixes
Documentation
affected_allattribute, with revised examples and clarifications.Tests
describe affectedcommand to verify correct behavior and output.Refactor