Skip to content

Commit

Permalink
Chore: tickgen changes to test reduce pipelines (#587)
Browse files Browse the repository at this point in the history
Signed-off-by: ashwinidulams <ashttk@gmail.com>
  • Loading branch information
ashwinidulams committed Mar 7, 2023
1 parent d8b1aa0 commit abfdd78
Show file tree
Hide file tree
Showing 16 changed files with 620 additions and 380 deletions.
10 changes: 10 additions & 0 deletions api/json-schema/schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -17715,6 +17715,11 @@
"duration": {
"$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Duration"
},
"keyCount": {
"description": "KeyCount is the number of unique keys in the payload",
"format": "int32",
"type": "integer"
},
"msgSize": {
"description": "Size of each generated message",
"format": "int32",
Expand All @@ -17723,6 +17728,11 @@
"rpu": {
"format": "int64",
"type": "integer"
},
"value": {
"description": "Value is an optional uint64 value to be written in to the payload",
"format": "int64",
"type": "integer"
}
},
"type": "object"
Expand Down
10 changes: 10 additions & 0 deletions api/openapi-spec/swagger.json
Original file line number Diff line number Diff line change
Expand Up @@ -17720,6 +17720,11 @@
"duration": {
"$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Duration"
},
"keyCount": {
"description": "KeyCount is the number of unique keys in the payload",
"type": "integer",
"format": "int32"
},
"msgSize": {
"description": "Size of each generated message",
"type": "integer",
Expand All @@ -17728,6 +17733,11 @@
"rpu": {
"type": "integer",
"format": "int64"
},
"value": {
"description": "Value is an optional uint64 value to be written in to the payload",
"type": "integer",
"format": "int64"
}
}
},
Expand Down
6 changes: 6 additions & 0 deletions config/base/crds/full/numaflow.numaproj.io_pipelines.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3745,6 +3745,9 @@ spec:
duration:
default: 1s
type: string
keyCount:
format: int32
type: integer
msgSize:
default: 8
format: int32
Expand All @@ -3753,6 +3756,9 @@ spec:
default: 5
format: int64
type: integer
value:
format: int64
type: integer
type: object
http:
properties:
Expand Down
6 changes: 6 additions & 0 deletions config/base/crds/full/numaflow.numaproj.io_vertices.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2309,6 +2309,9 @@ spec:
duration:
default: 1s
type: string
keyCount:
format: int32
type: integer
msgSize:
default: 8
format: int32
Expand All @@ -2317,6 +2320,9 @@ spec:
default: 5
format: int64
type: integer
value:
format: int64
type: integer
type: object
http:
properties:
Expand Down
12 changes: 12 additions & 0 deletions config/install.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5999,6 +5999,9 @@ spec:
duration:
default: 1s
type: string
keyCount:
format: int32
type: integer
msgSize:
default: 8
format: int32
Expand All @@ -6007,6 +6010,9 @@ spec:
default: 5
format: int64
type: integer
value:
format: int64
type: integer
type: object
http:
properties:
Expand Down Expand Up @@ -9767,6 +9773,9 @@ spec:
duration:
default: 1s
type: string
keyCount:
format: int32
type: integer
msgSize:
default: 8
format: int32
Expand All @@ -9775,6 +9784,9 @@ spec:
default: 5
format: int64
type: integer
value:
format: int64
type: integer
type: object
http:
properties:
Expand Down
12 changes: 12 additions & 0 deletions config/namespace-install.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5999,6 +5999,9 @@ spec:
duration:
default: 1s
type: string
keyCount:
format: int32
type: integer
msgSize:
default: 8
format: int32
Expand All @@ -6007,6 +6010,9 @@ spec:
default: 5
format: int64
type: integer
value:
format: int64
type: integer
type: object
http:
properties:
Expand Down Expand Up @@ -9767,6 +9773,9 @@ spec:
duration:
default: 1s
type: string
keyCount:
format: int32
type: integer
msgSize:
default: 8
format: int32
Expand All @@ -9775,6 +9784,9 @@ spec:
default: 5
format: int64
type: integer
value:
format: int64
type: integer
type: object
http:
properties:
Expand Down
20 changes: 20 additions & 0 deletions docs/APIs.md
Original file line number Diff line number Diff line change
Expand Up @@ -1096,6 +1096,26 @@ Size of each generated message
</p>
</td>
</tr>
<tr>
<td>
<code>keyCount</code></br> <em> int32 </em>
</td>
<td>
<p>
KeyCount is the number of unique keys in the payload
</p>
</td>
</tr>
<tr>
<td>
<code>value</code></br> <em> uint64 </em>
</td>
<td>
<p>
Value is an optional uint64 value to be written in to the payload
</p>
</td>
</tr>
</tbody>
</table>
<h3 id="numaflow.numaproj.io/v1alpha1.GetDaemonDeploymentReq">
Expand Down
27 changes: 27 additions & 0 deletions examples/1-simple-pipeline-keys.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
apiVersion: numaflow.numaproj.io/v1alpha1
kind: Pipeline
metadata:
name: simple-pipeline
spec:
vertices:
- name: in
source:
# A self data generating source
generator:
rpu: 5
duration: 1s
keyCount: 5
value: 5
- name: cat
udf:
builtin:
name: cat # A built-in UDF which simply cats the message
- name: out
sink:
# A simple log printing sink
log: {}
edges:
- from: in
to: cat
- from: cat
to: out
Loading

0 comments on commit abfdd78

Please sign in to comment.