1 parent b66c236 commit 87ae31fCopy full SHA for 87ae31f
1 file changed
openshift/openshift-virtualization.rst
@@ -359,7 +359,9 @@ Create the cluster policy using the CLI:
359
360
.. code-block:: console
361
362
- $ oc get csv -n nvidia-gpu-operator gpu-operator-certified.v22.9.0 -ojsonpath={.metadata.annotations.alm-examples} | jq .[0] > clusterpolicy.json
+ $ oc get csv -n nvidia-gpu-operator $STARTING_CSV -o jsonpath='{.metadata.annotations.alm-examples}' | jq -r 'map(select(.kind == "ClusterPolicy")) | .[0]' > clusterpolicy.json
363
+
364
+ .. note:: ``$STARTING_CSV`` is the value of the ``startingCSV`` field in the ``Subscription`` CR created in the :ref:`install-gpu-ocp` section.
365
366
#. Modify the ``clusterpolicy.json`` file as follows:
367
0 commit comments