kapicorp / kapitan

Generic templated configuration management for Kubernetes, Terraform and other things
https://kapitan.dev
Apache License 2.0
1.8k stars 197 forks source link

bad argument type for built-in operation #634

Open metacoma opened 3 years ago

metacoma commented 3 years ago

Describe the bug/feature The map definition in kapitan.vars leads to error with an incomprehensible description

To Reproduce Steps to reproduce the behavior:

  1. git clone --depth 1 -b pr-for-demonstrate-map-error https://github.com/metacoma/kapitan.git
  2. cd kapitan/examples/kubernetes/
  3. kapitan compile -t labels

Expected behavior Target "lables" compiled successfully

Screenshots

Jsonnet error: failed to compile kubernetes/components/namespace/main.jsonnet:                                                               
bad argument type for built-in operation                                                                                                                                        
Compile error: failed to compile target: labels      

If it's a bug (please complete the following information):

Additional context

$ kapitan --version
0.29.3
ramaro commented 3 years ago

@metacoma thanks reporting! Is this kapitan installed from master or pip?

metacoma commented 3 years ago

@metacoma thanks reporting! Is this kapitan installed from master or pip?

Hey @ramaro ! From pip

github-actions[bot] commented 2 weeks ago

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.