This is will be a shorter post, but still somewhat interesting I guess.
I figured it’d be interesting to get updates about my kubernetes cluster in my discord, with a few friends of mine. Flux, the continuous deployment software I run, supports this natively, so it was as simple as making a webhook into a secret, adding the discord alert provider, and configuring an alert. Easy peasy, got it working with little issue. However, I saw the already-running apps get reconfigured. No biggie, I thought, since they’re probably just getting updated in the discord, and it won’t resend them.
Till it sent them again.
and again.
and again.
and so on.
Eventually I googled it, and found out that it was likely because my configs didn’t match the applications. Weird, but okay, let’s fix that.
It wasn’t a huge change, but I needed to change the namespace of my Kustomizations, which I had left at their defaults since I didn’t know better. Now, they’re fixed (and i’m not creating the same namespace in multiple places… oops), and I’m only getting alerts when new configs are pushed, or errors occur. So now, my shit is fixed, thanks to the fear of my friends bullying me for it being messed up.
Oh cool, github went down, so it’s sending the same error messages about git not being able to run. That’s fun.