Skip to content

Instantly share code, notes, and snippets.

@jgato
Created December 4, 2023 16:29
Show Gist options
  • Save jgato/3bcc68cefd78767d147fe72611037f21 to your computer and use it in GitHub Desktop.
Save jgato/3bcc68cefd78767d147fe72611037f21 to your computer and use it in GitHub Desktop.
ZTP Tips and Tricks
# get all the policies ordered by ztp-wave:
$> oc -n <CLUSTER_NAME> get policies -o json | jq -r '.items[] | "Policy: " + .metadata.name + " on wave: " + .metadata.annotations."ran.openshift.io/ztp-deploy-wave"' | sort -g -t ":" -k 3
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment