Skip to content
Snippets Groups Projects
  • Christophe de Vienne's avatar
    1875a33eb32b
    Implement variable overlay with dotted paths · 1875a33eb32b
    Christophe de Vienne authored
    If an overlay variable has a dotted name, it is used as a path to patch
    a nested value in the original variable.
    
    For instance, given the following original variables:
    
    variables:
      d:
        a: value
        b: other
    
    A config overlay can change the 'a' value without touching the other 'd'
    attributes :
    
    variables:
      d.a: new value
    
    
    The resulting variables would be :
    
    variables:
      d:
        a: new value
        b: other
    1875a33eb32b
    History
    Implement variable overlay with dotted paths
    Christophe de Vienne authored
    If an overlay variable has a dotted name, it is used as a path to patch
    a nested value in the original variable.
    
    For instance, given the following original variables:
    
    variables:
      d:
        a: value
        b: other
    
    A config overlay can change the 'a' value without touching the other 'd'
    attributes :
    
    variables:
      d.a: new value
    
    
    The resulting variables would be :
    
    variables:
      d:
        a: new value
        b: other
config.go 17.39 KiB