Skip to content

Instantly share code, notes, and snippets.

View chr0n1x's full-sized avatar
🤘

Kevin R. chr0n1x

🤘
View GitHub Profile
@chr0n1x
chr0n1x / k8s-ns-diff.bash
Last active August 27, 2025 19:27
generate a pretty diff between what a helm chart will generate, vs what's live in a namespace
#!/bin/bash
# Designed to be run INSIDE of a helm chart directory
# and that you have already run `helm dep up`
#
# Requires delta for diffs (cause it's pwetty :3)
# https://dandavison.github.io/delta/
#
# this also already assumes that you have properly set up KUBECONFIG, kubectx, and kubens
# so that we can fetch resources that are live via kubectl