In atmos inheritance do maps get merged and list d...
# atmos
p
In atmos inheritance do maps get merged and list do not? for example I have a list in a catalog file component that looks like this :
Copy code
subnets:
  - a
  - b
  - c
In the same file we have a map
Copy code
role_assignments:
   "pepe"
       - "super admin"
    john:
       - "not admin:
and in my component I have
Copy code
pepe:
   metadata.....(inherits the catalog file mentioned)
   vars:
       subnets: []
       role_assignments: {}
and when I do describe affected I see the
subnets
as en empty list and the
role_assignments
map get merged instead was this a bug in a version or this was always the behavior? I'm a bit confused because I always thought you could overwrite anything on a component.
e
There’s a setting you can change globally for atmos how to handle lists
p
my goal is to override maps
e
Oh, so not to merge maps?
p
correct
e
Not supported today, but I wouln’t rule it out for the future
We are adding
!append
and can introduce
!replace
p
so this was always the default behavior?
e
Yes maps deep merging is a fundamental design of atmos
No exceptions exist today as far as I am aware
p
ok, no worries