lukasjarosch / skipper

Inventory based templated configuration library inspired by the kapitan project
https://lukasjarosch.github.io/skipper/
MIT License
11 stars 3 forks source link

Class local variable references do not work anymore #41

Closed lukasjarosch closed 1 year ago

lukasjarosch commented 1 year ago

Given the following class

---
names:
  state_resource_group: "rg-${target_name}-terraform"
  state_storage_account: 
    name: "${target_name}terraformstate"
    container_name: ${names:state_resource_group}

Using the state_storage_account.container_name value results in <nil>. Absolute referencing still works.

lukasjarosch commented 1 year ago

Update: I was actually not referencing this correctly. The correct local reference would've been ${state_resource_group}. But it turns out that also allowing the 'full local reference' (including the class root key) is something which we can easily support.