Skip to content

Commit 9b30716

Browse files
committed
lint issues fix
1 parent 9ce1b06 commit 9b30716

File tree

2 files changed

+36
-31
lines changed

2 files changed

+36
-31
lines changed

docs/openshift/applications/knative-serving.md

Lines changed: 12 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ In this tutorial, you will:
1818
- Run different revisions of a service via `blue-green` deployments and `canary`
1919
release.
2020

21-
## **Prerequisites**:
21+
## **Prerequisites**
2222

2323
- Setup the OpenShift CLI (`oc`) Tools locally and configure the OpenShift CLI
2424
to enable `oc` commands. Refer to [this user guide](../../openshift/logging-in/setup-the-openshift-cli.md).
@@ -28,14 +28,15 @@ In this tutorial, you will:
2828
client `kn` allows you to create Knative resources from the command line or
2929
from within Shell scripts. Follow the [official documentation](https://docs.redhat.com/en/documentation/red_hat_openshift_serverless/1.37/html/installing_openshift_serverless/installing-kn)
3030
to download and install the Knative CLI.
31-
31+
3232
You can verify the Knative CLI installation by running the following command:
3333

3434
```sh
3535
kn version
3636
```
3737

38-
For more information regarding the [CLI commands](https://docs.redhat.com/en/documentation/red_hat_openshift_serverless/1.37/html/knative_cli/index) available for Knative Functions, Serving, and Eventing.
38+
For more information regarding the [CLI commands](https://docs.redhat.com/en/documentation/red_hat_openshift_serverless/1.37/html/knative_cli/index)
39+
available for Knative Functions, Serving, and Eventing.
3940

4041
## Using Knative Serving
4142

@@ -180,7 +181,7 @@ spec:
180181
...
181182
annotations:
182183
serving.knative.openshift.io/enablePassthrough: 'true'
183-
...
184+
...
184185
...
185186
```
186187

@@ -252,7 +253,7 @@ spec:
252253
EOF
253254
```
254255

255-
**3. Verification**
256+
**3. Verification:**
256257

257258
Applying the application service configuration from the previous step creates a
258259
route, service, revision, and other resources managed by Knative Serving. You can
@@ -274,7 +275,7 @@ verify these components using the following command:
274275
```
275276

276277
**Revisions:**
277-
278+
278279
```sh
279280
kn revision list
280281
```
@@ -328,7 +329,7 @@ oc exec deployment/curl -it -- curl -ik $EXTERNAL_URL
328329
**Output:**
329330

330331
```sh
331-
HTTP/2 200
332+
HTTP/2 200
332333
content-length: 17
333334
content-type: text/plain; charset=utf-8
334335
date: Sat, 13 Dec 2025 21:31:58 GMT
@@ -810,14 +811,14 @@ view:
810811

811812
3. Go to "Actions" -> "Edit Service":
812813
![Edit Knative Service](images/knative-service-edit.png)
813-
814+
814815
Then modify the service configuration in the *YAML* editor, and click **Save**.
815-
For example, change the `timeoutseconds` from `300` to `301`.
816+
For example, change the `timeoutseconds` from `300` to `301`.
816817

817818
![Edit Knative Service YAML](images/knative-service-yaml-edit.png)
818819

819820
This change in the configuration triggers a new revision.
820-
821+
821822
In the **Topology** view, the latest revision is displayed and the **Resources**
822823
tab for the service now displays the two revisions as shown below:
823824

@@ -988,7 +989,7 @@ of real user traffic before a full rollout.
988989
If you do not plan to roll back to the **first revision**, you can remove
989990
it instead of setting its traffic to 0%. Non-routable revisions are automatically
990991
garbage-collected.
991-
992+
992993
11. Visit the **URL of the first revision** to confirm that no traffic is being
993994
routed to the old version of the application.
994995

docs/openshift/applications/understanding-openshift-serverless.md

Lines changed: 24 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -67,15 +67,16 @@ and microservices to small, single-purpose functions.
6767

6868
It has **three primary components**:
6969

70-
- [**Serving**](https://knative.dev/docs/serving/): Enables rapid deployment and
71-
automatic scaling of containers through a request-driven model, serving workloads based on demand.
70+
- [**Serving**](https://knative.dev/docs/serving/): Enables rapid deployment and
71+
automatic scaling of containers through a request-driven model, serving workloads
72+
based on demand.
7273

73-
- [**Eventing**](https://knative.dev/docs/eventing/): Provides the infrastructure
74-
to consume and produce events that trigger applications. Applications can be
75-
triggered by internal event sources, cloud services, or Red Hat AMQ streams.
74+
- [**Eventing**](https://knative.dev/docs/eventing/): Provides the infrastructure
75+
to consume and produce events that trigger applications. Applications can be
76+
triggered by internal event sources, cloud services, or Red Hat AMQ streams.
7677

77-
- [**Functions**](https://knative.dev/docs/functions/): Offers a flexible approach
78-
to building source code into containers.
78+
- [**Functions**](https://knative.dev/docs/functions/): Offers a flexible approach
79+
to building source code into containers.
7980

8081
### What is OpenShift Serverless?
8182

@@ -117,11 +118,11 @@ With serverless, infrastructure management is handled for you. You simply provid
117118
a container image and run it on the cluster - everything else is automatically managed.
118119

119120
In Knative, deployment is even simpler: you define a small resource file called
120-
a **[Knative Service](#knative-serving)**, which specifies the container image to
121-
run. When applied to the cluster, the Knative Operator automatically creates all
122-
necessary resources, including the deployment, service, route (if needed), and a
123-
configuration resource. The configuration resource also manages revisions, making
124-
it easy to roll back to previous versions when required.
121+
a **[Knative Service](#knative-functions)**, which specifies the container image
122+
to run. When applied to the cluster, the Knative Operator automatically creates
123+
all necessary resources, including the deployment, service, route (if needed),
124+
and a configuration resource. The configuration resource also manages revisions,
125+
making it easy to roll back to previous versions when required.
125126

126127
![Knative Deployment](images/knative_deployment.png)
127128

@@ -146,9 +147,11 @@ Knative serverless application components:
146147

147148
The main components of the OpenShift Serverless architecture are:
148149

149-
**Knative Serving**: Enables developers to create cloud-native applications using
150-
a serverless architecture. It provides Custom Resource Definitions (CRDs) that
151-
developers can use to deploy serverless containers, manage pod scaling, and more.
150+
### Knative Serving
151+
152+
Enables developers to create cloud-native applications using a serverless architecture.
153+
It provides **Custom Resource Definitions (CRDs)** that developers can use to deploy
154+
serverless containers, manage pod scaling, and more.
152155

153156
Knative Serving is responsible for:
154157

@@ -167,14 +170,15 @@ deployment, dynamically scaling with traffic, and supporting traffic-split rollo
167170

168171
**[Watch a video about Knative Serving](https://www.youtube.com/watch?v=oKIHoDzw1RI)**
169172

170-
**Knative Eventing**: Provides the infrastructure for building and deploying
171-
event-driven applications. It allows developers to define event sources and sinks
172-
and offers mechanisms to route events to functions, applications, or other event
173-
sinks.
173+
### Knative Eventing
174+
175+
Provides the infrastructure for building and deploying *event-driven applications*.
176+
It allows developers to define event sources and sinks and offers mechanisms to
177+
route events to functions, applications, or other event sinks.
174178

175179
Knative Eventing is an event-driven platform that uses CloudEvents with a simple
176180
*HTTP* interface. It enables late-binding of event sources and consumers, allowing
177-
services to be loosely coupled, independently deployed, and connected without
181+
services to be loosely coupled, independently deployed, and connected without
178182
modifying producers or consumers.
179183

180184
**Event Mesh:** Supports responsive, scalable, and resilient architectures by

0 commit comments

Comments
 (0)