The deep_get function in utils is filtering globbing names in a buggy way. The function is supposed to filter a name containing wildcard * (at the end) by searching if the dictionary has a key starting with the name. But instead, it searches for the name in the whole key.
To Reproduce
Steps to reproduce the behavior:
Go to 'examples/kubernetes/inventory/targets/all-glob.yml'
In the parameter section add a parameter: development_naming: value_2l
open a terminal and navigate to examples/kubernetes
type kapitan searchvar parameters.naming*
Expected behavior
Should filter only those keys which start with the given name, instead of the keys which contain the globbing pattern.
Screenshots
If applicable, add screenshots to help explain your problem/idea.
This issue is stale because it has been open for 1 year with no activity.
Remove the stale label or comment if this issue is still relevant for you.
If not, please close it yourself.
The deep_get function in utils is filtering globbing names in a buggy way. The function is supposed to filter a name containing wildcard * (at the end) by searching if the dictionary has a key starting with the name. But instead, it searches for the name in the whole key.
To Reproduce Steps to reproduce the behavior:
development_naming: value_2l
examples/kubernetes
kapitan searchvar parameters.naming*
Expected behavior Should filter only those keys which start with the given name, instead of the keys which contain the globbing pattern.
Screenshots If applicable, add screenshots to help explain your problem/idea.
yml file
CLI