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
Add TinyScenario CRD for storing per-port sample data from traces
New CRD enables capturing real trace data as reusable "scenarios" for
edge validation, replacing schema-generated mock data with actual payloads.
- TinyScenario CRD: project-scoped, owned by TinyProject, stores
ScenarioPortData (port full name + JSON payload) per port
- Resource manager CRUD: CreateScenario, GetProjectScenarios,
GetScenario, UpdateScenario, DeleteScenario
- Conversion functions: ScenarioPortsFromTrace (trace → CRD),
RuntimeDataFromScenario (CRD → SimulatePortDataFromMaps input)
- CRD chart bumped to 0.1.44
Copy file name to clipboardExpand all lines: api-docs.md
+62-38Lines changed: 62 additions & 38 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -17,15 +17,17 @@ Package v1alpha1 contains API Schema definitions for the operator v1alpha1 API g
17
17
-[TinyNodeList](#tinynodelist)
18
18
-[TinyProject](#tinyproject)
19
19
-[TinyProjectList](#tinyprojectlist)
20
+
-[TinyScenario](#tinyscenario)
21
+
-[TinyScenarioList](#tinyscenariolist)
20
22
-[TinySignal](#tinysignal)
21
23
-[TinySignalList](#tinysignallist)
22
-
-[TinyTracker](#tinytracker)
23
-
-[TinyTrackerList](#tinytrackerlist)
24
24
-[TinyWidgetPage](#tinywidgetpage)
25
25
-[TinyWidgetPageList](#tinywidgetpagelist)
26
26
27
27
28
28
29
+
30
+
29
31
#### Position
30
32
31
33
_Underlying type:__integer_
@@ -37,6 +39,21 @@ _Appears in:_
37
39
38
40
39
41
42
+
#### ScenarioPortData
43
+
44
+
45
+
46
+
ScenarioPortData stores the sample data for a single port
47
+
48
+
_Appears in:_
49
+
-[TinyScenarioSpec](#tinyscenariospec)
50
+
51
+
| Field | Description |
52
+
| --- | --- |
53
+
|`port`_string_| Port is the full port name (e.g., "flowid.module.component-suffix:portname") |
54
+
|`data`_[byte](https://kubernetes.io/docs/reference/generated/kubernetes-api/v1.27/#byte-v1-meta) array_| Data is the JSON-encoded sample payload for this port |
55
+
56
+
40
57
#### TinyFlow
41
58
42
59
@@ -180,6 +197,7 @@ _Appears in:_
180
197
|`addr`_string_| INSERT ADDITIONAL STATUS FIELD - define observed state of cluster<br /><br />Important: Run "make" to regenerate code after modifying this file |
|`kind`_string_| Kind is a string value representing the REST resource this object represents.<br /><br />Servers may infer this from the endpoint the client submits requests to.<br /><br />Cannot be updated.<br /><br />In CamelCase.<br /><br />More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds|
422
443
|`apiVersion`_string_| APIVersion defines the versioned schema of this representation of an object.<br /><br />Servers should convert recognized schemas to the latest internal value, and<br /><br />may reject unrecognized values.<br /><br />More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources|
423
444
|`metadata`_[ObjectMeta](https://kubernetes.io/docs/reference/generated/kubernetes-api/v1.27/#objectmeta-v1-meta)_| Refer to Kubernetes API documentation for fields of `metadata`. |
|`kind`_string_| Kind is a string value representing the REST resource this object represents.<br /><br />Servers may infer this from the endpoint the client submits requests to.<br /><br />Cannot be updated.<br /><br />In CamelCase.<br /><br />More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds|
441
462
|`apiVersion`_string_| APIVersion defines the versioned schema of this representation of an object.<br /><br />Servers should convert recognized schemas to the latest internal value, and<br /><br />may reject unrecognized values.<br /><br />More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources|
442
463
|`metadata`_[ListMeta](https://kubernetes.io/docs/reference/generated/kubernetes-api/v1.27/#listmeta-v1-meta)_| Refer to Kubernetes API documentation for fields of `metadata`. |
443
-
|`items`_[TinySignal](#tinysignal) array_||
464
+
|`items`_[TinyScenario](#tinyscenario) array_||
444
465
445
466
446
-
#### TinySignalSpec
467
+
#### TinyScenarioSpec
447
468
448
469
449
470
450
-
TinySignalSpec defines the desired state of TinySignal
471
+
TinyScenarioSpec defines the desired state of TinyScenario
451
472
452
473
_Appears in:_
453
-
-[TinySignal](#tinysignal)
474
+
-[TinyScenario](#tinyscenario)
454
475
455
476
| Field | Description |
456
477
| --- | --- |
457
-
|`node`_string_| Node is the name of the TinyNode to signal |
458
-
|`port`_string_| Port is the port on the node to send the signal to |
459
-
|`data`_[byte](https://kubernetes.io/docs/reference/generated/kubernetes-api/v1.27/#byte-v1-meta) array_| Data is the payload to send with the signal |
478
+
|`ports`_[ScenarioPortData](#scenarioportdata) array_| Ports contains per-port sample data entries |
460
479
461
480
462
-
#### TinySignalStatus
481
+
#### TinyScenarioStatus
463
482
464
483
465
484
466
-
TinySignalStatus defines the observed state of TinySignal
485
+
TinyScenarioStatus defines the observed state of TinyScenario
467
486
468
487
_Appears in:_
469
-
-[TinySignal](#tinysignal)
488
+
-[TinyScenario](#tinyscenario)
470
489
471
490
472
491
473
-
#### TinyTracker
492
+
#### TinySignal
474
493
475
494
476
495
477
-
TinyTracker is the Schema for the tinytrackers API
|`kind`_string_| Kind is a string value representing the REST resource this object represents.<br /><br />Servers may infer this from the endpoint the client submits requests to.<br /><br />Cannot be updated.<br /><br />In CamelCase.<br /><br />More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds|
487
506
|`apiVersion`_string_| APIVersion defines the versioned schema of this representation of an object.<br /><br />Servers should convert recognized schemas to the latest internal value, and<br /><br />may reject unrecognized values.<br /><br />More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources|
488
507
|`metadata`_[ObjectMeta](https://kubernetes.io/docs/reference/generated/kubernetes-api/v1.27/#objectmeta-v1-meta)_| Refer to Kubernetes API documentation for fields of `metadata`. |
|`kind`_string_| Kind is a string value representing the REST resource this object represents.<br /><br />Servers may infer this from the endpoint the client submits requests to.<br /><br />Cannot be updated.<br /><br />In CamelCase.<br /><br />More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds|
506
525
|`apiVersion`_string_| APIVersion defines the versioned schema of this representation of an object.<br /><br />Servers should convert recognized schemas to the latest internal value, and<br /><br />may reject unrecognized values.<br /><br />More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources|
507
526
|`metadata`_[ListMeta](https://kubernetes.io/docs/reference/generated/kubernetes-api/v1.27/#listmeta-v1-meta)_| Refer to Kubernetes API documentation for fields of `metadata`. |
508
-
|`items`_[TinyTracker](#tinytracker) array_||
527
+
|`items`_[TinySignal](#tinysignal) array_||
509
528
510
529
511
-
#### TinyTrackerSpec
530
+
#### TinySignalSpec
512
531
513
532
514
533
515
-
TinyTrackerSpec defines the desired state of Tracker
534
+
TinySignalSpec defines the desired state of TinySignal
516
535
517
536
_Appears in:_
518
-
-[TinyTracker](#tinytracker)
537
+
-[TinySignal](#tinysignal)
519
538
539
+
| Field | Description |
540
+
| --- | --- |
541
+
|`node`_string_| Node is the name of the TinyNode to signal |
542
+
|`port`_string_| Port is the port on the node to send the signal to |
543
+
|`data`_[byte](https://kubernetes.io/docs/reference/generated/kubernetes-api/v1.27/#byte-v1-meta) array_| Data is the payload to send with the signal |
520
544
521
545
522
-
#### TinyTrackerStatus
546
+
#### TinySignalStatus
523
547
524
548
525
549
526
-
TinyTrackerStatus defines the observed state of TinyTracker
550
+
TinySignalStatus defines the observed state of TinySignal
0 commit comments