Skip to content

Instantly share code, notes, and snippets.

@cdoan1
Created July 16, 2020 18:54
Show Gist options
  • Save cdoan1/3d88aa9656f1a73b2f47bd039596e83c to your computer and use it in GitHub Desktop.
Save cdoan1/3d88aa9656f1a73b2f47bd039596e83c to your computer and use it in GitHub Desktop.
get the version of RHACM or OCM deployment
#!/bin/bash
# right now, the best way to correlate a deployment to version
# is through the mch pod image digest
oc get deployment multiclusterhub-operator \
-n open-cluster-management \
-o jsonpath='{.spec.template.spec.containers[].image}'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment