kapitan icon indicating copy to clipboard operation
kapitan copied to clipboard

kadet: Multiple calls to inventory() fetch incorrect inventory

Open ademariag opened this issue 4 years ago • 3 comments

Describe the bug/feature Multiple calls to inventory() fetch the incorrect inventory

inv = inventory()
inv = inventory()
inv = inventory()

will fetch an incorrect inventory (as in, for a different target) every time it is called. *** this bug only seem to affect running within any docker running under macs (i.e. including virtualised vms running docker)

To Reproduce

Checkout and run kapitan

git clone --branch bug_for_668 https://github.com/ademariag/kapitan-reference.git
cd kapitan-reference
./kapitan compile

notice the mismatch between the namespace and the target name (it should be instead the same as the directory i.e. in the example below it should be dev-sockshop

git diff

[cut]
--- a/compiled/dev-sockshop/manifests/catalogue-bundle.yml
+++ b/compiled/dev-sockshop/manifests/catalogue-bundle.yml
@@ -76,7 +76,7 @@ metadata:
     app.kubernetes.io/part-of: sock-shop
     name: catalogue
   name: catalogue
-  namespace: echo-server
+  namespace: gke-pvm-killer

Expected behavior correct inventory fetched each time.

ademariag avatar Dec 13 '20 19:12 ademariag

@ramaro this is effectively fixed in kapitan 0.31, right?

rjmco avatar Mar 07 '23 15:03 rjmco

@rjmco yes, but this needs confirmation

ramaro avatar Mar 07 '23 15:03 ramaro