Skip to content

Commit 6ea32e7

Browse files
committed
Updated KMM Operator modules to pass DITA validation.
1 parent 53b0c51 commit 6ea32e7

20 files changed

+57
-61
lines changed

modules/kmm-applying-tolerations-to-kernel-module-pods.adoc

Lines changed: 20 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,24 @@ Taints and tolerations consist of `effect`, `key`, and `value` parameters. Toler
1818

1919
`tolerationSeconds`:: Represents the period of time the toleration (which must be of effect `NoExecute`, otherwise this field is ignored) tolerates the taint. By default, it is not set and the taint is tolerated forever without eviction. Zero and negative values are treated as `0` and immediately evicted by the system.
2020

21+
Toleration values must match the taint that is added to the nodes. A toleration matches a taint:
22+
23+
* If the `operator` parameter is set to `Equal`:
24+
25+
** the `key` parameters are the same;
26+
27+
** the `value` parameters are the same;
28+
29+
** the `effect` parameters are the same.
30+
31+
* If the `operator` parameter is set to `Exists`:
32+
33+
** the `key` parameters are the same;
34+
35+
** the `effect` parameters are the same.
36+
2137
.Example taint in a node specification
38+
====
2239
[source,yaml]
2340
----
2441
apiVersion: v1
@@ -33,8 +50,10 @@ spec:
3350
value: value1
3451
#...
3552
----
53+
====
3654

3755
.Example toleration in a module specification
56+
====
3857
[source,yaml]
3958
----
4059
apiVersion: kmm.sigs.x-k8s.io/v1beta1
@@ -50,19 +69,4 @@ spec:
5069
tolerationSeconds: 36000
5170
value: value1
5271
----
53-
54-
Toleration values must match the taint that is added to the nodes. A toleration matches a taint:
55-
56-
* If the `operator` parameter is set to `Equal`:
57-
58-
** the `key` parameters are the same;
59-
60-
** the `value` parameters are the same;
61-
62-
** the `effect` parameters are the same.
63-
64-
* If the `operator` parameter is set to `Exists`:
65-
66-
** the `key` parameters are the same;
67-
68-
** the `effect` parameters are the same.
72+
====

modules/kmm-building-and-signing-a-kmod-image.adoc

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -77,9 +77,6 @@ spec:
7777
selector: # top-level selector
7878
kubernetes.io/arch: amd64
7979
----
80-
8180
<1> Replace `default` with a valid namespace.
82-
8381
<2> The default `serviceAccountName` does not have the required permissions to run a module that is privileged. For information on creating a service account, see "Creating service accounts" in the "Additional resources" of this section.
84-
8582
<3> Used as `imagePullSecrets` in the `DaemonSet` object and to pull and push for the build and sign features.

modules/kmm-building-and-signing-a-moduleloader-container-image.adoc

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -77,9 +77,6 @@ spec:
7777
selector: # top-level selector
7878
kubernetes.io/arch: amd64
7979
----
80-
8180
<1> `namespace` - Replace `default` with a valid namespace.
82-
8381
<2> `serviceAccountName` - The default `serviceAccountName` does not have the required permissions to run a module that is privileged. For information on creating a service account, see "Creating service accounts" in the "Additional resources" of this section.
84-
8582
<3> `imageRepoSecret` - Used as `imagePullSecrets` in the `DaemonSet` object and to pull and push for the build and sign features.

modules/kmm-configuring-kmmo.adoc

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -17,9 +17,7 @@ In most cases, the default configuration for the Kernel Module Management (KMM)
1717
$ oc rollout restart -n "$namespace" deployment/kmm-operator-controller
1818
----
1919
+
20-
The value of `$namespace` depends on your installation method.
21-
+
22-
.Example output
20+
The value of `$namespace` depends on your installation method. For example:
2321
+
2422
[source,yaml]
2523
----
@@ -33,12 +31,12 @@ metadata:
3331
name: kmm-operator-manager-config
3432
namespace: openshift-kmm
3533
----
36-
34+
+
3735
[NOTE]
3836
====
3937
If you want to configure `KMM Hub`, create the `ConfigMap` using the name `kmm-operator-hub-manager-config` in the KMM Hub controller's namespace.
4038
====
41-
39+
+
4240
.Operator configuration parameters
4341
[cols="2,8",options="header"]
4442
|===

modules/kmm-gathering-data-for-kmm-hub.adoc

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -37,9 +37,9 @@ $ oc adm must-gather --image="${MUST_GATHER_IMAGE}" -- /usr/bin/gather -u
3737
$ oc logs -fn openshift-kmm-hub deployments/kmm-operator-hub-controller
3838
----
3939
+
40-
.Example output
40+
Example output:
41+
+
4142
[%collapsible]
42-
====
4343
[source,terminal]
4444
----
4545
I0417 11:34:08.807472 1 request.go:682] Waited for 1.023403273s due to client-side throttling, not priority and fairness, request: GET:https://172.30.0.1:443/apis/tuned.openshift.io/v1?timeout=32s
@@ -68,4 +68,3 @@ I0417 11:34:12.501947 1 controller.go:227] kmm-hub "msg"="Starting workers
6868
I0417 11:34:12.501948 1 controller.go:227] kmm-hub "msg"="Starting workers" "controller"="ManagedClusterModule" "controllerGroup"="hub.kmm.sigs.x-k8s.io" "controllerKind"="ManagedClusterModule" "worker count"=1
6969
I0417 11:34:12.502285 1 imagestream_reconciler.go:50] kmm-hub "msg"="registered imagestream info mapping" "ImageStream"={"name":"driver-toolkit","namespace":"openshift"} "controller"="imagestream" "controllerGroup"="image.openshift.io" "controllerKind"="ImageStream" "dtkImage"="quay.io/openshift-release-dev/ocp-v4.0-art-dev@sha256:df42b4785a7a662b30da53bdb0d206120cf4d24b45674227b16051ba4b7c3934" "name"="driver-toolkit" "namespace"="openshift" "osImageVersion"="412.86.202302211547-0" "reconcileID"="e709ff0a-5664-4007-8270-49b5dff8bae9"
7070
----
71-
====

modules/kmm-gathering-data-for-kmm.adoc

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -37,9 +37,9 @@ $ oc adm must-gather --image="${MUST_GATHER_IMAGE}" -- /usr/bin/gather
3737
$ oc logs -fn openshift-kmm deployments/kmm-operator-controller
3838
----
3939
+
40-
.Example output
40+
Example output:
41+
+
4142
[%collapsible]
42-
====
4343
[source,terminal]
4444
----
4545
I0228 09:36:37.352405 1 request.go:682] Waited for 1.001998746s due to client-side throttling, not priority and fairness, request: GET:https://172.30.0.1:443/apis/machine.openshift.io/v1beta1?timeout=32s
@@ -70,4 +70,3 @@ I0228 09:36:40.787879 1 controller.go:185] kmm "msg"="Starting EventSource
7070
I0228 09:36:40.787905 1 controller.go:193] kmm "msg"="Starting Controller" "controller"="preflightvalidationocp" "controllerGroup"="kmm.sigs.x-k8s.io" "controllerKind"="PreflightValidationOCP"
7171
I0228 09:36:40.786489 1 controller.go:193] kmm "msg"="Starting Controller" "controller"="PodNodeModule" "controllerGroup"="" "controllerKind"="Pod"
7272
----
73-
====

modules/kmm-hub-installing-kmm-hub-creating-resources.adoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010

1111
* If you want to install KMM-Hub programmatically, you can use the following resources to create
1212
the `Namespace`, `OperatorGroup` and `Subscription` resources:
13-
13+
+
1414
[source,yaml]
1515
----
1616
---

modules/kmm-hub-running-kmm-on-the-spoke.adoc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,10 @@
88

99
After installing Kernel Module Management (KMM) on the spoke, no further action is required. Create a `ManagedClusterModule` object from the hub to deploy kernel modules on spoke clusters.
1010

11-
.Procedure
12-
1311
You can install KMM on the spokes cluster through a RHACM `Policy` object. In addition to installing KMM from the OperatorHub and running it in a lightweight spoke mode, the `Policy` configures additional RBAC required for the RHACM agent to be able to manage `Module` resources.
1412

13+
.Procedure
14+
1515
* Use the following RHACM policy to install KMM on spoke clusters:
1616
+
1717
[source.yaml]

modules/kmm-installing-older-versions.adoc

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,8 @@ $ oc create -f kmm-sub.yaml
130130
$ oc get -n openshift-kmm deployments.apps kmm-operator-controller
131131
----
132132
+
133-
.Example output
133+
Example output:
134+
+
134135
[source,terminal]
135136
----
136137
NAME READY UP-TO-DATE AVAILABLE AGE

modules/kmm-installing-using-cli.adoc

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,8 @@ $ oc create -f kmm-sub.yaml
7373
$ oc get -n openshift-kmm deployments.apps kmm-operator-controller
7474
----
7575
+
76-
.Example output
76+
Example output:
77+
+
7778
[source,terminal]
7879
----
7980
NAME READY UP-TO-DATE AVAILABLE AGE

0 commit comments

Comments
 (0)