Skip to content

Commit

Permalink
Improve for code review comment
Browse files Browse the repository at this point in the history
  • Loading branch information
muralov committed Feb 22, 2024
1 parent 8af2571 commit c787271
Showing 1 changed file with 21 additions and 20 deletions.
41 changes: 21 additions & 20 deletions docs/user/02-configuration.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,26 @@ Use the following sample CRs as guidance. Each can be applied immediately when y
- [Default CR - NATS backend](https://github.com/kyma-project/eventing-manager/blob/main/config/samples/default.yaml)
- [Default CR - EventMesh backend](https://github.com/kyma-project/eventing-manager/blob/main/config/samples/default_eventmesh.yaml)


## Impact of the Backend to the Eventing CR State and Event Flow
The following table provides more details on the overall state of the Eventing CR:
- The <b>Backend State</b> column describes the state of the NATS backend or EventMesh Secret existence.
- The <b>Backend Config</b> describes whether the Eventing CR that has been specified by a user or is not available.
- The <b>Eventing State</b> describes the overall state of the Eventing CR.

Warnings indicate that user action is required, that is, the user must install the NATS module or create an EventMesh Secret.

| Backend Type | Backend Config | Backend State | Eventing State | Impact on Event Flow |
|----------------|----------------|---------------------------------------------------------------------------------------------------------------------------------------------|----------------|------------------------------------------|
| NATS/EventMesh | missing | n/a | Warning | No events will be accepted or dispatched |
| NATS/EventMesh | exists | Processing (mainly happens during initialization and backend switching) | Processing | No events will be accepted or dispatched |
| NATS | exists | Warning (NATS deletion blocked) | Ready | Events will be accepted or dispatched |
| NATS | exists | Error (NATS ist unavailable or cannot be connected) | Warning | No events will be accepted or dispatched |
| NATS | exists | Missing | Warning | No events will be accepted or dispatched |
| EventMesh | exists | Error (secret for EventMesh missing) | Warning | No events will be accepted or dispatched |
| NATS/EventMesh | exists | Error (cases not caused by a user, such as cannot create EPP deployment or cannot start subscription manager although backend is available) | Error | No events will be accepted or dispatched |


## Reference

<!-- The table below was generated automatically -->
Expand Down Expand Up @@ -73,25 +93,6 @@ Use the following sample CRs as guidance. Each can be applied immediately when y
| **conditions.&#x200b;type** (required) | string | type of condition in CamelCase or in foo.example.com/CamelCase. --- Many .condition.type values are consistent across resources like Available, but because arbitrary conditions can be useful (see .node.status.conditions), the ability to deconflict is important. The regex it matches is (dns1123SubdomainFmt/)?(qualifiedNameFmt) |
| **publisherService** | string | |
| **specHash** (required) | integer | |
| **state** (required) | string | Can have one of the following values: `Ready`, `Error`, `Processing`, `Warning`. `Ready` state is set when all the resources are deployed successfully and backend is connected. It gets `Warning` state if backend is not specified, NATS module is not installed or EventMesh secret is missing in the cluster. `Error` state is set when there is an error not caused by a user. `Processing` state is set when eventing is initiliazed or backend is being switched. See the next section for more details. |
| **state** (required) | string | Can have one of the following values: `Ready`, `Error`, `Processing`, `Warning`. `Ready` state is set when all the resources are deployed successfully and backend is connected. It gets `Warning` state if backend is not specified, NATS module is not installed or EventMesh secret is missing in the cluster. `Error` state is set when there is an error not caused by a user. `Processing` state is set when eventing is initiliazed or backend is being switched. |

<!-- TABLE-END -->

<h3>More Details About Eventing CR State</h3>
The following table provides more details on the overall state of the Eventing CR:

- The <b>Backend Config</b> column is part of the eventing CR that is either available or mistakenly not specified by a user.
- The <b>Backend State</b> column describes the state of the NATS backend or EventMesh Secret existence.
- The <b>Eventing State</b> column has the overall state of the Eventing CR.

Warnings indicate that user action is required, that is, the user must install the NATS module or create an EventMesh Secret.

| Backend Config | Backend State | Backend Type | Eventing State | Impact on event flow |
|---------------------------|---------------------------|----------------|----------------|----------|
| exists | Warning (NATS deletion blocked) | NATS | Ready | events will be accepted / dispatched |
| exists | Processing (mainly happens during initialization and backend switching) | NATS/EventMesh | Processing | no events will be accepted / dispatched |
| exists | Error (NATS ist unavailable or cannot be connected) | NATS | Warning | no events will be accepted / dispatched |
| missing | | NATS/EventMesh | Warning | no events will be accepted / dispatched |
| exists | Missing | NATS | Warning | no events will be accepted / dispatched |
| exists | Error (secret for EventMesh missing) | EventMesh | Warning | no events will be accepted / dispatched |
| exists | Error (cases not caused by a user, e.g. cannot create EPP deployment or cannot start subscription manager although backend is available) | NATS/EventMesh | Error | no events will be accepted / dispatched |

0 comments on commit c787271

Please sign in to comment.