Skip to content

Instantly share code, notes, and snippets.

@tnozicka
Created April 12, 2019 14:17
Show Gist options
  • Save tnozicka/b6e020e967295359eaf6ed15be62aea4 to your computer and use it in GitHub Desktop.
Save tnozicka/b6e020e967295359eaf6ed15be62aea4 to your computer and use it in GitHub Desktop.
oc get secret -A -o json | jq -r '.items[] | select(.metadata.annotations."auth.openshift.io/certificate-not-after"!=null) | select(.metadata.name|test("-[0-9]+$")|not) | "\(.metadata.namespace) \(.metadata.name) \(.metadata.annotations."auth.openshift.io/certificate-not-after")"' | column -t
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment