Skip to content

Commit 98ea60c

Browse files
authored
Merge pull request #44656 from abrennan89/CLIupdates
SRVCOM-1728: Update structure and abstracts for CLI / ref docs
2 parents dd1f3ba + 5f260bf commit 98ea60c

26 files changed

+185
-193
lines changed

_topic_maps/_topic_map.yml

Lines changed: 17 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -493,7 +493,7 @@ Dir: updating
493493
Distros: openshift-origin,openshift-enterprise
494494
Topics:
495495
- Name: Updating clusters overview
496-
File: index
496+
File: index
497497
- Name: Understanding OpenShift updates
498498
File: understanding-openshift-updates
499499
- Name: Understanding upgrade channels
@@ -3411,9 +3411,22 @@ Topics:
34113411
File: installing-knative-eventing
34123412
- Name: Removing OpenShift Serverless
34133413
File: removing-openshift-serverless
3414-
#- Name: Get started
3415-
# File: serverless-getting-started
3416-
# uncomment once new content is added for this
3414+
# Knative kn CLI
3415+
- Name: Knative CLI
3416+
Dir: cli_tools
3417+
Topics:
3418+
- Name: Installing the Knative CLI
3419+
File: installing-kn
3420+
- Name: Configuring the Knative CLI
3421+
File: advanced-kn-config
3422+
- Name: Knative CLI plug-ins
3423+
File: kn-plugins
3424+
- Name: Knative Serving CLI commands
3425+
File: kn-serving-ref
3426+
- Name: Knative Eventing CLI commands
3427+
File: kn-eventing-ref
3428+
- Name: Functions commands
3429+
File: kn-func-ref
34173430
- Name: Develop
34183431
Dir: develop
34193432
Topics:
@@ -3543,24 +3556,3 @@ Topics:
35433556
Topics:
35443557
- Name: Using NVIDIA GPU resources with serverless applications
35453558
File: gpu-resources
3546-
# CLI tools
3547-
- Name: CLI tools
3548-
Dir: cli_tools
3549-
Topics:
3550-
- Name: Installing the Knative CLI
3551-
File: installing-kn
3552-
- Name: Knative CLI advanced configuration
3553-
File: advanced-kn-config
3554-
- Name: Reference
3555-
Dir: reference
3556-
Topics:
3557-
- Name: Knative CLI flags
3558-
File: kn-flags-reference
3559-
- Name: Knative Serving CLI commands
3560-
File: kn-serving-ref
3561-
- Name: Knative Eventing CLI commands
3562-
File: kn-eventing-ref
3563-
- Name: Functions commands
3564-
File: kn-func-ref
3565-
- Name: kn event
3566-
File: kn-event-ref

_topic_maps/_topic_map_osd.yml

Lines changed: 13 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -242,6 +242,19 @@ Topics:
242242
File: installing-knative-eventing
243243
- Name: Removing OpenShift Serverless
244244
File: removing-openshift-serverless
245+
- Name: Knative CLI
246+
Dir: cli_tools
247+
Topics:
248+
- Name: Installing the Knative CLI
249+
File: installing-kn
250+
- Name: Configuring the Knative CLI
251+
File: advanced-kn-config
252+
- Name: Knative Serving CLI commands
253+
File: kn-serving-ref
254+
- Name: Knative Eventing CLI commands
255+
File: kn-eventing-ref
256+
- Name: Functions commands
257+
File: kn-func-ref
245258
- Name: Develop
246259
Dir: develop
247260
Topics:
@@ -349,26 +362,6 @@ Topics:
349362
File: serverless-functions-annotations
350363
- Name: Functions development reference guide
351364
File: serverless-functions-reference-guide
352-
- Name: CLI tools
353-
Dir: cli_tools
354-
Topics:
355-
- Name: Installing the Knative CLI
356-
File: installing-kn
357-
- Name: Knative CLI advanced configuration
358-
File: advanced-kn-config
359-
- Name: Reference
360-
Dir: reference
361-
Topics:
362-
- Name: Knative CLI flags
363-
File: kn-flags-reference
364-
- Name: Knative Serving CLI commands
365-
File: kn-serving-ref
366-
- Name: Knative Eventing CLI commands
367-
File: kn-eventing-ref
368-
- Name: Functions commands
369-
File: kn-func-ref
370-
- Name: kn event
371-
File: kn-event-ref
372365
---
373366
Name: Support
374367
Dir: support

modules/serverless-build-events-kn.adoc

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,13 @@
11
:_content-type: PROCEDURE
22
[id="serverless-build-events-kn_{context}"]
3-
= Building events
3+
= Building events by using the kn-event plug-in
44

55
You can use the builder-like interface of the `kn event build` command to build an event. You can then send that event at a later time or use it in another context.
66

7+
.Prerequisites
8+
9+
* You have installed the Knative (`kn`) CLI.
10+
711
.Procedure
812

913
* Build an event:
Lines changed: 53 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,53 @@
1+
// Module included in the following assemblies:
2+
//
3+
// * serverless/cli_tools/installing-kn.adoc
4+
5+
:_content-type: PROCEDURE
6+
[id="serverless-installing-cli-linux-rpm-package-manager_{context}"]
7+
= Installing the Knative CLI for Linux by using an RPM package manager
8+
9+
For {op-system-base-full}, you can install the Knative (`kn`) CLI as an RPM by using a package manager, such as `yum` or `dnf`. This allows the Knative CLI version to be automatically managed by the system. For example, using a command like `dnf upgrade` upgrades all packages, including `kn`, if a new version is available.
10+
11+
.Prerequisites
12+
13+
* You have an active {product-title} subscription on your Red Hat account.
14+
15+
.Procedure
16+
17+
. Register with Red Hat Subscription Manager:
18+
+
19+
[source,terminal]
20+
----
21+
# subscription-manager register
22+
----
23+
24+
. Pull the latest subscription data:
25+
+
26+
[source,terminal]
27+
----
28+
# subscription-manager refresh
29+
----
30+
31+
. Attach the subscription to the registered system:
32+
+
33+
[source,terminal]
34+
----
35+
# subscription-manager attach --pool=<pool_id> <1>
36+
----
37+
+
38+
<1> Pool ID for an active {product-title} subscription
39+
40+
. Enable the repositories required by the Knative (`kn`) CLI:
41+
+
42+
[source,terminal]
43+
----
44+
# subscription-manager repos --enable="openshift-serverless-1-for-rhel-8-x86_64-rpms"
45+
----
46+
47+
. Install the Knative (`kn`) CLI as an RPM by using a package manager:
48+
+
49+
.Example `yum` command
50+
[source,terminal]
51+
----
52+
# yum install openshift-serverless-clients
53+
----

modules/serverless-installing-cli-linux-rpm.adoc

Lines changed: 0 additions & 51 deletions
This file was deleted.

modules/serverless-installing-cli-linux.adoc

Lines changed: 16 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -6,19 +6,31 @@
66
[id="installing-cli-linux_{context}"]
77
= Installing the Knative CLI for Linux
88

9-
For Linux distributions, you can download the `kn` CLI directly as a `tar.gz` archive.
9+
If you are using a Linux distribution that does not have RPM or another package manager installed, you can install the Knative (`kn`) CLI as a binary file. To do this, you must download and unpack a `tar.gz` archive and add the binary to a directory on your `PATH`.
1010

11-
// no prereqs?
11+
.Prerequisites
12+
13+
* If you are not using RHEL or Fedora, ensure that *libc* is installed in a directory on your library path.
14+
+
15+
[IMPORTANT]
16+
====
17+
If *libc* is not available, you might see the following error when you run CLI commands:
18+
19+
[source,terminal]
20+
----
21+
$ kn: No such file or directory
22+
----
23+
====
1224
1325
.Procedure
1426
15-
. Download the link:https://mirror.openshift.com/pub/openshift-v4/clients/serverless/latest/kn-linux-amd64.tar.gz[`kn` CLI].
27+
. Download the link:https://mirror.openshift.com/pub/openshift-v4/clients/serverless/latest/kn-linux-amd64.tar.gz[Knative (`kn`) CLI `tar.gz` archive].
1628
1729
. Unpack the archive:
1830
+
1931
[source,terminal]
2032
----
21-
$ tar -xf <file>
33+
$ tar -xf <filename>
2234
----
2335
2436
. Move the `kn` binary to a directory on your `PATH`.
@@ -29,14 +41,3 @@ $ tar -xf <file>
2941
----
3042
$ echo $PATH
3143
----
32-
+
33-
[NOTE]
34-
====
35-
If you do not use RHEL or Fedora, ensure that *libc* is installed in a directory on your library path.
36-
If *libc* is not available, you might see the following error when you run CLI commands:
37-
38-
[source,terminal]
39-
----
40-
$ kn: No such file or directory
41-
----
42-
====

modules/serverless-installing-cli-macos.adoc

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,18 +3,18 @@
33
// * serverless/cli_tools/installing-kn.adoc
44

55
:_content-type: PROCEDURE
6-
[id="installing-cli-macosx_{context}"]
6+
[id="serverless-installing-cli-macos_{context}"]
77
= Installing the Knative CLI for macOS
88

9-
The `kn` CLI for macOS is provided as a `tar.gz` archive.
9+
If you are using macOS, you can install the Knative (`kn`) CLI as a binary file. To do this, you must download and unpack a `tar.gz` archive and add the binary to a directory on your `PATH`.
1010

1111
// no prereqs?
1212

1313
.Procedure
1414

15-
. Download the link:https://mirror.openshift.com/pub/openshift-v4/clients/serverless/latest/kn-macos-amd64.tar.gz[`kn` CLI].
15+
. Download the link:https://mirror.openshift.com/pub/openshift-v4/clients/serverless/latest/kn-macos-amd64.tar.gz[Knative (`kn`) CLI `tar.gz` archive].
1616

17-
. Unpack and unzip the archive.
17+
. Unpack and extract the archive.
1818

1919
. Move the `kn` binary to a directory on your `PATH`.
2020

modules/serverless-installing-cli-web-console.adoc

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -6,12 +6,22 @@
66
[id="installing-cli-web-console_{context}"]
77
= Installing the Knative CLI using the {product-title} web console
88

9-
You can use the following procedure to install the `kn` CLI by using the web console.
9+
Using the {product-title} web console provides a streamlined and intuitive user interface to install the Knative (`kn`) CLI. After the {ServerlessOperatorName} is installed, you will see a link to download the Knative (`kn`) CLI for Linux (amd64, s390x, ppc64le), macOS, or Windows from the *Command Line Tools* page in the {product-title} web console.
1010

1111
.Prerequisites
1212

1313
* You have logged in to the {product-title} web console.
14-
* The {ServerlessOperatorName} is installed on your {product-title} cluster. After the {ServerlessOperatorName} is installed, you will see a link to download the Knative CLI (`kn`) for Linux (x86_64, amd64, s390x, ppc64le), macOS, or Windows from the *Command Line Tools* page in the {product-title} web console.
14+
* The {ServerlessOperatorName} is installed on your {product-title} cluster.
15+
+
16+
[IMPORTANT]
17+
====
18+
If *libc* is not available, you might see the following error when you run CLI commands:
19+
20+
[source,terminal]
21+
----
22+
$ kn: No such file or directory
23+
----
24+
====
1525
1626
.Procedure
1727
@@ -23,22 +33,12 @@ You can use the following procedure to install the `kn` CLI by using the web con
2333
----
2434
$ tar -xf <file>
2535
----
36+
2637
. Move the `kn` binary to a directory on your `PATH`.
38+
2739
. To check your `PATH`, run:
2840
+
2941
[source,terminal]
3042
----
3143
$ echo $PATH
3244
----
33-
+
34-
[NOTE]
35-
====
36-
If you do not use RHEL or Fedora, ensure that *libc* is installed in a directory on your library path.
37-
If *libc* is not available, you might see the following error when you run CLI commands:
38-
39-
[source,terminal]
40-
----
41-
$ kn: No such file or directory
42-
----
43-
44-
====

modules/serverless-installing-cli-windows.adoc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,13 +6,13 @@
66
[id="installing-cli-windows_{context}"]
77
= Installing the Knative CLI for Windows
88

9-
The `kn` CLI for Windows is provided as a zip archive.
9+
If you are using Windows, you can install the Knative (`kn`) CLI as a binary file. To do this, you must download and unpack a ZIP archive and add the binary to a directory on your `PATH`.
1010

1111
// no prereqs?
1212

1313
.Procedure
1414

15-
. Download the link:https://mirror.openshift.com/pub/openshift-v4/clients/serverless/latest/kn-windows-amd64.zip[`kn` CLI].
15+
. Download the link:https://mirror.openshift.com/pub/openshift-v4/clients/serverless/latest/kn-windows-amd64.zip[Knative (`kn`) CLI ZIP archive].
1616

1717
. Extract the archive with a ZIP program.
1818

modules/serverless-kn-cli-plugins.adoc

Lines changed: 0 additions & 11 deletions
This file was deleted.

0 commit comments

Comments
 (0)