@opensoha/contracts 0.1.24 → 0.1.26

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (137) hide show
  1. package/COMPATIBILITY.md +24 -0
  2. package/README.md +1 -1
  3. package/agent/environment/export.go +1 -0
  4. package/agent/environment/protocol_test.go +1 -1
  5. package/agent/guest/protocol_test.go +2 -2
  6. package/auth/catalog_generated.go +2 -2
  7. package/auth/gateway_permissions_test.go +48 -0
  8. package/auth/permission-catalog.json +300 -1
  9. package/compat/consumer-revisions.json +1 -1
  10. package/compat/json-schema-ecosystem-0.1.0.json +1 -1
  11. package/compat/openapi-loose-boundaries-0.1.0.json +1 -1
  12. package/delivery/document.schema.json +127 -9
  13. package/examples/relations_compat_test.go +18 -0
  14. package/fixtures/openapi/DeliveryDocument/invalid/migration-missing-guide-build-template.json +30 -0
  15. package/fixtures/openapi/DeliveryDocument/invalid/migration-missing-guide-deployment-template.json +30 -0
  16. package/fixtures/openapi/DeliveryDocument/invalid/migration-missing-guide-workflow-template.json +27 -0
  17. package/fixtures/openapi/DeliveryDocument/valid/migration-build-template.json +31 -0
  18. package/fixtures/openapi/DeliveryDocument/valid/migration-deployment-template.json +31 -0
  19. package/fixtures/openapi/DeliveryDocument/valid/migration-workflow-template.json +28 -0
  20. package/fixtures/openapi/DeliveryPlanInput/invalid/manual-plan.json +7 -0
  21. package/fixtures/openapi/DeliveryPlanInput/valid/manual-plan.json +6 -0
  22. package/fixtures/openapi/DeliveryTargetInput/invalid/candidate-on-runtime-deploy.json +9 -0
  23. package/fixtures/openapi/DeliveryTargetInput/invalid/config-update-missing-service.json +7 -0
  24. package/fixtures/openapi/DeliveryTargetInput/valid/template-configuration-only.json +8 -0
  25. package/fixtures/openapi/DeliveryTargetInput/valid/template-configuration-without-runtime-environment.json +1 -0
  26. package/fixtures/openapi/KubernetesAgentActionCheck/invalid/unproven-state.json +6 -0
  27. package/fixtures/openapi/KubernetesAgentActionCheck/valid/configured-denied.json +9 -0
  28. package/fixtures/openapi/KubernetesAgentActionProfile/invalid/wildcard.json +1 -0
  29. package/fixtures/openapi/KubernetesAgentActionProfile/valid/workbench.json +1 -0
  30. package/fixtures/openapi/KubernetesClusterRegistrationRequest/invalid/action-profile.json +3 -0
  31. package/fixtures/openapi/KubernetesClusterRegistrationRequest/valid/action-profile.json +5 -0
  32. package/fixtures/openapi/KubernetesImportCandidateListEnvelope/invalid/source-with-spec.json +33 -0
  33. package/fixtures/openapi/KubernetesImportCandidateListEnvelope/invalid/source-without-uid.json +29 -0
  34. package/fixtures/openapi/KubernetesImportCandidateListEnvelope/valid/stable-source.json +30 -0
  35. package/fixtures/openapi/KubernetesNodeListEnvelope/invalid/condition-status-boolean.json +17 -0
  36. package/fixtures/openapi/KubernetesNodeListEnvelope/invalid/taint-effect-missing.json +16 -0
  37. package/fixtures/openapi/KubernetesNodeListEnvelope/valid/legacy-fields-absent.json +11 -0
  38. package/fixtures/openapi/KubernetesNodeListEnvelope/valid/no-taints.json +13 -0
  39. package/fixtures/openapi/KubernetesNodeListEnvelope/valid/ready-cordoned-tainted.json +28 -0
  40. package/fixtures/openapi/KubernetesNodeListEnvelope/valid/unknown-fields-null.json +13 -0
  41. package/fixtures/openapi/KubernetesPod/invalid/pod-uid.json +9 -0
  42. package/fixtures/openapi/KubernetesPod/valid/pod-uid.json +9 -0
  43. package/fixtures/openapi/KubernetesPodDetail/invalid/pod-uid.json +6 -0
  44. package/fixtures/openapi/KubernetesPodDetail/valid/pod-uid.json +6 -0
  45. package/fixtures/openapi/KubernetesServiceImportRequest/invalid/empty-source-uid.json +48 -0
  46. package/fixtures/openapi/KubernetesServiceImportRequest/valid/pinned-workloads-and-cr.json +48 -0
  47. package/fixtures/openapi/KubernetesTopologyCoverage/invalid/empty-as-success.json +5 -0
  48. package/fixtures/openapi/KubernetesTopologyCoverage/valid/not-installed.json +6 -0
  49. package/fixtures/openapi/KubernetesTopologyGraphEdge/invalid/negative-weight.json +8 -0
  50. package/fixtures/openapi/KubernetesTopologyGraphEdge/valid/zero-weight.json +20 -0
  51. package/fixtures/openapi/KubernetesTopologyGraphNode/invalid/fake-flow-kind.json +42 -0
  52. package/fixtures/openapi/KubernetesTopologyGraphNode/valid/rule.json +42 -0
  53. package/fixtures/openapi/KubernetesTopologySnapshot/invalid/raw-source-field.json +33 -0
  54. package/fixtures/openapi/KubernetesTopologySnapshot/valid/projected-source.json +32 -0
  55. package/fixtures/openapi/KubernetesTopologySnapshotRequest/invalid/arbitrary-gvr.json +8 -0
  56. package/fixtures/openapi/KubernetesTopologySnapshotRequest/valid/bounded-sources.json +11 -0
  57. package/fixtures/openapi/KubernetesTopologySourceQuery/invalid/cluster-namespace.json +4 -0
  58. package/fixtures/openapi/KubernetesTopologySourceQuery/valid/all-namespaces.json +4 -0
  59. package/fixtures/openapi/ManifestExecutionTaskPayload/invalid/initialization.json +7 -0
  60. package/fixtures/openapi/ManifestExecutionTaskPayload/valid/initialization.json +7 -0
  61. package/fixtures/openapi/ManifestRootResource/invalid/root.json +1 -0
  62. package/fixtures/openapi/ManifestRootResource/valid/root.json +1 -0
  63. package/fixtures/openapi/ResourceMonitoringPanel/invalid/unknown-quality.json +7 -0
  64. package/fixtures/openapi/ResourceMonitoringPanel/valid/not-collected.json +7 -0
  65. package/fixtures/openapi/ResourceMonitoringPoint/invalid/string-zero.json +4 -0
  66. package/fixtures/openapi/ResourceMonitoringPoint/valid/missing.json +4 -0
  67. package/fixtures/openapi/ResourceMonitoringPoint/valid/zero.json +4 -0
  68. package/fixtures/openapi/ResourceMonitoringView/invalid/raw-query.json +12 -0
  69. package/fixtures/openapi/ResourceMonitoringView/valid/unconfigured.json +12 -0
  70. package/fixtures/openapi/ResourceRelationConfig/invalid/executable-rule.json +17 -0
  71. package/fixtures/openapi/ResourceRelationConfig/valid/unknown-kind.json +13 -0
  72. package/fixtures/openapi/ServiceDeploymentTemplateInput/invalid/migration-missing-guide-valid-yaml.json +38 -0
  73. package/fixtures/openapi/ServiceDeploymentTemplateInput/valid/migration-valid-yaml.json +39 -0
  74. package/fixtures/openapi/TemplateMigrationAssessment/invalid/initialization.json +9 -0
  75. package/fixtures/openapi/TemplateMigrationAssessment/valid/initialization.json +9 -0
  76. package/fixtures/openapi/TemplateMigrationPolicy/invalid/blank-guide.json +5 -0
  77. package/fixtures/openapi/TemplateMigrationPolicy/invalid/missing-guide.json +4 -0
  78. package/fixtures/openapi/TemplateMigrationPolicy/invalid/unknown-escape-hatch.json +6 -0
  79. package/fixtures/openapi/TemplateMigrationPolicy/valid/legacy-safe.json +4 -0
  80. package/fixtures/openapi/TemplateMigrationPolicy/valid/ordered-data-change.json +5 -0
  81. package/fixtures/openapi/TemplateUpdateBatchInput/invalid/duplicate-candidates.json +11 -0
  82. package/fixtures/openapi/TemplateUpdateBatchInput/invalid/empty-identities.json +10 -0
  83. package/fixtures/openapi/TemplateUpdateBatchInput/valid/staged-adoption.json +10 -0
  84. package/fixtures/openapi/TemplateUpdatePolicyInput/invalid/unknown-mode.json +8 -0
  85. package/fixtures/openapi/TemplateUpdatePolicyInput/valid/explicit-automatic.json +8 -0
  86. package/fixtures/openapi/TemplateUpdatePreviewInput/invalid/empty-identities.json +10 -0
  87. package/fixtures/openapi/TemplateUpdatePreviewInput/invalid/empty-targets.json +6 -0
  88. package/fixtures/openapi/TemplateUpdatePreviewInput/valid/cross-version-manual.json +14 -0
  89. package/gen/go/sohaapi/client.go +1 -1
  90. package/gen/go/sohaapi/client_test.go +2 -2
  91. package/gen/go/sohaapi/import_source_compat_test.go +12 -0
  92. package/gen/go/sohaapi/kubernetes_monitoring_test.go +67 -0
  93. package/gen/go/sohaapi/types.go +2210 -387
  94. package/gen/ts/sohaapi/index.ts +1862 -5
  95. package/go.mod +2 -2
  96. package/helmrelease/delivery.go +4 -1
  97. package/helmrelease/initialization.go +10 -0
  98. package/helmrelease/runtime/delivery.go +40 -10
  99. package/helmrelease/runtime/delivery_test.go +4 -0
  100. package/helmrelease/runtime/initialization.go +186 -0
  101. package/helmrelease/runtime/initialization_test.go +203 -0
  102. package/openapi/soha-api.json +5514 -1179
  103. package/openapi/soha-api.yaml +1080 -11
  104. package/openapi/spec_generated.go +3 -3
  105. package/openapi/spec_test.go +76 -0
  106. package/package.json +1 -1
  107. package/resource/agent_access.go +12 -0
  108. package/resource/agent_profiles.go +62 -0
  109. package/resource/agent_profiles_test.go +36 -0
  110. package/resource/kubernetes_kinds.go +73 -0
  111. package/resource/kubernetes_kinds_test.go +38 -0
  112. package/resource/models.go +25 -14
  113. package/resource/network_topology.go +166 -0
  114. package/resource/network_topology_projection.go +208 -0
  115. package/resource/network_topology_projection_test.go +53 -0
  116. package/resource/network_topology_test.go +51 -0
  117. package/resource/network_topology_validation.go +29 -0
  118. package/resource/node_drain.go +34 -0
  119. package/resource/relations.go +225 -0
  120. package/resource/relations_test.go +47 -0
  121. package/resource/resource_monitoring.go +99 -0
  122. package/resource/root_cr.go +38 -0
  123. package/resource/runtime/argocd_integration_test.go +1 -1
  124. package/resource/runtime/initialization.go +66 -0
  125. package/resource/runtime/initialization_test.go +80 -0
  126. package/resource/runtime/network_topology.go +232 -0
  127. package/resource/runtime/network_topology_test.go +62 -0
  128. package/resource/runtime/node_drain.go +124 -0
  129. package/resource/runtime/node_drain_test.go +95 -0
  130. package/resource/runtime/relations.go +161 -0
  131. package/resource/runtime/relations_test.go +100 -0
  132. package/resource/runtime/resource_edit.go +128 -0
  133. package/resource/runtime/resource_edit_test.go +183 -0
  134. package/resource/runtime/resource_monitoring.go +243 -0
  135. package/resource/runtime/resource_monitoring_test.go +88 -0
  136. package/resource/runtime/root_cr.go +79 -0
  137. package/resource/runtime/root_cr_test.go +118 -0
@@ -0,0 +1,9 @@
1
+ {
2
+ "name": "api-0",
3
+ "namespace": "test",
4
+ "phase": "Running",
5
+ "restarts": 0,
6
+ "uid": "",
7
+ "readyContainers": "1/1",
8
+ "ageSeconds": 60
9
+ }
@@ -0,0 +1,9 @@
1
+ {
2
+ "name": "api-0",
3
+ "namespace": "test",
4
+ "phase": "Running",
5
+ "restarts": 0,
6
+ "uid": "uid-original",
7
+ "readyContainers": "1/1",
8
+ "ageSeconds": 60
9
+ }
@@ -0,0 +1,6 @@
1
+ {
2
+ "name": "api-0",
3
+ "namespace": "test",
4
+ "phase": "Running",
5
+ "uid": ""
6
+ }
@@ -0,0 +1,6 @@
1
+ {
2
+ "name": "api-0",
3
+ "namespace": "test",
4
+ "phase": "Running",
5
+ "uid": "uid-original"
6
+ }
@@ -0,0 +1,48 @@
1
+ {
2
+ "clusterId": "cluster-prod",
3
+ "namespace": "payments",
4
+ "applicationKey": "payments",
5
+ "applicationName": "Payments",
6
+ "environmentKey": "prod",
7
+ "environmentName": "Production",
8
+ "ownershipMode": "observe_only",
9
+ "workloads": [
10
+ {
11
+ "workloadKind": "Deployment",
12
+ "workloadName": "deployment",
13
+ "expectedUid": "",
14
+ "expectedSpecDigest": "bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb"
15
+ },
16
+ {
17
+ "workloadKind": "StatefulSet",
18
+ "workloadName": "statefulset",
19
+ "expectedUid": "uid-StatefulSet",
20
+ "expectedSpecDigest": "bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb"
21
+ },
22
+ {
23
+ "workloadKind": "DaemonSet",
24
+ "workloadName": "daemonset",
25
+ "expectedUid": "uid-DaemonSet",
26
+ "expectedSpecDigest": "bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb"
27
+ },
28
+ {
29
+ "workloadKind": "Job",
30
+ "workloadName": "job",
31
+ "expectedUid": "uid-Job",
32
+ "expectedSpecDigest": "bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb"
33
+ },
34
+ {
35
+ "workloadKind": "CronJob",
36
+ "workloadName": "cronjob",
37
+ "expectedUid": "uid-CronJob",
38
+ "expectedSpecDigest": "bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb"
39
+ },
40
+ {
41
+ "workloadKind": "CustomResource",
42
+ "workloadName": "customresource",
43
+ "expectedUid": "uid-CustomResource",
44
+ "expectedSpecDigest": "bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb",
45
+ "crdName": "elasticsearches.elasticsearch.k8s.elastic.co"
46
+ }
47
+ ]
48
+ }
@@ -0,0 +1,48 @@
1
+ {
2
+ "clusterId": "cluster-prod",
3
+ "namespace": "payments",
4
+ "applicationKey": "payments",
5
+ "applicationName": "Payments",
6
+ "environmentKey": "prod",
7
+ "environmentName": "Production",
8
+ "ownershipMode": "observe_only",
9
+ "workloads": [
10
+ {
11
+ "workloadKind": "Deployment",
12
+ "workloadName": "deployment",
13
+ "expectedUid": "uid-Deployment",
14
+ "expectedSpecDigest": "bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb"
15
+ },
16
+ {
17
+ "workloadKind": "StatefulSet",
18
+ "workloadName": "statefulset",
19
+ "expectedUid": "uid-StatefulSet",
20
+ "expectedSpecDigest": "bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb"
21
+ },
22
+ {
23
+ "workloadKind": "DaemonSet",
24
+ "workloadName": "daemonset",
25
+ "expectedUid": "uid-DaemonSet",
26
+ "expectedSpecDigest": "bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb"
27
+ },
28
+ {
29
+ "workloadKind": "Job",
30
+ "workloadName": "job",
31
+ "expectedUid": "uid-Job",
32
+ "expectedSpecDigest": "bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb"
33
+ },
34
+ {
35
+ "workloadKind": "CronJob",
36
+ "workloadName": "cronjob",
37
+ "expectedUid": "uid-CronJob",
38
+ "expectedSpecDigest": "bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb"
39
+ },
40
+ {
41
+ "workloadKind": "CustomResource",
42
+ "workloadName": "customresource",
43
+ "expectedUid": "uid-CustomResource",
44
+ "expectedSpecDigest": "bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb",
45
+ "crdName": "elasticsearches.elasticsearch.k8s.elastic.co"
46
+ }
47
+ ]
48
+ }
@@ -0,0 +1,5 @@
1
+ {
2
+ "provider": "apisix",
3
+ "sourceId": "apisix.apisixroutes",
4
+ "state": "empty"
5
+ }
@@ -0,0 +1,6 @@
1
+ {
2
+ "provider": "apisix",
3
+ "sourceId": "apisix.apisixroutes",
4
+ "state": "not_installed",
5
+ "reasonCode": "api_not_served"
6
+ }
@@ -0,0 +1,8 @@
1
+ {
2
+ "id": "edge-1",
3
+ "source": "a",
4
+ "target": "b",
5
+ "relation": "weights",
6
+ "resolutionState": "resolved",
7
+ "weight": -1
8
+ }
@@ -0,0 +1,20 @@
1
+ {
2
+ "id": "edge-1",
3
+ "source": "rule:route-uid:0",
4
+ "target": "service-1",
5
+ "relation": "weights",
6
+ "resolutionState": "resolved",
7
+ "port": "http",
8
+ "weight": 0,
9
+ "totalWeight": 100,
10
+ "sourceRef": {
11
+ "clusterId": "cluster-a",
12
+ "apiVersion": "traefik.io/v1alpha1",
13
+ "kind": "IngressRoute",
14
+ "name": "api",
15
+ "namespace": "team-a",
16
+ "scopeMode": "namespace",
17
+ "uid": "route-uid",
18
+ "resourceVersion": "7"
19
+ }
20
+ }
@@ -0,0 +1,42 @@
1
+ {
2
+ "id": "rule:route-uid:0",
3
+ "type": "live-traffic",
4
+ "label": "api /",
5
+ "provider": "traefik",
6
+ "protocol": "HTTP",
7
+ "resolutionState": "resolved",
8
+ "resource": {
9
+ "clusterId": "cluster-a",
10
+ "apiVersion": "traefik.io/v1alpha1",
11
+ "kind": "IngressRoute",
12
+ "name": "api",
13
+ "namespace": "team-a",
14
+ "scopeMode": "namespace",
15
+ "uid": "route-uid",
16
+ "resourceVersion": "7"
17
+ },
18
+ "rule": {
19
+ "index": 0,
20
+ "matchGroups": [
21
+ [
22
+ {
23
+ "type": "host",
24
+ "operator": "exact",
25
+ "value": "api.example.test"
26
+ },
27
+ {
28
+ "type": "path",
29
+ "operator": "prefix",
30
+ "value": "/"
31
+ }
32
+ ]
33
+ ],
34
+ "tlsMode": "terminate"
35
+ },
36
+ "properties": [
37
+ {
38
+ "name": "source",
39
+ "value": "configuration"
40
+ }
41
+ ]
42
+ }
@@ -0,0 +1,42 @@
1
+ {
2
+ "id": "rule:route-uid:0",
3
+ "type": "rule",
4
+ "label": "api /",
5
+ "provider": "traefik",
6
+ "protocol": "HTTP",
7
+ "resolutionState": "resolved",
8
+ "resource": {
9
+ "clusterId": "cluster-a",
10
+ "apiVersion": "traefik.io/v1alpha1",
11
+ "kind": "IngressRoute",
12
+ "name": "api",
13
+ "namespace": "team-a",
14
+ "scopeMode": "namespace",
15
+ "uid": "route-uid",
16
+ "resourceVersion": "7"
17
+ },
18
+ "rule": {
19
+ "index": 0,
20
+ "matchGroups": [
21
+ [
22
+ {
23
+ "type": "host",
24
+ "operator": "exact",
25
+ "value": "api.example.test"
26
+ },
27
+ {
28
+ "type": "path",
29
+ "operator": "prefix",
30
+ "value": "/"
31
+ }
32
+ ]
33
+ ],
34
+ "tlsMode": "terminate"
35
+ },
36
+ "properties": [
37
+ {
38
+ "name": "source",
39
+ "value": "configuration"
40
+ }
41
+ ]
42
+ }
@@ -0,0 +1,33 @@
1
+ {
2
+ "version": "v1",
3
+ "sources": [
4
+ {
5
+ "coverage": {
6
+ "provider": "traefik",
7
+ "sourceId": "traefik.ingressroutes",
8
+ "state": "available",
9
+ "namespace": "team-a",
10
+ "supportedKinds": [
11
+ "IngressRoute"
12
+ ],
13
+ "observedAt": "2026-10-19T02:00:00Z"
14
+ },
15
+ "objects": [
16
+ {
17
+ "resource": {
18
+ "clusterId": "cluster-a",
19
+ "apiVersion": "traefik.io/v1alpha1",
20
+ "kind": "IngressRoute",
21
+ "name": "api",
22
+ "namespace": "team-a",
23
+ "scopeMode": "namespace",
24
+ "uid": "route-uid",
25
+ "resourceVersion": "7"
26
+ },
27
+ "content": "{}",
28
+ "originalManifest": "secret configuration must not cross the snapshot contract"
29
+ }
30
+ ]
31
+ }
32
+ ]
33
+ }
@@ -0,0 +1,32 @@
1
+ {
2
+ "version": "v1",
3
+ "sources": [
4
+ {
5
+ "coverage": {
6
+ "provider": "traefik",
7
+ "sourceId": "traefik.ingressroutes",
8
+ "state": "available",
9
+ "namespace": "team-a",
10
+ "supportedKinds": [
11
+ "IngressRoute"
12
+ ],
13
+ "observedAt": "2026-10-19T02:00:00Z"
14
+ },
15
+ "objects": [
16
+ {
17
+ "resource": {
18
+ "clusterId": "cluster-a",
19
+ "apiVersion": "traefik.io/v1alpha1",
20
+ "kind": "IngressRoute",
21
+ "name": "api",
22
+ "namespace": "team-a",
23
+ "scopeMode": "namespace",
24
+ "uid": "route-uid",
25
+ "resourceVersion": "7"
26
+ },
27
+ "content": "{\"spec\": {\"routes\": [{\"match\": \"Host(`api.example.test`)\", \"services\": [{\"name\": \"api\", \"port\": 80}]}]}}"
28
+ }
29
+ ]
30
+ }
31
+ ]
32
+ }
@@ -0,0 +1,8 @@
1
+ {
2
+ "queries": [
3
+ {
4
+ "sourceId": "kubernetes.secrets",
5
+ "resource": "secrets"
6
+ }
7
+ ]
8
+ }
@@ -0,0 +1,11 @@
1
+ {
2
+ "queries": [
3
+ {
4
+ "sourceId": "traefik.ingressroutes",
5
+ "namespace": "team-a"
6
+ },
7
+ {
8
+ "sourceId": "kubernetes.ingressclasses"
9
+ }
10
+ ]
11
+ }
@@ -0,0 +1,4 @@
1
+ {
2
+ "sourceId": "kubernetes.ingressclasses",
3
+ "namespace": "team-a"
4
+ }
@@ -0,0 +1,4 @@
1
+ {
2
+ "sourceId": "traefik.ingressroutes",
3
+ "namespace": ""
4
+ }
@@ -0,0 +1,7 @@
1
+ {
2
+ "action": "preflight",
3
+ "packageId": "pkg",
4
+ "generation": 1,
5
+ "idempotencyKey": "initialization:plan:target",
6
+ "initializationPlanId": ""
7
+ }
@@ -0,0 +1,7 @@
1
+ {
2
+ "action": "preflight",
3
+ "packageId": "pkg",
4
+ "generation": 1,
5
+ "idempotencyKey": "initialization:plan:target",
6
+ "initializationPlanId": "plan"
7
+ }
@@ -0,0 +1 @@
1
+ {"apiVersion":"unknown.example/v1","kind":"Database","namespace":"team","name":"db","uid":"","generation":0,"crdName":"databases.unknown.example"}
@@ -0,0 +1 @@
1
+ {"apiVersion": "unknown.example/v1", "kind": "Database", "namespace": "team", "name": "db", "uid": "uid-1", "generation": 2, "crdName": "databases.unknown.example", "targetId": "target", "deliveryPlanId": "plan"}
@@ -0,0 +1,7 @@
1
+ {
2
+ "key": "conntrack.entries",
3
+ "label": "Conntrack",
4
+ "unit": "count",
5
+ "quality": "unknown",
6
+ "series": []
7
+ }
@@ -0,0 +1,7 @@
1
+ {
2
+ "key": "conntrack.entries",
3
+ "label": "Conntrack",
4
+ "unit": "count",
5
+ "quality": "not_collected",
6
+ "series": []
7
+ }
@@ -0,0 +1,4 @@
1
+ {
2
+ "timestamp": "2026-10-19T00:00:00Z",
3
+ "value": "0"
4
+ }
@@ -0,0 +1,4 @@
1
+ {
2
+ "timestamp": "2026-10-19T00:00:00Z",
3
+ "value": null
4
+ }
@@ -0,0 +1,4 @@
1
+ {
2
+ "timestamp": "2026-10-19T00:00:00Z",
3
+ "value": 0
4
+ }
@@ -0,0 +1,12 @@
1
+ {
2
+ "clusterId": "c",
3
+ "view": "raw",
4
+ "from": "2026-10-18T23:00:00Z",
5
+ "to": "2026-10-19T00:00:00Z",
6
+ "stepSeconds": 60,
7
+ "generatedAt": "2026-10-19T00:00:00Z",
8
+ "snapshotQuality": "partial",
9
+ "unscheduledPendingPods": null,
10
+ "nodes": [],
11
+ "panels": []
12
+ }
@@ -0,0 +1,12 @@
1
+ {
2
+ "clusterId": "c",
3
+ "view": "overview",
4
+ "from": "2026-10-18T23:00:00Z",
5
+ "to": "2026-10-19T00:00:00Z",
6
+ "stepSeconds": 60,
7
+ "generatedAt": "2026-10-19T00:00:00Z",
8
+ "snapshotQuality": "partial",
9
+ "unscheduledPendingPods": null,
10
+ "nodes": [],
11
+ "panels": []
12
+ }
@@ -0,0 +1,17 @@
1
+ {
2
+ "version": "v1",
3
+ "rootUid": "root",
4
+ "sources": [],
5
+ "rules": [
6
+ {
7
+ "id": "bad",
8
+ "type": "script",
9
+ "target": {
10
+ "apiVersion": "v1",
11
+ "resource": "pods",
12
+ "kind": "Pod",
13
+ "namespace": "team"
14
+ }
15
+ }
16
+ ]
17
+ }
@@ -0,0 +1,13 @@
1
+ {
2
+ "version": "v1",
3
+ "rootUid": "root",
4
+ "sources": [
5
+ {
6
+ "apiVersion": "widgets.test/v1",
7
+ "resource": "widgets",
8
+ "kind": "Widget",
9
+ "namespace": "team"
10
+ }
11
+ ],
12
+ "rules": []
13
+ }
@@ -0,0 +1,38 @@
1
+ {
2
+ "key": "http",
3
+ "name": "HTTP service",
4
+ "source": {
5
+ "renderer": "raw_yaml",
6
+ "files": [
7
+ {
8
+ "path": "deployment.yaml",
9
+ "content": "kind: Deployment\napiVersion: apps/v1\n"
10
+ }
11
+ ]
12
+ },
13
+ "parameterSchema": {
14
+ "type": "object",
15
+ "properties": {
16
+ "port": {
17
+ "type": "integer",
18
+ "minimum": 1,
19
+ "maximum": 65535
20
+ }
21
+ },
22
+ "required": [
23
+ "port"
24
+ ]
25
+ },
26
+ "defaults": {
27
+ "port": 8080
28
+ },
29
+ "health": {
30
+ "mode": "workload_ready",
31
+ "timeoutSeconds": 300
32
+ },
33
+ "enabled": true,
34
+ "migrationPolicy": {
35
+ "sequential": true,
36
+ "irreversible": false
37
+ }
38
+ }
@@ -0,0 +1,39 @@
1
+ {
2
+ "key": "http",
3
+ "name": "HTTP service",
4
+ "source": {
5
+ "renderer": "raw_yaml",
6
+ "files": [
7
+ {
8
+ "path": "deployment.yaml",
9
+ "content": "kind: Deployment\napiVersion: apps/v1\n"
10
+ }
11
+ ]
12
+ },
13
+ "parameterSchema": {
14
+ "type": "object",
15
+ "properties": {
16
+ "port": {
17
+ "type": "integer",
18
+ "minimum": 1,
19
+ "maximum": 65535
20
+ }
21
+ },
22
+ "required": [
23
+ "port"
24
+ ]
25
+ },
26
+ "defaults": {
27
+ "port": 8080
28
+ },
29
+ "health": {
30
+ "mode": "workload_ready",
31
+ "timeoutSeconds": 300
32
+ },
33
+ "enabled": true,
34
+ "migrationPolicy": {
35
+ "sequential": true,
36
+ "irreversible": true,
37
+ "guide": "Backup, migrate in order, verify; forward repair only."
38
+ }
39
+ }
@@ -0,0 +1,9 @@
1
+ {
2
+ "fromVersion": 0,
3
+ "toVersion": 3,
4
+ "blocked": false,
5
+ "requiresApproval": true,
6
+ "reason": "首次发布须先证明不存在并审批",
7
+ "steps": [],
8
+ "initialization": "force"
9
+ }
@@ -0,0 +1,9 @@
1
+ {
2
+ "fromVersion": 0,
3
+ "toVersion": 3,
4
+ "blocked": false,
5
+ "requiresApproval": true,
6
+ "reason": "首次发布须先证明不存在并审批",
7
+ "steps": [],
8
+ "initialization": true
9
+ }
@@ -0,0 +1,5 @@
1
+ {
2
+ "sequential": false,
3
+ "irreversible": true,
4
+ "guide": " \n"
5
+ }
@@ -0,0 +1,4 @@
1
+ {
2
+ "sequential": true,
3
+ "irreversible": false
4
+ }
@@ -0,0 +1,6 @@
1
+ {
2
+ "sequential": true,
3
+ "irreversible": true,
4
+ "guide": "manual",
5
+ "force": true
6
+ }
@@ -0,0 +1,4 @@
1
+ {
2
+ "sequential": false,
3
+ "irreversible": false
4
+ }
@@ -0,0 +1,5 @@
1
+ {
2
+ "sequential": true,
3
+ "irreversible": true,
4
+ "guide": "先备份,再按相邻版本发布;完成业务检查后继续。"
5
+ }
@@ -0,0 +1,11 @@
1
+ {
2
+ "previewDigest": "sha256:abc",
3
+ "candidateIds": [
4
+ "candidate-1",
5
+ "candidate-1"
6
+ ],
7
+ "waveSize": 2,
8
+ "stopOnFailure": true,
9
+ "acknowledgeHistoryGaps": false,
10
+ "idempotencyKey": "manual-1"
11
+ }
@@ -0,0 +1,10 @@
1
+ {
2
+ "previewDigest": "",
3
+ "candidateIds": [
4
+ ""
5
+ ],
6
+ "waveSize": 2,
7
+ "stopOnFailure": true,
8
+ "acknowledgeHistoryGaps": false,
9
+ "idempotencyKey": ""
10
+ }