small-hack / smol-k8s-lab

☁️ CLI & TUI with a smol friendly vibe to get started with Kubernetes on metal, then bootstrap apps using Argo CD 🧸 Great for testing webapps and benchmarking.
https://small-hack.github.io/smol-k8s-lab/
GNU Affero General Public License v3.0
12 stars 1 forks source link

🐛 Netmaker fails to refresh BW secrets on subsequent runs if already installed #190

Closed cloudymax closed 3 months ago

cloudymax commented 3 months ago

Describe the Bug

Netmaker installs cleanly on the first pass, however if you run smol-k8s-lab again netmaker can cause a crash in the following ways:

  1. Netmaker gets confused by the existing Zitadel apps and cannot return properly when checking roles/grants

  2. Netmake will fail to update the BW secrets if the smol-k8s config has been edited between runs

The current workaround is to uninstall the netmaker appset, clear the PVCs, then delete the zitadel app and role.

Steps to Reproduce Bug

  1. Run smol-k8s-lab with netmaker enabled on a system where netmaker is not yet installed

  2. Run smol-k8s-lab again

Expected behavior

The BW secrets should be updated if needed, and zitadel whould be gracefully skipped if it already exists

User info (please complete the following information):