Skip to content

Commit 81e6edc

Browse files
author
Bob Furu
authored
Merge pull request #30937 from bobfuru/ISSUE-29927
2 parents a89756c + aca293b commit 81e6edc

File tree

1 file changed

+12
-4
lines changed

1 file changed

+12
-4
lines changed

modules/persistent-storage-local-install.adoc

Lines changed: 12 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,15 @@ Once finished, the Local Storage Operator will be listed in the *Installed Opera
5656
.From the CLI
5757
. Install the Local Storage Operator from the CLI.
5858

59+
.. Run the following command to get the {product-title} major and minor version. It is required for the `channel` value in the next
60+
step.
61+
+
62+
[source,terminal]
63+
----
64+
$ OC_VERSION=$(oc version -o yaml | grep openshiftVersion | \
65+
grep -o '[0-9]*[.][0-9]*' | head -1)
66+
----
67+
5968
.. Create an object YAML file to define an Operator group and subscription for the Local Storage Operator,
6069
such as `openshift-local-storage.yaml`:
6170
+
@@ -77,14 +86,13 @@ metadata:
7786
name: local-storage-operator
7887
namespace: openshift-local-storage
7988
spec:
80-
channel: <channel_version> <1>
81-
installPlanApproval: Automatic <2>
89+
channel: "${OC_VERSION}"
90+
installPlanApproval: Automatic <1>
8291
name: local-storage-operator
8392
source: redhat-operators
8493
sourceNamespace: openshift-marketplace
8594
----
86-
<1> This field can be edited to match your release selection of {product-title}.
87-
<2> The user approval policy for an install plan.
95+
<1> The user approval policy for an install plan.
8896

8997
. Create the Local Storage Operator object by entering the following command:
9098
+

0 commit comments

Comments
 (0)