Skip to content

Commit a3c488c

Browse files
authored
Merge pull request #33595 from abrennan89/sinkdocs
SRVCLI-296 + SRVCOM-1245: Updating serving, eventing and sink doc structure
2 parents 9834b4d + df9bc7f commit a3c488c

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

41 files changed

+143
-239
lines changed

_topic_map.yml

Lines changed: 31 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -2925,8 +2925,7 @@ Topics:
29252925
# Intro / getting started
29262926
- Name: Getting started
29272927
File: serverless-getting-started
2928-
- Name: Installing the Knative CLI
2929-
File: installing-kn
2928+
#
29302929
# Admin guide
29312930
- Name: Administration guide
29322931
Dir: admin_guide
@@ -2954,24 +2953,19 @@ Topics:
29542953
# Metering
29552954
- Name: Using metering with OpenShift Serverless
29562955
File: serverless-metering
2957-
# Architecture
2958-
- Name: Architecture
2959-
Dir: architecture
2960-
Topics:
2961-
- Name: Knative Serving
2962-
File: serverless-serving-architecture
2963-
- Name: Knative Eventing
2964-
File: serverless-event-architecture
2965-
# HA
2966-
- Name: High availability on OpenShift Serverless
2967-
File: serverless-HA
2968-
# Tracing
2969-
- Name: Tracing requests
2970-
File: serverless-tracing
2956+
# HA
2957+
- Name: High availability on OpenShift Serverless
2958+
File: serverless-ha
2959+
#
2960+
# TODO: Add developer guide
2961+
#
29712962
# Knative Serving
29722963
- Name: Knative Serving
29732964
Dir: knative_serving
29742965
Topics:
2966+
# Understanding serving
2967+
- Name: Understanding Knative Serving
2968+
File: serverless-understanding-serving
29752969
# Knative services
29762970
- Name: Serverless applications
29772971
File: serverless-applications
@@ -2982,10 +2976,20 @@ Topics:
29822976
File: cluster-logging-serverless
29832977
- Name: Splitting traffic between revisions
29842978
File: splitting-traffic-between-revisions-knative
2979+
# Tracing
2980+
- Name: Tracing requests using Jaeger
2981+
File: serverless-tracing
2982+
#
29852983
# Knative Eventing
29862984
- Name: Knative Eventing
29872985
Dir: knative_eventing
29882986
Topics:
2987+
# Understanding eventing
2988+
- Name: Understanding Knative Eventing
2989+
File: serverless-understanding-eventing
2990+
# Event sinks
2991+
- Name: Event sinks
2992+
File: serverless-event-sinks
29892993
# Brokers
29902994
- Name: Brokers
29912995
File: serverless-using-brokers
@@ -3014,8 +3018,6 @@ Topics:
30143018
File: serverless-sinkbinding
30153019
- Name: Using a Kafka source
30163020
File: serverless-kafka-source
3017-
- Name: Connecting event sources to sinks
3018-
File: srvls-connecting-source-sinks
30193021
# Channels
30203022
- Name: Channels
30213023
Dir: channels
@@ -3026,11 +3028,10 @@ Topics:
30263028
File: serverless-creating-channels
30273029
- Name: Subscriptions
30283030
File: serverless-subs
3029-
- Name: Connecting a channel to an event source
3030-
File: connect-channels-event-source
30313031
- Name: Configuring channel defaults
30323032
File: serverless-configuring-channels
3033-
# Functions - uncomment at tech preview
3033+
#
3034+
# Functions
30343035
- Name: Functions
30353036
Dir: functions
30363037
Topics:
@@ -3052,6 +3053,7 @@ Topics:
30523053
File: serverless-functions-eventing
30533054
- Name: Functions development reference guide
30543055
File: serverless-functions-reference-guide
3056+
#
30553057
# Networking
30563058
- Name: Networking
30573059
Dir: networking
@@ -3068,17 +3070,21 @@ Topics:
30683070
File: serverless-ossm-custom-domains
30693071
- Name: Configuring TLS for a custom domain using Service Mesh
30703072
File: serverless-ossm-tls
3073+
#
30713074
# Integrations
30723075
- Name: Integrations
30733076
Dir: integrations
30743077
Topics:
30753078
- Name: Using NVIDIA GPU resources with serverless applications
30763079
File: gpu-resources
3077-
# CLI reference guide
3078-
- Name: CLI reference
3079-
Dir: cli_reference
3080+
#
3081+
# CLI tools
3082+
- Name: CLI tools
3083+
Dir: cli_tools
30803084
Topics:
3081-
- Name: Advanced kn configuration
3085+
- Name: Installing the Knative CLI
3086+
File: installing-kn
3087+
- Name: Knative CLI advanced configuration
30823088
File: advanced-kn-config
30833089
- Name: kn flags reference
30843090
File: kn-flags-reference

cli_reference/kn-cli-tools.adoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,4 +32,4 @@ Key features of the `kn` CLI include:
3232
[id="kn-cli-tools-installing-kn"]
3333
== Installing the Knative CLI
3434

35-
See xref:../serverless/installing-kn.adoc#installing-kn[Installing the Knative CLI].
35+
See xref:../serverless/cli_tools/installing-kn.adoc#installing-kn[Installing the Knative CLI].

modules/serverless-config-replicas.adoc

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,3 @@
1-
// Module is included in the following assemblies:
2-
//
3-
// serverless/serverless-HA.adoc
4-
51
[id="serverless-config-replicas_{context}"]
62
= Configuring high availability replicas on {ServerlessProductName}
73

@@ -11,6 +7,7 @@ You modify the number of replicas that are created per controller by changing th
117
// This field also specifies the minimum number of _activators_ if you are using the horizontal pod autoscaler (HPA). For more information about HPA, see
128

139
.Prerequisites
10+
1411
* An {product-title} account with cluster administrator access.
1512
* Installed the {ServerlessOperatorName} and Knative Serving.
1613

modules/serverless-connect-sink-source-odc.adoc

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,8 @@
1-
// Module included in the following assemblies:
2-
//
3-
// * serverless/channels/connect-channels-event-source.adoc
4-
// * serverless/event_sources/srvls-connecting-source-sinks.adoc
5-
61
[id="serverless-connect-sink-source-odc_{context}"]
72
= Connect an event source to a sink using the Developer perspective
83

94
You can create multiple event source types in {product-title} that can be connected to sinks.
105

11-
A sink is an addressable resource that can receive incoming events from other Knative Eventing resources. Knative services, channels, and brokers are all examples of sinks.
12-
// Add functions as services to the list for tech preview
13-
146
.Prerequisites
157

168
To connect an event source to a sink using the *Developer* perspective, ensure that:
Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
[id="serverless-connect-trigger-sink_{context}"]
2+
= Connecting a trigger to a sink
3+
4+
You can connect a trigger to a sink, so that events from a broker are filtered before they are sent to the sink. A sink that is connected to a trigger is configured as a `subscriber` in the `Trigger` resource spec.
5+
6+
.Example of a trigger connected to a Kafka sink
7+
[source,yaml]
8+
----
9+
apiVersion: eventing.knative.dev/v1
10+
kind: Trigger
11+
metadata:
12+
name: <trigger_name> <1>
13+
spec:
14+
...
15+
subscriber:
16+
ref:
17+
apiVersion: eventing.knative.dev/v1alpha1
18+
kind: KafkaSink
19+
name: <kafka_sink_name> <2>
20+
----
21+
<1> The name of the trigger being connected to the sink.
22+
<2> The name of a `KafkaSink` object.

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

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,3 @@
1-
// Module included in the following assemblies:
2-
//
3-
// * serverless/installing-kn.adoc
4-
51
[id="installing-cli-linux-ibm-power-rpm_{context}"]
62
= Installing the Knative CLI for Linux on IBM Power Systems using an RPM
73

@@ -15,14 +11,12 @@ For {op-system-base-full}, you can install the Knative CLI (`kn`) as an RPM if y
1511
----
1612
# subscription-manager register
1713
----
18-
1914
. Refresh the RHSM:
2015
+
2116
[source,terminal]
2217
----
2318
# subscription-manager refresh
2419
----
25-
2620
. Attach the subscription to a system by specifying ID of the subscription pool, using the `--pool` option:
2721
+
2822
[source,terminal]
@@ -31,14 +25,12 @@ For {op-system-base-full}, you can install the Knative CLI (`kn`) as an RPM if y
3125
----
3226
+
3327
<1> Pool ID for an active {product-title} subscription
34-
3528
. Enable the repository using Red Hat Subscription Manager:
3629
+
3730
[source,terminal]
3831
----
3932
# subscription-manager repos --enable="openshift-serverless-1-for-rhel-8-ppc64le-rpms"
4033
----
41-
4234
. Install the `openshift-serverless-clients` on the system:
4335
+
4436
[source,terminal]

modules/serverless-installing-cli-linux-ibm-power-tarball.adoc

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,3 @@
1-
// Module included in the following assemblies:
2-
//
3-
// * serverless/installing-kn.adoc
4-
51
[id="installing-cli-linux-ibm-power-tarball_{context}"]
62
= Installing the Knative CLI for Linux on IBM Power Systems
73

@@ -10,16 +6,13 @@ For Linux distributions, you can download the Knative CLI (`kn`) directly as a `
106
.Procedure
117

128
. Download the link:https://mirror.openshift.com/pub/openshift-v4/clients/serverless/latest/kn-linux-ppc64le.tar.gz[`kn` CLI].
13-
149
. Unpack the archive:
1510
+
1611
[source,terminal]
1712
----
1813
$ tar -xf <file>
1914
----
20-
2115
. Move the `kn` binary to a directory on your `PATH`.
22-
2316
. To check your `PATH`, run:
2417
+
2518
[source,terminal]

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

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,3 @@
1-
// Module included in the following assemblies:
2-
//
3-
// * serverless/installing-kn.adoc
4-
51
[id="installing-cli-linux-ibm-z-rpm_{context}"]
62
= Installing the Knative CLI for Linux on IBM Z and LinuxONE using an RPM
73

@@ -15,14 +11,12 @@ For {op-system-base-full}, you can install the Knative CLI (`kn`) as an RPM if y
1511
----
1612
# subscription-manager register
1713
----
18-
1914
. Refresh the RHSM:
2015
+
2116
[source,terminal]
2217
----
2318
# subscription-manager refresh
2419
----
25-
2620
. Attach the subscription to a system by specifying ID of the subscription pool, using the `--pool` option:
2721
+
2822
[source,terminal]
@@ -31,14 +25,12 @@ For {op-system-base-full}, you can install the Knative CLI (`kn`) as an RPM if y
3125
----
3226
+
3327
<1> Pool ID for an active {product-title} subscription
34-
3528
. Enable the repository using Red Hat Subscription Manager:
3629
+
3730
[source,terminal]
3831
----
3932
# subscription-manager repos --enable="openshift-serverless-1-for-rhel-8-s390x-rpms"
4033
----
41-
4234
. Install the `openshift-serverless-clients` on the system:
4335
+
4436
[source,terminal]

modules/serverless-installing-cli-linux-ibm-z-tarball.adoc

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,3 @@
1-
// Module included in the following assemblies:
2-
//
3-
// * serverless/installing-kn.adoc
4-
51
[id="installing-cli-linux-ibm-z-tarball_{context}"]
62
= Installing the Knative CLI for Linux on IBM Z and LinuxONE
73

@@ -10,23 +6,19 @@ For Linux distributions, you can download the Knative CLI (`kn`) directly as a
106
.Procedure
117

128
. Download the link:https://mirror.openshift.com/pub/openshift-v4/clients/serverless/latest/kn-linux-s390x.tar.gz[`kn` CLI].
13-
149
. Unpack the archive:
1510
+
1611
[source,terminal]
1712
----
1813
$ tar -xf <file>
1914
----
20-
2115
. Move the `kn` binary to a directory on your `PATH`.
22-
2316
. To check your `PATH`, run:
2417
+
2518
[source,terminal]
2619
----
2720
$ echo $PATH
2821
----
29-
3022
+
3123
[NOTE]
3224
====

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

Lines changed: 1 addition & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,51 +1,38 @@
1-
// Module is included in the following assemblies:
2-
//
3-
// serverless/knative-client.adoc
4-
51
[id="installing-cli-linux-rpm_{context}"]
62
= Installing the Knative CLI for Linux using an RPM
73

84
For {op-system-base-full}, you can install the Knative CLI (`kn`) as an RPM if you have an active {product-title} subscription on your Red Hat account.
95

10-
116
.Procedure
7+
128
. Enter the command:
139
+
14-
1510
[source,terminal]
1611
----
1712
# subscription-manager register
1813
----
19-
2014
. Enter the command:
2115
+
22-
2316
[source,terminal]
2417
----
2518
# subscription-manager refresh
2619
----
27-
2820
. Enter the command:
2921
+
30-
3122
[source,terminal]
3223
----
3324
# subscription-manager attach --pool=<pool_id> <1>
3425
----
3526
+
3627
<1> Pool ID for an active {product-title} subscription
37-
3828
. Enter the command:
3929
+
40-
4130
[source,terminal]
4231
----
4332
# subscription-manager repos --enable="openshift-serverless-1-for-rhel-8-x86_64-rpms"
4433
----
45-
4634
. Enter the command:
4735
+
48-
4936
[source,terminal]
5037
----
5138
# yum install openshift-serverless-clients

0 commit comments

Comments
 (0)