kapitan
kapitan copied to clipboard
kadet: Multiple calls to inventory() fetch incorrect inventory
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.
@ramaro this is effectively fixed in kapitan 0.31, right?
@rjmco yes, but this needs confirmation