Skip to content

Instantly share code, notes, and snippets.

View RytisLT's full-sized avatar

Rytis Ilciukas RytisLT

  • Bayreuth, Germany
View GitHub Profile
@RytisLT
RytisLT / bitnami_legacy.sh
Created October 7, 2025 13:41
change image repos from bitnami to bitnami legacy
NS=your-namespace
for res in $(kubectl -n "$NS" get sts,deploy -o name); do
echo "Processing $res..."
kubectl -n "$NS" get "$res" -o yaml \
| yq '
(.spec.template.spec.containers[]?.image |= sub("/bitnami/", "/bitnamilegacy/"))
|
(.spec.template.spec.initContainers[]?.image |= sub("/bitnami/", "/bitnamilegacy/"))
' \
| kubectl -n "$NS" apply -f -