2025-01-03 08:00:00
Today I found myself needing to configure ingress-nginx. I needed to write a bit of nginx config to rewrite status codes for certain routes. Something like nginx.ingress.kubernetes.io/configuration-snippet: |- location /metrics { return 404; } I’ve done this many times in the past, but today I received the following error Error: UPGRADE FAILED: cannot patch "xyz" with kind Ingress: admission webhook "validate.nginx.ingress.kubernetes.io" denied the request: annotation group ConfigurationSnippet contains risky annotation based on ingress configuration I already had allowSnippetAnnotations: true set, so this was confusing! It turns out, in a recent release (controller 1.12), annotations are flagged by risk.
2024-11-27 08:00:00
Prevent pushing to “main” locally with this git config snippet. It doesn’t rely on setting up the remote branch protections, though you should also do that.
2024-10-28 08:00:00
Checking the state of individual kubernetes components - such as etcd.
2024-10-07 08:00:00
If you’d like to enable the devtools/inspector in a Tauri project, enable the “devtools” flag tauri = { version = "2.0.0", features = ["tray-icon", "devtools"] ...
2024-09-13 08:00:00
I’ve been working on a desktop app with Tauri, and had issues for a while with the “draggable” prop on some elements. Instead of them dragging as I expected, I’d just get a plus icon.
2024-07-30 08:00:00
It’s pretty common that I’ll accidentally use the wrong email for a commit. I have a few emails that I like to use for different purposes, so getting it correct is important :) Amend author of last commit This one is nice and easy! git commit --amend --author="Example Name