Skip to content

Commit 87ae31f

Browse files
authored
Remove hard-coded CSV in OpenShift Virt install docs (NVIDIA#359)
Signed-off-by: Michael Weiner <vikings412@gmail.com>
1 parent b66c236 commit 87ae31f

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

‎openshift/openshift-virtualization.rst‎

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -359,7 +359,9 @@ Create the cluster policy using the CLI:
359359

360360
.. code-block:: console
361361
362-
$ oc get csv -n nvidia-gpu-operator gpu-operator-certified.v22.9.0 -ojsonpath={.metadata.annotations.alm-examples} | jq .[0] > clusterpolicy.json
362+
$ 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.
363365

364366
#. Modify the ``clusterpolicy.json`` file as follows:
365367

0 commit comments

Comments
 (0)