Skip to content

Instantly share code, notes, and snippets.

@MikaelElkiaer
Created May 26, 2020 12:32
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save MikaelElkiaer/c5be3e8579ff68a1a4c111fe4de12f73 to your computer and use it in GitHub Desktop.
Save MikaelElkiaer/c5be3e8579ff68a1a4c111fe4de12f73 to your computer and use it in GitHub Desktop.
Get current and available images
fluxctl list-images -w kube-system:deployment/sealed-secrets-controller -o json -l 0 | jq -r '.[].Containers[].Available[].ID' | grep 'v.\...\..$'
rg "kind: Deployment" -l | xargs -I _ yq -r 'select( .kind == "Deployment") | .spec.template.spec.containers[].image' _
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment