kapicorp / kapitan

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

[bug]: Performance regression in v0.33.1 #1174

Open sodul opened 2 months ago

sodul commented 2 months ago

Description of the bug

kapicorp/kapitan:0.33.1 is significantly slower than 0.33.0 when compiling.

Steps to reproduce

> docker run --rm --user=0 -v "$(pwd)/kapitan:/src" 'kapicorp/kapitan:0.33.1' compile

This completes in 6m while it takes 30s or less with v0.33.0.



### What happened?

We upgraded to 0.33.1. Nothing else is different.

### Additional context

Unfortunately we cannot share our source files but we assume that this issue is common enough and should be easy to reproduce.

Note the versions fields for kapitan and Python below are out of date so I put 'master'.

### Version (kapitan)

master

### Version (kapitan)

I use kapitan directly (pip, docker)

### Python virtual environment

- [X] pyenv
- [ ] venv
- [ ] no environment

### OS information

macOS 14, M1 CPU

### Relevant log output

_No response_