Does describe-affected `"ignores"` components with...
# atmos
p
Does describe-affected
"ignores"
components with
metadata.locked: true
? And if it does, does it ignore the dependencies?
a
describe affected
does not take
metadata.locked
into account (when it was implemented,
describe affected
was not updated). It does not process
abstract
and disabled components (https://atmos.tools/core-concepts/stacks/define-components/#disabling-components-with-metadataenabled) for absract and disabled, it does not process the components nor their dependencies
p
it would be nice if you lock a component and that component is a dependency then it can ignore it and same with describe dependants etc.
a
if you set
metadata.enabled: false
, the component will not be processed at all and not returned in the affected list. you want the same behavior for
metadata.locked: true
?
p
yes, the reason behind is that when you share a monorepo with services and you manage core infra in the iac monorepo but service infra is on the service repo, when you bring over the iac infra ( since is needed for outputs) using vendoring to the service repo then describe-affected and other will think that there all dependants changed but in reality only the service changed
our pipelines are a bit special
so to avoid any changes we enable lock on core components to avoid updates
a
ok, we can exclude locked components from
describe affected
@Gabriela Campana (Cloud Posse) please create a task for Atmos:
Copy code
Exclude locked components (metadata.locked: true) from `describe affected`
✅ 1
g