You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/specification.md
+9-3
Original file line number
Diff line number
Diff line change
@@ -2,12 +2,12 @@
2
2
3
3
This document describes the specification for how to write your Kafka cluster's desired state file. This currently must be a `YAML` file.
4
4
5
-
?> Current version: `1.0.2`
5
+
?> Current version: `1.0.3`
6
6
7
7
The desired state file consists of:
8
8
9
9
-**Settings**[Optional]: Specific settings for configuring `kafka-gitops`.
10
-
-**Topics**[Optional]: Topics and topic configuration definitions.
10
+
-**Topics**[Optional]: Topic and topic configuration definitions.
11
11
-**Services**[Optional]: Service definitions for generating ACLs.
12
12
-**Users**[Optional]: User definitions for generating ACLs.
13
13
-**Custom Service ACLs**[Optional]: Definitions for custom, non-generated ACLs.
@@ -20,14 +20,18 @@ The desired state file consists of:
20
20
**Options**:
21
21
22
22
-**ccloud**[Optional]: An object which contains an `enabled` field. Set this to true if using a Confluent Cloud cluster.
23
-
-**topics**[Optional]: Add a prefixed topic blacklist for ignoring specific topics when using `kafka-gitops`. This allows topics to be ignored from being deleted if they are not defined in the desired state file.
23
+
-**topics**[Optional]:
24
+
-**defaults**[Optional]: Specify topic defaults so you don't need to specify them for every topic in the state file. Currently, only replication is supported.
25
+
-**blacklist**[Optional]: Add a prefixed topic blacklist for ignoring specific topics when using `kafka-gitops`. This allows topics to be ignored from being deleted if they are not defined in the desired state file.
24
26
25
27
**Example**:
26
28
```yaml
27
29
settings:
28
30
ccloud:
29
31
enabled: true
30
32
topics:
33
+
defaults:
34
+
replication: 3
31
35
blacklist:
32
36
prefixed:
33
37
- _confluent
@@ -51,6 +55,8 @@ topics:
51
55
segment.bytes: 1000000
52
56
```
53
57
58
+
If a default `replication` value is supplied in the `settings` block, then the `replication` field can be omitted. If a default `replication` value is provided and the `replication` field in the topic definition is set, the default will be overridden for that topic.
59
+
54
60
## Services
55
61
56
62
**Synopsis**: Define the services that will utilize your Kafka cluster. These service definitions allow `kafka-gitops` to generate ACLs for you. Yay!
0 commit comments