Non qualified class can not be rendered
megian opened this issue · 1 comments
megian commented
After upgrading to Kapitan 0.29.5 not fully qualified classes can not be included:
Inventory reclass error: ->
Inventory Queries:
-> cluster
In yaml_fs://syn/commodore/inventory/classes/cluster/common.yml
Class .eks.yaml not found under yaml_fs://syn/commodore/inventory/classes
Traceback (most recent call last):
File "/.cache/pypoetry/virtualenvs/commodore-OTSHtTTz-py3.9/lib/python3.9/site-packages/kapitan/reclass/reclass/storage/memcache_proxy.py", line 51, in get_class
return self._classes_cache[environment][name]
KeyError: '.eks.yaml'
Steps to Reproduce the Problem
- Run the catalog compile using Kapitan 0.29.5 while including a class using
.${facts:distribution}
megian commented
Changing the class to a full qualified reference and the compilation does work again ${cluster:tenant}.${facts:distribution}
.