@intentius/chant-lexicon-k8s 0.100.0 → 0.102.0

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 (261) hide show
  1. package/dist/actions/apps.d.ts +4 -4
  2. package/dist/actions/apps.d.ts.map +1 -1
  3. package/dist/actions/core.d.ts +5 -5
  4. package/dist/actions/core.d.ts.map +1 -1
  5. package/dist/actions/networking.d.ts.map +1 -1
  6. package/dist/codegen/generate-typescript.d.ts +2 -2
  7. package/dist/codegen/generate-typescript.d.ts.map +1 -1
  8. package/dist/codegen/generate.d.ts.map +1 -1
  9. package/dist/codegen/naming.d.ts.map +1 -1
  10. package/dist/codegen/versions.d.ts.map +1 -1
  11. package/dist/components/capability-plugin.d.ts.map +1 -1
  12. package/dist/composites/catalog.d.ts.map +1 -1
  13. package/dist/composites/cockroachdb-cluster.d.ts +2 -2
  14. package/dist/composites/gke-otel-collector.d.ts.map +1 -1
  15. package/dist/composites/index.d.ts +1 -0
  16. package/dist/composites/index.d.ts.map +1 -1
  17. package/dist/composites/otel-collector-agent.d.ts +24 -2
  18. package/dist/composites/otel-collector-agent.d.ts.map +1 -1
  19. package/dist/composites/otel-collector-gateway.d.ts +37 -52
  20. package/dist/composites/otel-collector-gateway.d.ts.map +1 -1
  21. package/dist/composites/otel-collector-node.d.ts +88 -0
  22. package/dist/composites/otel-collector-node.d.ts.map +1 -0
  23. package/dist/composites/otel-collector-rbac.d.ts +74 -0
  24. package/dist/composites/otel-collector-rbac.d.ts.map +1 -0
  25. package/dist/composites/otel-collector-shape.d.ts +7 -0
  26. package/dist/composites/otel-collector-shape.d.ts.map +1 -1
  27. package/dist/composites/otel-collector.d.ts +17 -21
  28. package/dist/composites/otel-collector.d.ts.map +1 -1
  29. package/dist/composites/ray-cluster.d.ts +6 -6
  30. package/dist/composites/ray-job.d.ts +5 -5
  31. package/dist/composites/ray-service.d.ts +6 -6
  32. package/dist/crd/crd-sources.d.ts.map +1 -1
  33. package/dist/crd/loader.d.ts.map +1 -1
  34. package/dist/crd/oci-chart.d.ts +50 -0
  35. package/dist/crd/oci-chart.d.ts.map +1 -0
  36. package/dist/crd/types.d.ts +5 -0
  37. package/dist/crd/types.d.ts.map +1 -1
  38. package/dist/effect-receipt-row.d.ts.map +1 -1
  39. package/dist/generated/index.d.ts +752 -729
  40. package/dist/generated/index.d.ts.map +1 -1
  41. package/dist/import/embedded.d.ts +4 -2
  42. package/dist/import/embedded.d.ts.map +1 -1
  43. package/dist/import/generator.d.ts.map +1 -1
  44. package/dist/import/live-export.d.ts +5 -0
  45. package/dist/import/live-export.d.ts.map +1 -1
  46. package/dist/import/parser.d.ts.map +1 -1
  47. package/dist/import/testdata/embedded/fixtures.d.ts +6 -0
  48. package/dist/import/testdata/embedded/fixtures.d.ts.map +1 -1
  49. package/dist/integrity.json +8 -6
  50. package/dist/lint/audit-catalog.d.ts.map +1 -1
  51. package/dist/lint/post-synth/index.d.ts.map +1 -1
  52. package/dist/lint/post-synth/otel-placement-helpers.d.ts +5 -1
  53. package/dist/lint/post-synth/otel-placement-helpers.d.ts.map +1 -1
  54. package/dist/lint/post-synth/wk8604.d.ts +19 -0
  55. package/dist/lint/post-synth/wk8604.d.ts.map +1 -0
  56. package/dist/lint/post-synth/wk8605.d.ts +23 -0
  57. package/dist/lint/post-synth/wk8605.d.ts.map +1 -0
  58. package/dist/manifest.json +1 -1
  59. package/dist/meta.json +156 -17
  60. package/dist/okf/index.md +5 -0
  61. package/dist/okf/rules/WK8604.md +11 -0
  62. package/dist/okf/rules/WK8605.md +11 -0
  63. package/dist/okf/types/APIGroup.md +3 -3
  64. package/dist/okf/types/APIGroupList.md +1 -1
  65. package/dist/okf/types/APIResourceList.md +1 -1
  66. package/dist/okf/types/APIService.md +1 -1
  67. package/dist/okf/types/APIServiceList.md +2 -2
  68. package/dist/okf/types/APIVersions.md +1 -1
  69. package/dist/okf/types/BatchJob.md +1 -1
  70. package/dist/okf/types/CSIDriver.md +1 -1
  71. package/dist/okf/types/CSIDriverList.md +2 -2
  72. package/dist/okf/types/CSINode.md +1 -1
  73. package/dist/okf/types/CSINodeList.md +2 -2
  74. package/dist/okf/types/CSIStorageCapacity.md +2 -2
  75. package/dist/okf/types/CSIStorageCapacityList.md +2 -2
  76. package/dist/okf/types/CertificateSigningRequest.md +1 -1
  77. package/dist/okf/types/CertificateSigningRequestList.md +2 -2
  78. package/dist/okf/types/ClusterRole.md +1 -1
  79. package/dist/okf/types/ClusterRoleBindingList.md +2 -2
  80. package/dist/okf/types/ClusterRoleList.md +2 -2
  81. package/dist/okf/types/ClusterTrustBundle.md +1 -1
  82. package/dist/okf/types/ClusterTrustBundleList.md +2 -2
  83. package/dist/okf/types/ComponentStatus.md +1 -1
  84. package/dist/okf/types/ComponentStatusList.md +2 -2
  85. package/dist/okf/types/ConfigMapList.md +2 -2
  86. package/dist/okf/types/ControllerRevisionList.md +2 -2
  87. package/dist/okf/types/CoreEventList.md +2 -2
  88. package/dist/okf/types/CronJob.md +1 -1
  89. package/dist/okf/types/CronJobList.md +2 -2
  90. package/dist/okf/types/CustomResourceDefinition.md +1 -1
  91. package/dist/okf/types/CustomResourceDefinitionList.md +2 -2
  92. package/dist/okf/types/DaemonSet.md +1 -1
  93. package/dist/okf/types/DaemonSetList.md +2 -2
  94. package/dist/okf/types/DeleteOptions.md +1 -1
  95. package/dist/okf/types/Deploy.md +1 -1
  96. package/dist/okf/types/DeploymentList.md +2 -2
  97. package/dist/okf/types/DeviceClass.md +1 -1
  98. package/dist/okf/types/DeviceClassList.md +2 -2
  99. package/dist/okf/types/DeviceTaintRule.md +1 -1
  100. package/dist/okf/types/DeviceTaintRuleList.md +2 -2
  101. package/dist/okf/types/EndpointSlice.md +2 -2
  102. package/dist/okf/types/EndpointSliceList.md +2 -2
  103. package/dist/okf/types/Endpoints.md +1 -1
  104. package/dist/okf/types/EndpointsList.md +2 -2
  105. package/dist/okf/types/Event.md +2 -2
  106. package/dist/okf/types/EventsEvent.md +2 -2
  107. package/dist/okf/types/EventsEventList.md +2 -2
  108. package/dist/okf/types/Eviction.md +1 -1
  109. package/dist/okf/types/FlowSchema.md +1 -1
  110. package/dist/okf/types/FlowSchemaList.md +2 -2
  111. package/dist/okf/types/GrafanaDashboard.md +14 -0
  112. package/dist/okf/types/GrafanaDatasource.md +14 -0
  113. package/dist/okf/types/GrafanaFolder.md +14 -0
  114. package/dist/okf/types/HorizontalPodAutoscaler.md +1 -1
  115. package/dist/okf/types/HorizontalPodAutoscalerList.md +2 -2
  116. package/dist/okf/types/IPAddress.md +1 -1
  117. package/dist/okf/types/IPAddressList.md +2 -2
  118. package/dist/okf/types/Ing.md +1 -1
  119. package/dist/okf/types/IngressClass.md +1 -1
  120. package/dist/okf/types/IngressClassList.md +2 -2
  121. package/dist/okf/types/IngressList.md +2 -2
  122. package/dist/okf/types/JobList.md +2 -2
  123. package/dist/okf/types/Lease.md +1 -1
  124. package/dist/okf/types/LeaseCandidate.md +1 -1
  125. package/dist/okf/types/LeaseCandidateList.md +2 -2
  126. package/dist/okf/types/LeaseList.md +2 -2
  127. package/dist/okf/types/LimitRange.md +1 -1
  128. package/dist/okf/types/LimitRangeList.md +2 -2
  129. package/dist/okf/types/LocalSubjectAccessReview.md +1 -1
  130. package/dist/okf/types/MutatingAdmissionPolicy.md +1 -1
  131. package/dist/okf/types/MutatingAdmissionPolicyBinding.md +1 -1
  132. package/dist/okf/types/MutatingAdmissionPolicyBindingList.md +2 -2
  133. package/dist/okf/types/MutatingAdmissionPolicyList.md +2 -2
  134. package/dist/okf/types/MutatingWebhookConfiguration.md +1 -1
  135. package/dist/okf/types/MutatingWebhookConfigurationList.md +2 -2
  136. package/dist/okf/types/Namespace.md +1 -1
  137. package/dist/okf/types/NamespaceList.md +2 -2
  138. package/dist/okf/types/NetPol.md +1 -1
  139. package/dist/okf/types/NetworkPolicyList.md +2 -2
  140. package/dist/okf/types/Node.md +1 -1
  141. package/dist/okf/types/NodeList.md +2 -2
  142. package/dist/okf/types/PersistentVolume.md +1 -1
  143. package/dist/okf/types/PersistentVolumeClaimList.md +2 -2
  144. package/dist/okf/types/PersistentVolumeList.md +2 -2
  145. package/dist/okf/types/PodCertificateRequest.md +1 -1
  146. package/dist/okf/types/PodCertificateRequestList.md +2 -2
  147. package/dist/okf/types/PodDisruptionBudgetList.md +2 -2
  148. package/dist/okf/types/PodList.md +2 -2
  149. package/dist/okf/types/PodTemplateList.md +2 -2
  150. package/dist/okf/types/PriorityClassList.md +2 -2
  151. package/dist/okf/types/PriorityLevelConfiguration.md +1 -1
  152. package/dist/okf/types/PriorityLevelConfigurationList.md +2 -2
  153. package/dist/okf/types/ReplicaSet.md +1 -1
  154. package/dist/okf/types/ReplicaSetList.md +2 -2
  155. package/dist/okf/types/ReplicationController.md +1 -1
  156. package/dist/okf/types/ReplicationControllerList.md +2 -2
  157. package/dist/okf/types/ResourceClaim.md +1 -1
  158. package/dist/okf/types/ResourceClaimList.md +2 -2
  159. package/dist/okf/types/ResourceClaimTemplate.md +1 -1
  160. package/dist/okf/types/ResourceClaimTemplateList.md +2 -2
  161. package/dist/okf/types/ResourceQuota.md +1 -1
  162. package/dist/okf/types/ResourceQuotaList.md +2 -2
  163. package/dist/okf/types/ResourceSlice.md +1 -1
  164. package/dist/okf/types/ResourceSliceList.md +2 -2
  165. package/dist/okf/types/RoleBindingList.md +2 -2
  166. package/dist/okf/types/RoleList.md +2 -2
  167. package/dist/okf/types/RuntimeClass.md +2 -2
  168. package/dist/okf/types/RuntimeClassList.md +2 -2
  169. package/dist/okf/types/Scale.md +1 -1
  170. package/dist/okf/types/SecretList.md +2 -2
  171. package/dist/okf/types/SelfSubjectAccessReview.md +1 -1
  172. package/dist/okf/types/SelfSubjectRulesReview.md +1 -1
  173. package/dist/okf/types/Service.md +1 -1
  174. package/dist/okf/types/ServiceAccountList.md +2 -2
  175. package/dist/okf/types/ServiceCIDR.md +1 -1
  176. package/dist/okf/types/ServiceCIDRList.md +2 -2
  177. package/dist/okf/types/ServiceList.md +2 -2
  178. package/dist/okf/types/StatefulSet.md +1 -1
  179. package/dist/okf/types/StatefulSetList.md +2 -2
  180. package/dist/okf/types/Status.md +2 -2
  181. package/dist/okf/types/StorageClass.md +1 -1
  182. package/dist/okf/types/StorageClassList.md +2 -2
  183. package/dist/okf/types/StorageVersionMigration.md +1 -1
  184. package/dist/okf/types/StorageVersionMigrationList.md +2 -2
  185. package/dist/okf/types/SubjectAccessReview.md +1 -1
  186. package/dist/okf/types/TokenRequest.md +1 -1
  187. package/dist/okf/types/TokenReview.md +1 -1
  188. package/dist/okf/types/ValidatingAdmissionPolicy.md +1 -1
  189. package/dist/okf/types/ValidatingAdmissionPolicyBinding.md +1 -1
  190. package/dist/okf/types/ValidatingAdmissionPolicyBindingList.md +2 -2
  191. package/dist/okf/types/ValidatingAdmissionPolicyList.md +2 -2
  192. package/dist/okf/types/ValidatingWebhookConfiguration.md +1 -1
  193. package/dist/okf/types/ValidatingWebhookConfigurationList.md +2 -2
  194. package/dist/okf/types/VolumeAttachment.md +1 -1
  195. package/dist/okf/types/VolumeAttachmentList.md +2 -2
  196. package/dist/okf/types/VolumeAttributesClassList.md +2 -2
  197. package/dist/op/activities/argo.d.ts.map +1 -1
  198. package/dist/op/activities/index.d.ts +3 -3
  199. package/dist/op/activities/index.d.ts.map +1 -1
  200. package/dist/op/activities/wait-for-ready.d.ts.map +1 -1
  201. package/dist/op/builders.d.ts.map +1 -1
  202. package/dist/rules/otel-placement-helpers.ts +7 -11
  203. package/dist/rules/wk8604.ts +29 -0
  204. package/dist/rules/wk8605.ts +131 -0
  205. package/dist/skills/chant-k8s.md +1 -1
  206. package/dist/spec/parse.d.ts +27 -0
  207. package/dist/spec/parse.d.ts.map +1 -1
  208. package/dist/types/index.d.ts +5360 -972
  209. package/dist/variables.d.ts.map +1 -1
  210. package/package.json +4 -4
  211. package/src/codegen/declarations.test.ts +118 -0
  212. package/src/codegen/generate-typescript.ts +69 -4
  213. package/src/codegen/generate.ts +15 -6
  214. package/src/composites/__snapshots__/gke-otel-collector.snapshot.test.ts.snap +2 -68
  215. package/src/composites/catalog.ts +12 -0
  216. package/src/composites/gke-otel-collector.snapshot.test.ts +3 -1
  217. package/src/composites/gke-otel-collector.ts +13 -2
  218. package/src/composites/index.ts +1 -0
  219. package/src/composites/otel-collector-agent.ts +45 -11
  220. package/src/composites/otel-collector-gateway.test.ts +102 -5
  221. package/src/composites/otel-collector-gateway.ts +96 -18
  222. package/src/composites/otel-collector-node.test.ts +174 -0
  223. package/src/composites/otel-collector-node.ts +213 -0
  224. package/src/composites/otel-collector-rbac.test.ts +114 -0
  225. package/src/composites/otel-collector-rbac.ts +144 -0
  226. package/src/composites/otel-collector-shape.ts +19 -0
  227. package/src/composites/otel-collector.ts +40 -35
  228. package/src/crd/crd-sources.ts +26 -0
  229. package/src/crd/loader.test.ts +9 -1
  230. package/src/crd/loader.ts +26 -3
  231. package/src/crd/oci-chart.test.ts +149 -0
  232. package/src/crd/oci-chart.ts +178 -0
  233. package/src/crd/types.ts +5 -0
  234. package/src/generated/index.d.ts +5360 -972
  235. package/src/generated/index.ts +23 -0
  236. package/src/generated/lexicon-k8s.json +156 -17
  237. package/src/generated/operations.json +48 -0
  238. package/src/import/embedded-live.test.ts +180 -0
  239. package/src/import/embedded-roundtrip.test.ts +73 -7
  240. package/src/import/embedded-types.e2e.test.ts +3 -1
  241. package/src/import/embedded.test.ts +64 -0
  242. package/src/import/embedded.ts +31 -2
  243. package/src/import/generator.test.ts +19 -0
  244. package/src/import/generator.ts +20 -2
  245. package/src/import/live-export.ts +10 -2
  246. package/src/import/testdata/embedded/README.md +4 -1
  247. package/src/import/testdata/embedded/alertmanager-configmap.yaml +91 -0
  248. package/src/import/testdata/embedded/fixtures.ts +18 -0
  249. package/src/import/testdata/embedded/grafana-operator-dashboard.yaml +363 -0
  250. package/src/import/testdata/embedded/grafana-v2-dashboard-configmap.yaml +851 -0
  251. package/src/lint/audit-catalog.ts +2 -0
  252. package/src/lint/post-synth/index.ts +4 -0
  253. package/src/lint/post-synth/otel-placement-helpers.ts +7 -11
  254. package/src/lint/post-synth/otel-placement.test.ts +35 -0
  255. package/src/lint/post-synth/post-synth.test.ts +3 -3
  256. package/src/lint/post-synth/wk8604.ts +29 -0
  257. package/src/lint/post-synth/wk8605.test.ts +141 -0
  258. package/src/lint/post-synth/wk8605.ts +131 -0
  259. package/src/skills/chant-k8s.md +1 -1
  260. package/src/spec/parse.test.ts +118 -0
  261. package/src/spec/parse.ts +250 -29
@@ -2,8 +2,6 @@
2
2
  * RBAC verb constants for apps API group resources.
3
3
  */
4
4
  export declare const DeploymentActions: {
5
- readonly rollback: "create";
6
- readonly scale: "update";
7
5
  readonly get: "get";
8
6
  readonly list: "list";
9
7
  readonly watch: "watch";
@@ -11,9 +9,10 @@ export declare const DeploymentActions: {
11
9
  readonly update: "update";
12
10
  readonly patch: "patch";
13
11
  readonly delete: "delete";
12
+ readonly rollback: "create";
13
+ readonly scale: "update";
14
14
  };
15
15
  export declare const StatefulSetActions: {
16
- readonly scale: "update";
17
16
  readonly get: "get";
18
17
  readonly list: "list";
19
18
  readonly watch: "watch";
@@ -21,6 +20,7 @@ export declare const StatefulSetActions: {
21
20
  readonly update: "update";
22
21
  readonly patch: "patch";
23
22
  readonly delete: "delete";
23
+ readonly scale: "update";
24
24
  };
25
25
  export declare const DaemonSetActions: {
26
26
  readonly get: "get";
@@ -32,7 +32,6 @@ export declare const DaemonSetActions: {
32
32
  readonly delete: "delete";
33
33
  };
34
34
  export declare const ReplicaSetActions: {
35
- readonly scale: "update";
36
35
  readonly get: "get";
37
36
  readonly list: "list";
38
37
  readonly watch: "watch";
@@ -40,5 +39,6 @@ export declare const ReplicaSetActions: {
40
39
  readonly update: "update";
41
40
  readonly patch: "patch";
42
41
  readonly delete: "delete";
42
+ readonly scale: "update";
43
43
  };
44
44
  //# sourceMappingURL=apps.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"apps.d.ts","sourceRoot":"","sources":["../../src/actions/apps.ts"],"names":[],"mappings":"AAAA;;GAEG;AAIH,eAAO,MAAM,iBAAiB;;;;;;;;;;CAIpB,CAAC;AAEX,eAAO,MAAM,kBAAkB;;;;;;;;;CAGrB,CAAC;AAEX,eAAO,MAAM,gBAAgB;;;;;;;;CAAgC,CAAC;AAE9D,eAAO,MAAM,iBAAiB;;;;;;;;;CAGpB,CAAC"}
1
+ {"version":3,"file":"apps.d.ts","sourceRoot":"","sources":["../../src/actions/apps.ts"],"names":[],"mappings":"AAAA;;GAEG;AAIH,eAAO,MAAM,iBAAiB;;;;;;;;uBAElB,QAAQ;oBACX,QAAQ;CACP,CAAC;AAEX,eAAO,MAAM,kBAAkB;;;;;;;;oBAEtB,QAAQ;CACP,CAAC;AAEX,eAAO,MAAM,gBAAgB;;;;;;;;CAAgC,CAAC;AAE9D,eAAO,MAAM,iBAAiB;;;;;;;;oBAErB,QAAQ;CACP,CAAC"}
@@ -12,9 +12,6 @@ export declare const StandardVerbs: {
12
12
  readonly delete: "delete";
13
13
  };
14
14
  export declare const PodActions: {
15
- readonly exec: "create";
16
- readonly portForward: "create";
17
- readonly log: "get";
18
15
  readonly get: "get";
19
16
  readonly list: "list";
20
17
  readonly watch: "watch";
@@ -22,9 +19,11 @@ export declare const PodActions: {
22
19
  readonly update: "update";
23
20
  readonly patch: "patch";
24
21
  readonly delete: "delete";
22
+ readonly exec: "create";
23
+ readonly portForward: "create";
24
+ readonly log: "get";
25
25
  };
26
26
  export declare const ServiceActions: {
27
- readonly proxy: "create";
28
27
  readonly get: "get";
29
28
  readonly list: "list";
30
29
  readonly watch: "watch";
@@ -32,6 +31,7 @@ export declare const ServiceActions: {
32
31
  readonly update: "update";
33
32
  readonly patch: "patch";
34
33
  readonly delete: "delete";
34
+ readonly proxy: "create";
35
35
  };
36
36
  export declare const ConfigMapActions: {
37
37
  readonly get: "get";
@@ -61,7 +61,6 @@ export declare const NamespaceActions: {
61
61
  readonly delete: "delete";
62
62
  };
63
63
  export declare const ServiceAccountActions: {
64
- readonly impersonate: "impersonate";
65
64
  readonly get: "get";
66
65
  readonly list: "list";
67
66
  readonly watch: "watch";
@@ -69,6 +68,7 @@ export declare const ServiceAccountActions: {
69
68
  readonly update: "update";
70
69
  readonly patch: "patch";
71
70
  readonly delete: "delete";
71
+ readonly impersonate: "impersonate";
72
72
  };
73
73
  export declare const PersistentVolumeActions: {
74
74
  readonly get: "get";
@@ -1 +1 @@
1
- {"version":3,"file":"core.d.ts","sourceRoot":"","sources":["../../src/actions/core.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,wDAAwD;AACxD,eAAO,MAAM,aAAa;;;;;;;;CAQhB,CAAC;AAEX,eAAO,MAAM,UAAU;;;;;;;;;;;CAKb,CAAC;AAEX,eAAO,MAAM,cAAc;;;;;;;;;CAGjB,CAAC;AAEX,eAAO,MAAM,gBAAgB;;;;;;;;CAAgC,CAAC;AAE9D,eAAO,MAAM,aAAa;;;;;;;;CAAgC,CAAC;AAE3D,eAAO,MAAM,gBAAgB;;;;;;;;CAAgC,CAAC;AAE9D,eAAO,MAAM,qBAAqB;;;;;;;;;CAGxB,CAAC;AAEX,eAAO,MAAM,uBAAuB;;;;;;;;CAAgC,CAAC;AAErE,eAAO,MAAM,4BAA4B;;;;;;;;CAAgC,CAAC;AAE1E,eAAO,MAAM,WAAW;;;;;;CAMd,CAAC;AAEX,eAAO,MAAM,YAAY;;;;;CAKf,CAAC;AAEX,eAAO,MAAM,oBAAoB;;;;;;;;CAAgC,CAAC;AAElE,eAAO,MAAM,iBAAiB;;;;;;;;CAAgC,CAAC;AAE/D,eAAO,MAAM,gBAAgB;;;;;;;;CAAgC,CAAC"}
1
+ {"version":3,"file":"core.d.ts","sourceRoot":"","sources":["../../src/actions/core.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,wDAAwD;AACxD,eAAO,MAAM,aAAa;aACxB,GAAG,EAAE,KAAK;aACV,IAAI,EAAE,MAAM;aACZ,KAAK,EAAE,OAAO;aACd,MAAM,EAAE,QAAQ;aA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GAAG,EAAE,KAAK;aACV,IAAI,EAAE,MAAM;aACZ,KAAK,EAAE,OAAO;aACd,MAAM,EAAE,QAAQ;aAChB,KAAK,EAAE,OAAO;CACN,CAAC;AAEX,eAAO,MAAM,YAAY;aACvB,GAAG,EAAE,KAAK;aACV,IAAI,EAAE,MAAM;aACZ,KAAK,EAAE,OAAO;aACd,MAAM,EAAE,QAAQ;CACR,CAAC;AAEX,eAAO,MAAM,oBAAoB;kBAnD1B,KAAK;mBACJ,MAAM;oBACL,OAAO;qBACN,QAAQ;qBACR,QAAQ;oBACT,OAAO;qBACN,QAAQ;CA6C+C,CAAC;AAElE,eAAO,MAAM,iBAAiB;kBArDvB,KAAK;mBACJ,MAAM;oBACL,OAAO;qBACN,QAAQ;qBACR,QAAQ;oBACT,OAAO;qBACN,QAAQ;CA+C4C,CAAC;AAE/D,eAAO,MAAM,gBAAgB;kBAvDtB,KAAK;mBACJ,MAAM;oBACL,OAAO;qBACN,QAAQ;qBACR,QAAQ;oBACT,OAAO;qBACN,QAAQ;CAiD2C,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"networking.d.ts","sourceRoot":"","sources":["../../src/actions/networking.ts"],"names":[],"mappings":"AAAA;;GAEG;AAIH,eAAO,MAAM,cAAc;;;;;;;;CAAgC,CAAC;AAE5D,eAAO,MAAM,mBAAmB;;;;CAItB,CAAC;AAEX,eAAO,MAAM,oBAAoB;;;;;;;;CAAgC,CAAC"}
1
+ {"version":3,"file":"networking.d.ts","sourceRoot":"","sources":["../../src/actions/networking.ts"],"names":[],"mappings":"AAAA;;GAEG;AAIH,eAAO,MAAM,cAAc;;;;;;;;CAAgC,CAAC;AAE5D,eAAO,MAAM,mBAAmB;aAC9B,GAAG,EAAE,KAAK;aACV,IAAI,EAAE,MAAM;aACZ,KAAK,EAAE,OAAO;CACN,CAAC;AAEX,eAAO,MAAM,oBAAoB;;;;;;;;CAAgC,CAAC"}
@@ -2,10 +2,10 @@
2
2
  * TypeScript declaration file generator — produces index.d.ts with all
3
3
  * Kubernetes resource and property type classes.
4
4
  */
5
- import type { K8sParseResult } from "../spec/parse.js";
5
+ import type { K8sParseResult, ParsedDefinitionType } from "../spec/parse.js";
6
6
  import type { NamingStrategy } from "./naming.js";
7
7
  /**
8
8
  * Generate the complete .d.ts file content.
9
9
  */
10
- export declare function generateTypeScriptDeclarations(results: K8sParseResult[], naming: NamingStrategy): string;
10
+ export declare function generateTypeScriptDeclarations(results: K8sParseResult[], naming: NamingStrategy, definitionTypes?: ParsedDefinitionType[]): string;
11
11
  //# sourceMappingURL=generate-typescript.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"generate-typescript.d.ts","sourceRoot":"","sources":["../../src/codegen/generate-typescript.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,eAAe,CAAC;AAEpD,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,UAAU,CAAC;AAkB/C;;GAEG;AACH,wBAAgB,8BAA8B,CAC5C,OAAO,EAAE,cAAc,EAAE,EACzB,MAAM,EAAE,cAAc,GACrB,MAAM,CAiER"}
1
+ {"version":3,"file":"generate-typescript.d.ts","sourceRoot":"","sources":["../../src/codegen/generate-typescript.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,KAAK,EAAE,cAAc,EAAE,oBAAoB,EAAE,MAAM,eAAe,CAAC;AAE1E,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,UAAU,CAAC;AAiB/C;;GAEG;AACH,wBAAgB,8BAA8B,CAC5C,OAAO,EAAE,cAAc,EAAE,EACzB,MAAM,EAAE,cAAc,EACtB,eAAe,GAAE,oBAAoB,EAAO,GAC3C,MAAM,CAyFR"}
@@ -1 +1 @@
1
- {"version":3,"file":"generate.d.ts","sourceRoot":"","sources":["../../src/codegen/generate.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAGH,OAAO,EAGL,KAAK,eAAe,EACpB,KAAK,cAAc,EAEpB,MAAM,mCAAmC,CAAC;AAgB3C,YAAY,EAAE,cAAc,EAAE,CAAC;AAE/B,MAAM,WAAW,kBAAmB,SAAQ,eAAe;IACzD,uDAAuD;IACvD,aAAa,CAAC,EAAE,MAAM,CAAC;CACxB;AAED;;GAEG;AACH,wBAAsB,QAAQ,CAAC,IAAI,GAAE,kBAAuB,GAAG,OAAO,CAAC,cAAc,CAAC,CAiFrF;AAED;;GAEG;AACH,wBAAgB,mBAAmB,CAAC,MAAM,EAAE,cAAc,EAAE,OAAO,EAAE,MAAM,GAAG,IAAI,CAWjF"}
1
+ {"version":3,"file":"generate.d.ts","sourceRoot":"","sources":["../../src/codegen/generate.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAGH,OAAO,EAGL,KAAK,eAAe,EACpB,KAAK,cAAc,EAEpB,MAAM,mCAAmC,CAAC;AAsB3C,YAAY,EAAE,cAAc,EAAE,CAAC;AAE/B,MAAM,WAAW,kBAAmB,SAAQ,eAAe;IACzD,uDAAuD;IACvD,aAAa,CAAC,EAAE,MAAM,CAAC;CACxB;AAED;;GAEG;AACH,wBAAsB,QAAQ,CAAC,IAAI,GAAE,kBAAuB,GAAG,OAAO,CAAC,cAAc,CAAC,CAoFrF;AAED;;GAEG;AACH,wBAAgB,mBAAmB,CAAC,MAAM,EAAE,cAAc,EAAE,OAAO,EAAE,MAAM,GAAG,IAAI,CAWjF"}
@@ -1 +1 @@
1
- {"version":3,"file":"naming.d.ts","sourceRoot":"","sources":["../../src/codegen/naming.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,EACL,cAAc,IAAI,kBAAkB,EAGrC,MAAM,iCAAiC,CAAC;AACzC,OAAO,EAAgC,KAAK,cAAc,EAAE,MAAM,eAAe,CAAC;AAElF,OAAO,EAAE,gBAAgB,EAAE,cAAc,EAAE,MAAM,iCAAiC,CAAC;AAkKnF;;;GAGG;AACH,qBAAa,cAAe,SAAQ,kBAAkB;gBACxC,OAAO,EAAE,cAAc,EAAE;CAOtC"}
1
+ {"version":3,"file":"naming.d.ts","sourceRoot":"","sources":["../../src/codegen/naming.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,EACL,cAAc,IAAI,kBAAkB,EAGrC,MAAM,iCAAiC,CAAC;AACzC,OAAO,EAAgC,KAAK,cAAc,EAAE,MAAM,eAAe,CAAC;AAElF,OAAO,EAAE,gBAAgB,EAAE,cAAc,EAAE,MAAM,iCAAiC,CAAC;AAkKnF;;;GAGG;AACH,qBAAa,cAAe,SAAQ,kBAAkB;IACpD,YAAY,OAAO,EAAE,cAAc,EAAE,EAMpC;CACF"}
@@ -1 +1 @@
1
- {"version":3,"file":"versions.d.ts","sourceRoot":"","sources":["../../src/codegen/versions.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAIH,gDAAgD;AAChD,eAAO,MAAM,eAAe;;CAElB,CAAC;AAEX;;GAEG;AACH,wBAAgB,aAAa,CAAC,OAAO,CAAC,EAAE,MAAM,GAAG,MAAM,CAGtD;AAED;;;GAGG;AACH,wBAAsB,eAAe,IAAI,OAAO,CAAC,MAAM,GAAG,IAAI,CAAC,CAmB9D"}
1
+ {"version":3,"file":"versions.d.ts","sourceRoot":"","sources":["../../src/codegen/versions.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAIH,gDAAgD;AAChD,eAAO,MAAM,eAAe;aAC1B,UAAU,EAAE,SAAS;CACb,CAAC;AAEX;;GAEG;AACH,wBAAgB,aAAa,CAAC,OAAO,CAAC,EAAE,MAAM,GAAG,MAAM,CAGtD;AAED;;;GAGG;AACH,wBAAsB,eAAe,IAAI,OAAO,CAAC,MAAM,GAAG,IAAI,CAAC,CAmB9D"}
@@ -1 +1 @@
1
- {"version":3,"file":"capability-plugin.d.ts","sourceRoot":"","sources":["../../src/components/capability-plugin.ts"],"names":[],"mappings":"AAWA,OAAO,EAAqB,KAAK,gBAAgB,EAAE,MAAM,+CAA+C,CAAC;AAMzG,eAAO,MAAM,iBAAiB;;;CAKpB,CAAC;AAEX,eAAO,MAAM,mBAAmB,EAAE,gBAmBjC,CAAC"}
1
+ {"version":3,"file":"capability-plugin.d.ts","sourceRoot":"","sources":["../../src/components/capability-plugin.ts"],"names":[],"mappings":"AAWA,OAAO,EAAqB,KAAK,gBAAgB,EAAE,MAAM,+CAA+C,CAAC;AAMzG,eAAO,MAAM,iBAAiB;aAC5B,KAAK,YAAG,eAAe,EAAE,iBAAiB;aAG1C,MAAM,YAAG,UAAU,EAAE,gBAAgB;CAC7B,CAAC;AAEX,eAAO,MAAM,mBAAmB,EAAE,gBAmBjC,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"catalog.d.ts","sourceRoot":"","sources":["../../src/composites/catalog.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,0BAA0B,CAAC;AAE/D,eAAO,MAAM,gBAAgB,EAAE,cAAc,EAw5H5C,CAAC"}
1
+ {"version":3,"file":"catalog.d.ts","sourceRoot":"","sources":["../../src/composites/catalog.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,0BAA0B,CAAC;AAE/D,eAAO,MAAM,gBAAgB,EAAE,cAAc,EAo6H5C,CAAC"}
@@ -129,8 +129,6 @@ export interface CockroachDbClusterResult {
129
129
  * ```
130
130
  */
131
131
  export declare const CockroachDbCluster: import("@intentius/chant").CompositeDefinition<CockroachDbClusterProps, {
132
- certGenJob?: (import("@intentius/chant").Declarable & Record<string, string>) | undefined;
133
- initJob?: (import("@intentius/chant").Declarable & Record<string, string>) | undefined;
134
132
  serviceAccount: import("@intentius/chant").Declarable & Record<string, string>;
135
133
  role: import("@intentius/chant").Declarable & Record<string, string>;
136
134
  roleBinding: import("@intentius/chant").Declarable & Record<string, string>;
@@ -140,5 +138,7 @@ export declare const CockroachDbCluster: import("@intentius/chant").CompositeDef
140
138
  headlessService: import("@intentius/chant").Declarable & Record<string, string>;
141
139
  pdb: import("@intentius/chant").Declarable & Record<string, string>;
142
140
  statefulSet: import("@intentius/chant").Declarable & Record<string, string>;
141
+ initJob?: (import("@intentius/chant").Declarable & Record<string, string>) | undefined;
142
+ certGenJob?: (import("@intentius/chant").Declarable & Record<string, string>) | undefined;
143
143
  }>;
144
144
  //# sourceMappingURL=cockroachdb-cluster.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"gke-otel-collector.d.ts","sourceRoot":"","sources":["../../src/composites/gke-otel-collector.ts"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;AAWH,OAAO,EAA2B,KAAK,uBAAuB,EAAE,MAAM,wBAAwB,CAAC;AAE/F,MAAM,WAAW,qBAAqB;IACpC,wBAAwB;IACxB,WAAW,EAAE,MAAM,CAAC;IACpB,sBAAsB;IACtB,SAAS,EAAE,MAAM,CAAC;IAClB,uDAAuD;IACvD,sBAAsB,CAAC,EAAE,MAAM,CAAC;IAChC,kDAAkD;IAClD,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,qFAAqF;IACrF,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,6CAA6C;IAC7C,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,yBAAyB;IACzB,MAAM,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IAChC,qCAAqC;IACrC,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,yCAAyC;IACzC,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,mCAAmC;IACnC,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,uCAAuC;IACvC,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,sDAAsD;IACtD,QAAQ,CAAC,EAAE;QACT,SAAS,CAAC,EAAE,OAAO,CAAC,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC;QAC7C,cAAc,CAAC,EAAE,OAAO,CAAC,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC;QAClD,WAAW,CAAC,EAAE,OAAO,CAAC,MAAM,CAAC,MAAM,EAAE,OA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AAc,CAAC,EAAE,OAAO,CAAC,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC;QAClD,WAAW,CAAC,EAAE,OAAO,CAAC,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC;QAC/C,kBAAkB,CAAC,EAAE,OAAO,CAAC,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC;QACtD,SAAS,CAAC,EAAE,OAAO,CAAC,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC;KAC9C,CAAC;CACH;AAED,MAAM,MAAM,sBAAsB,GAAG,uBAAuB,CAAC;AAE7D;;;;;;;;;;;;;;;GAeG;AACH,eAAO,MAAM,gBAAgB,gGA8EP,CAAC"}
@@ -67,6 +67,7 @@ export { GkeFluentBitAgent } from "./gke-fluent-bit-agent.js";
67
67
  export type { GkeFluentBitAgentProps, GkeFluentBitAgentResult } from "./gke-fluent-bit-agent.js";
68
68
  export { OtelCollector } from "./otel-collector.js";
69
69
  export type { OtelCollectorProps, OtelCollectorResult } from "./otel-collector.js";
70
+ export type { CollectorLogAccess } from "./otel-collector-agent.js";
70
71
  export { OtelCollectorGateway, gatewayExporter } from "./otel-collector-gateway.js";
71
72
  export type { OtelCollectorGatewayProps, OtelCollectorGatewayResult, GatewayExporterOptions, CollectorPolicyRule, } from "./otel-collector-gateway.js";
72
73
  export { OTEL_COLLECTOR_ANNOTATIONS } from "./otel-collector-shape.js";
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/composites/index.ts"],"names":[],"mappings":"AAAA,YAAY,EAAE,wBAAwB,EAAE,MAAM,oBAAoB,CAAC;AACnE,OAAO,EAAE,MAAM,EAAE,MAAM,WAAW,CAAC;AACnC,YAAY,EAAE,WAAW,EAAE,YAAY,EAAE,MAAM,WAAW,CAAC;AAC3D,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAC7C,YAAY,EAAE,gBAAgB,E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AE,wBAAwB,EAAE,gBAAgB,EAAE,MAAM,wBAAwB,CAAC;AAClH,OAAO,EAAE,KAAK,EAAE,sBAAsB,EAAE,MAAM,SAAS,CAAC;AACxD,YAAY,EAAE,WAAW,EAAE,UAAU,EAAE,WAAW,EAAE,MAAM,SAAS,CAAC;AACpE,OAAO,EAAE,aAAa,EAAE,mBAAmB,EAAE,sBAAsB,EAAE,MAAM,kBAAkB,CAAC;AAC9F,YAAY,EACV,YAAY,EAAE,wBAAwB,EAAE,yBAAyB,EAAE,mBAAmB,EAAE,mBAAmB,GAC5G,MAAM,kBAAkB,CAAC"}
@@ -2,7 +2,8 @@
2
2
  * The Kubernetes resources an OpenTelemetry Collector agent needs, shared by
3
3
  * `OtelCollector` and `GkeOtelCollector`: a DaemonSet running the collector
4
4
  * with its config mounted from a ConfigMap, and a ServiceAccount bound to a
5
- * ClusterRole that reads pods, nodes and workloads.
5
+ * ClusterRole with the rules the caller works out from its config (see
6
+ * `agentClusterRules` in `otel-collector-rbac.ts`).
6
7
  *
7
8
  * The caller renders the collector config (with the otel lexicon's
8
9
  * `collectorYaml`) and says which ports the container exposes. Everything
@@ -13,6 +14,16 @@
13
14
  * (`collectorContainer`, `collectorConfigMap`) in a Deployment.
14
15
  */
15
16
  import { DaemonSet, ServiceAccount, ClusterRole, ClusterRoleBinding, ConfigMap } from "../generated/index.js";
17
+ import type { CollectorPolicyRule } from "./otel-collector-rbac.js";
18
+ import { type CollectorNodeAccess } from "./otel-collector-node.js";
19
+ /**
20
+ * How a collector that reads the kubelet's container logs gets past their
21
+ * owner. The files are root's, readable by group root (containerd writes
22
+ * them mode 0640), so `group` keeps user 10001 and adds the pod to group 0
23
+ * with `supplementalGroups`. `root` runs the container as user 0 instead,
24
+ * for a runtime that writes the logs readable by their owner only.
25
+ */
26
+ export type CollectorLogAccess = "group" | "root";
16
27
  export interface CollectorAgentOptions {
17
28
  name: string;
18
29
  namespace: string;
@@ -29,6 +40,8 @@ export interface CollectorAgentOptions {
29
40
  containerPort: number;
30
41
  name: string;
31
42
  }>;
43
+ /** The ClusterRole's rules, from `agentClusterRules`. */
44
+ clusterRules: CollectorPolicyRule[];
32
45
  cpuRequest: string;
33
46
  memoryRequest: string;
34
47
  cpuLimit: string;
@@ -41,6 +54,10 @@ export interface CollectorAgentOptions {
41
54
  workloadAnnotations?: Record<string, string>;
42
55
  /** Annotations on the ConfigMap. */
43
56
  configMapAnnotations?: Record<string, string>;
57
+ /** What the config reads from the node, from `collectorNodeAccess`: the node name variables and host mounts. */
58
+ nodeAccess?: CollectorNodeAccess;
59
+ /** How a config that reads container logs gets read access to them (default `group`). */
60
+ logAccess?: CollectorLogAccess;
44
61
  defaults?: {
45
62
  daemonSet?: Partial<Record<string, unknown>>;
46
63
  serviceAccount?: Partial<Record<string, unknown>>;
@@ -58,7 +75,12 @@ export type CollectorAgentResources = {
58
75
  };
59
76
  export declare function collectorAgentResources(opts: CollectorAgentOptions): CollectorAgentResources;
60
77
  /** The fields the collector container and its ConfigMap are built from. */
61
- export type CollectorContainerOptions = Pick<CollectorAgentOptions, "name" | "image" | "configDir" | "ports" | "cpuRequest" | "memoryRequest" | "cpuLimit" | "memoryLimit" | "containerExtra">;
78
+ export type CollectorContainerOptions = Pick<CollectorAgentOptions, "name" | "image" | "configDir" | "ports" | "cpuRequest" | "memoryRequest" | "cpuLimit" | "memoryLimit" | "containerExtra"> & {
79
+ /** Environment variables, such as the node name from the downward API. Left out when empty. */
80
+ env?: Array<Record<string, unknown>>;
81
+ /** Mounts after the config mount, such as read-only host directories. */
82
+ extraVolumeMounts?: Array<Record<string, unknown>>;
83
+ };
62
84
  /**
63
85
  * The collector container: the image, the config file argument, the ports,
64
86
  * requests and limits, the config volume mount and a non-root security
@@ -1 +1 @@
1
- {"version":3,"file":"otel-collector-agent.d.ts","sourceRoot":"","sources":["../../src/composites/otel-collector-agent.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;GAaG;AAGH,OAAO,EAAE,SAAS,EAAE,cAAc,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,GAAG,IAAI,CAC1C,qBAAqB,EACrB,MAAM,GAAG,OAAO,GAAG,WAAW,GAAG,OAAO,GAAG,YAAY,GAAG,eAAe,GAAG,UAAU,GAAG,aAAa,GAAG,gBAAgB,CAC1H,GAAG;IACF,+FAA+F;IAC/F,GAAG,CAAC,EAAE,KAAK,CAAC,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC;IACrC,yEAAyE;IACzE,iBAAiB,CAAC,EAAE,KAAK,CAAC,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC;CACpD,CAAC;AAEF;;;;;GAKG;AACH,wBAAgB,kBAAkB,CAAC,IAAI,EAAE,yBAAyB,GAAG,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAuB3F;AAQD,+EAA+E;AAC/E,wBAAgB,kBAAkB,CAChC,IAAI,EAAE,IAAI,CAAC,qBAAqB,EAAE,WAAW,GAAG,cAAc,GAAG,YAAY,CAAC,GAAG;IAC/E,QAAQ,CAAC,EAAE;QAAE,SAAS,CAAC,EAAE,OAAO,CAAC,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC,CAAA;KAAE,CAAC;CAC7D,EACD,aAAa,EAAE,MAAM,EACrB,WAAW,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,GACnC,YAAY,CAAC,OAAO,SAAS,CAAC,CAYhC"}
@@ -15,15 +15,10 @@
15
15
  * another namespace moves the agents with it.
16
16
  */
17
17
  import type { Declarable } from "@intentius/chant/declarable";
18
- import { LoadBalancingExporter, OtlpExporter, type LoadBalancingRoutingKey, type OTelComponent, type Signal, type TLSClientSettings } from "@intentius/chant-lexicon-otel";
19
- import { Deployment, Service, ServiceAccount, ClusterRole, ClusterRoleBinding, ConfigMap, PodDisruptionBudget } from "../generated/index.js";
20
- /** One RBAC rule, as a ClusterRole lists it. */
21
- export interface CollectorPolicyRule {
22
- apiGroups: string[];
23
- resources: string[];
24
- verbs: string[];
25
- resourceNames?: string[];
26
- }
18
+ import { LoadBalancingExporter, OtlpExporter, OtlpHttpExporter, type LoadBalancingRoutingKey, type OTelComponent, type Signal, type TLSClientSettings } from "@intentius/chant-lexicon-otel";
19
+ import { Deployment, Service, ServiceAccount, ClusterRole, ClusterRoleBinding, ConfigMap, PodDisruptionBudget, Role, RoleBinding } from "../generated/index.js";
20
+ import { type CollectorPolicyRule } from "./otel-collector-rbac.js";
21
+ export type { CollectorPolicyRule };
27
22
  export interface OtelCollectorGatewayProps {
28
23
  /** Gateway name (default: "otel-gateway"). */
29
24
  name?: string;
@@ -70,6 +65,8 @@ export interface OtelCollectorGatewayProps {
70
65
  podDisruptionBudget?: Partial<Record<string, unknown>>;
71
66
  clusterRole?: Partial<Record<string, unknown>>;
72
67
  clusterRoleBinding?: Partial<Record<string, unknown>>;
68
+ leaseRole?: Partial<Record<string, unknown>>;
69
+ leaseRoleBinding?: Partial<Record<string, unknown>>;
73
70
  };
74
71
  }
75
72
  export type OtelCollectorGatewayResult = {
@@ -82,12 +79,22 @@ export type OtelCollectorGatewayResult = {
82
79
  podDisruptionBudget?: InstanceType<typeof PodDisruptionBudget>;
83
80
  clusterRole?: InstanceType<typeof ClusterRole>;
84
81
  clusterRoleBinding?: InstanceType<typeof ClusterRoleBinding>;
82
+ /**
83
+ * Access to Leases for the `k8s_leader_elector` extensions the config
84
+ * enables, in the first `lease_namespace`. Each further namespace gets
85
+ * `leaseRoleIn<Namespace>` and `leaseRoleBindingIn<Namespace>`.
86
+ */
87
+ leaseRole?: InstanceType<typeof Role>;
88
+ leaseRoleBinding?: InstanceType<typeof RoleBinding>;
89
+ [member: `leaseRoleIn${string}`]: InstanceType<typeof Role>;
90
+ [member: `leaseRoleBindingIn${string}`]: InstanceType<typeof RoleBinding>;
85
91
  };
86
92
  /**
87
93
  * Create an OtelCollectorGateway composite. Returns a Deployment, a ClusterIP
88
94
  * Service, a headless Service, a ServiceAccount and a ConfigMap, a
89
- * PodDisruptionBudget when there is more than one replica, and a ClusterRole
90
- * and binding when `clusterRules` is set.
95
+ * PodDisruptionBudget when there is more than one replica, a ClusterRole
96
+ * and binding when `clusterRules` is set, and a Role and binding for Leases
97
+ * when the config enables a `k8s_leader_elector` extension.
91
98
  *
92
99
  * @example
93
100
  * ```ts
@@ -97,46 +104,17 @@ export type OtelCollectorGatewayResult = {
97
104
  * export const agent = OtelCollector({ exporters: [gatewayExporter(gateway, { loadBalance: true })], signals: ["traces"] });
98
105
  * ```
99
106
  */
100
- export declare const OtelCollectorGateway: import("@intentius/chant").CompositeDefinition<OtelCollectorGatewayProps, {
101
- clusterRole: Declarable & Record<string, string>;
102
- clusterRoleBinding: Declarable & Record<string, string>;
103
- podDisruptionBudget: Declarable & Record<string, string>;
104
- deployment: Declarable & Record<string, string>;
105
- service: Declarable & Record<string, string>;
106
- headlessService: Declarable & Record<string, string>;
107
- serviceAccount: Declarable & Record<string, string>;
108
- configMap: Declarable & Record<string, string>;
109
- } | {
110
- clusterRole?: undefined;
111
- clusterRoleBinding?: undefined;
112
- podDisruptionBudget: Declarable & Record<string, string>;
113
- deployment: Declarable & Record<string, string>;
114
- service: Declarable & Record<string, string>;
115
- headlessService: Declarable & Record<string, string>;
116
- serviceAccount: Declarable & Record<string, string>;
117
- configMap: Declarable & Record<string, string>;
118
- } | {
119
- clusterRole: Declarable & Record<string, string>;
120
- clusterRoleBinding: Declarable & Record<string, string>;
121
- podDisruptionBudget?: undefined;
122
- deployment: Declarable & Record<string, string>;
123
- service: Declarable & Record<string, string>;
124
- headlessService: Declarable & Record<string, string>;
125
- serviceAccount: Declarable & Record<string, string>;
126
- configMap: Declarable & Record<string, string>;
127
- } | {
128
- clusterRole?: undefined;
129
- clusterRoleBinding?: undefined;
130
- podDisruptionBudget?: undefined;
131
- deployment: Declarable & Record<string, string>;
132
- service: Declarable & Record<string, string>;
133
- headlessService: Declarable & Record<string, string>;
134
- serviceAccount: Declarable & Record<string, string>;
135
- configMap: Declarable & Record<string, string>;
136
- }>;
107
+ export declare const OtelCollectorGateway: import("@intentius/chant").CompositeDefinition<OtelCollectorGatewayProps, OtelCollectorGatewayResult>;
137
108
  export interface GatewayExporterOptions {
138
- /** Exporter name, so the id is `otlp/<name>` or `loadbalancing/<name>` (default: "gateway"). */
109
+ /** Exporter name, so the id is `otlp/<name>`, `otlphttp/<name>` or `loadbalancing/<name>` (default: "gateway"). */
139
110
  name?: string;
111
+ /**
112
+ * OTLP over gRPC (an `otlp` exporter) or over HTTP (an `otlphttp`
113
+ * exporter). The `loadbalancing` exporter sends OTLP over gRPC only at the
114
+ * pinned collector version, so `http` cannot be combined with
115
+ * `loadBalance`. Default: "grpc".
116
+ */
117
+ protocol?: "grpc" | "http";
140
118
  /**
141
119
  * Send each trace to one gateway replica through the headless Service with
142
120
  * a `loadbalancing` exporter, instead of to the ClusterIP Service with an
@@ -152,9 +130,13 @@ export interface GatewayExporterOptions {
152
130
  resolver?: "k8s" | "dns";
153
131
  /** What the `loadbalancing` exporter hashes on (default: "traceID"). */
154
132
  routingKey?: LoadBalancingRoutingKey;
155
- /** The gateway Service port to send to, by name (default: "otlp-grpc"). */
133
+ /** The gateway Service port to send to, by name (default: "otlp-grpc", or "otlp-http" with `protocol: "http"`). */
156
134
  port?: string;
157
- /** TLS for the connection to the gateway (default: `{ insecure: true }`, plaintext inside the cluster). */
135
+ /**
136
+ * TLS for the connection to the gateway (default: `{ insecure: true }`,
137
+ * plaintext inside the cluster). Over HTTP, `insecure` picks the scheme
138
+ * (`http://`, or `https://` without it) and the other settings are passed on.
139
+ */
158
140
  tls?: TLSClientSettings;
159
141
  }
160
142
  /**
@@ -163,11 +145,14 @@ export interface GatewayExporterOptions {
163
145
  * config listens on.
164
146
  *
165
147
  * By default an `otlp` exporter at `<service>.<namespace>.svc:<port>`. With
148
+ * `protocol: "http"`, an `otlphttp` exporter at
149
+ * `http://<service>.<namespace>.svc:<port>` (`https://` when `tls` is not
150
+ * `insecure`), sending to the gateway's OTLP HTTP port. With
166
151
  * `loadBalance`, a `loadbalancing` exporter routing by trace id to the
167
152
  * headless Service, through the `k8s` resolver (`<headless>.<namespace>`) or
168
153
  * the `dns` resolver (`<headless>.<namespace>.svc`). Put it in the agent's
169
154
  * pipelines like any other exporter; `OtelCollector` records the link in its
170
155
  * annotations and adds the RBAC the `k8s` resolver needs.
171
156
  */
172
- export declare function gatewayExporter(gateway: OtelCollectorGatewayResult, options?: GatewayExporterOptions): InstanceType<typeof OtlpExporter> | InstanceType<typeof LoadBalancingExporter>;
157
+ export declare function gatewayExporter(gateway: OtelCollectorGatewayResult, options?: GatewayExporterOptions): InstanceType<typeof OtlpExporter> | InstanceType<typeof OtlpHttpExporter> | InstanceType<typeof LoadBalancingExporter>;
173
158
  //# sourceMappingURL=otel-collector-gateway.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"otel-collector-gateway.d.ts","sourceRoot":"","sources":["../../src/composites/otel-collector-gateway.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;GAeG;AAGH,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,6BAA6B,CAAC;AAC9D,OAAO,EAEL,qBAAqB,EACrB,YAAY,EAEZ,KAAK,uBAAuB,EAC5B,KAAK,aAAa,EAClB,KAAK,MAAM,EACX,KAAK,iBAAiB,EACvB,MAAM,+BAA+B,CAAC;AACvC,OAAO,EAAE,UAAU,EAAE,OAAO,EAAE,cAAc,EAAE,WAAW,EAAE,kBAAkB,EAAE,SAAS,EAAE,mBAAmB,EAAE,MAAM,cAAc,CAAC;AASpI,gDAAgD;AAChD,MAAM,WAAW,mBAAmB;IAClC,SAAS,EAAE,MAAM,EAAE,CAAC;IACpB,SAAS,EAAE,MAAM,EAAE,CAAC;IACpB,KAAK,EAAE,MAAM,EAAE,CAAC;IAChB,aAAa,CAAC,EAAE,MAAM,EAAE,CAAC;CAC1B;AAED,MAAM,WAAW,yBAAyB;IACxC,8CAA8C;IAC9C,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,4CAA4C;IAC5C,SAAS,C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Ae,CAC7B,OAAO,EAAE,0BAA0B,EACnC,OAAO,GAAE,sBAA2B,GACnC,YAAY,CAAC,OAAO,YAAY,CAAC,GAAG,YAAY,CAAC,OAAO,qBAAqB,CAAC,CA4BhF"}
1
+ {"version":3,"file":"otel-collector-gateway.d.ts","sourceRoot":"","sources":["../../src/composites/otel-collector-gateway.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;GAeG;AAGH,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,6BAA6B,CAAC;AAC9D,OAAO,EAEL,qBAAqB,EACrB,YAAY,EACZ,gBAAgB,EAEhB,KAAK,uBAAuB,EAC5B,KAAK,aAAa,EAClB,KAAK,MAAM,EACX,KAAK,iBAAiB,EACvB,MAAM,+BAA+B,CAAC;AACvC,OAAO,EACL,UAAU,EACV,OAAO,EACP,cAAc,EACd,WAAW,EACX,kBAAkB,EAClB,SAAS,EACT,mBAAmB,EACnB,IAAI,EACJ,WAAW,EACZ,MAAM,cAAc,CAAC;AAEtB,OAAO,EAAmB,KAAK,mBAAmB,EAAE,MAAM,uBAAuB,CAAC;AASlF,YAAY,EAAE,mBAAmB,EAAE,CAAC;AAEpC,MAAM,WAAW,yBAAyB;IACxC,8CAA8C;IAC9C,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,4CAA4C;IAC5C,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,6CAA6C;IAC7C,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,mGAAmG;IACnG,KAAK,CAAC,EAAE,MAAM,CAAC;IACf;;;;OAIG;IACH,MAAM,CAAC,EAAE,QAAQ,CAAC,UAAU,CAAC,CAAC;IAC9B,wEAAwE;IACxE,SAAS,CAAC,EAAE,aAAa,CAAC,UAAU,EAAE,MAAM,EAAE,GAAG,CAAC,EAAE,CAAC;IACrD,wFAAwF;IACxF,OAAO,CAAC,EAAE,MAAM,EAAE,CAAC;IACnB;;;;;OAKG;IACH,YAAY,CAAC,EAAE,mBAAmB,EAAE,C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C;IACd;;;;OAIG;IACH,GAAG,CAAC,EAAE,iBAAiB,CAAC;CACzB;AAaD;;;;;;;;;;;;;;GAcG;AACH,wBAAgB,eAAe,CAC7B,OAAO,EAAE,0BAA0B,EACnC,OAAO,GAAE,sBAA2B,GACnC,YAAY,CAAC,OAAO,YAAY,CAAC,GAAG,YAAY,CAAC,OAAO,gBAAgB,CAAC,GAAG,YAAY,CAAC,OAAO,qBAAqB,CAAC,CAqCxH"}
@@ -0,0 +1,88 @@
1
+ /**
2
+ * What a collector pod needs from its node, worked out from the collector
3
+ * config it runs, the way `agentClusterRules` works out its RBAC (chant
4
+ * #3103). `OtelCollector` and `GkeOtelCollector` add the result to their
5
+ * DaemonSet, and WK8605 reports a workload that runs such a config without it.
6
+ *
7
+ * Only components a pipeline runs count, since the collector starts no
8
+ * other. A config that reads nothing from the node gets nothing, so its
9
+ * DaemonSet is unchanged. Each requirement cites the component's README at
10
+ * collector-contrib v0.130.0, the version the otel lexicon pins:
11
+ *
12
+ * - The node's name, from the downward API (`spec.nodeName`), in each
13
+ * variable a `k8sattributes` processor names in `filter.node_from_env_var`
14
+ * (processor/k8sattributesprocessor README, "Deployment scenarios": "Use
15
+ * the downward API to inject the node name as an environment variable"),
16
+ * and in each `${env:VAR}` a `kubeletstats` receiver's `node` uses, or its
17
+ * `endpoint` uses when the variable's name ends in `NODE_NAME`
18
+ * (receiver/kubeletstatsreceiver README, "Service Account Authentication
19
+ * Example"). An `endpoint` variable ending in `NODE_IP` or `HOST_IP` gets
20
+ * `status.hostIP` instead. Any other variable is the caller's to set.
21
+ * - The host root, read-only at a `hostmetrics` receiver's `root_path`
22
+ * (receiver/hostmetricsreceiver README, "Collecting host metrics from
23
+ * inside a container (Linux only)": bind mount the host filesystem, then
24
+ * configure `root_path`). Mounted with `HostToContainer` propagation so
25
+ * filesystems the node mounts later show up, as the upstream Helm chart's
26
+ * hostMetrics preset does.
27
+ * - The directories a `filelog` receiver's `include` patterns read, read-only
28
+ * at the same path (receiver/filelogreceiver README, "Configuration":
29
+ * `include` is a list of file glob patterns the receiver reads). The mount
30
+ * is the fixed directory part of each pattern, so `/var/log/pods/*\/*\/*.log`
31
+ * mounts `/var/log/pods`. `/var/log/containers` holds symlinks into
32
+ * `/var/log/pods`, so reading it mounts both. A pattern with no fixed
33
+ * directory below `/`, or one that would cover the config directory, is
34
+ * left to the caller.
35
+ *
36
+ * `readsLogs` is set when a `filelog` receiver reads a host directory: the
37
+ * kubelet's container logs there are owned by root, which the composites
38
+ * deal with (see `logAccess` on `OtelCollector`).
39
+ */
40
+ /** A variable set from the downward API. A type alias, so it fits where container fields are a plain record. */
41
+ export type NodeEnvVar = {
42
+ name: string;
43
+ valueFrom: {
44
+ fieldRef: {
45
+ fieldPath: "spec.nodeName" | "status.hostIP";
46
+ };
47
+ };
48
+ };
49
+ /** A host directory the collector reads, mounted read-only. */
50
+ export interface NodeHostMount {
51
+ /** Volume name, a DNS label. */
52
+ name: string;
53
+ /** Path on the node. */
54
+ hostPath: string;
55
+ /** Path in the container. */
56
+ mountPath: string;
57
+ /** Which component needs it, for messages. */
58
+ component: string;
59
+ /** `hostmetrics` takes any host mount at or under `mountPath` (the README allows mounting only parts of the root). */
60
+ partial?: boolean;
61
+ mountPropagation?: "HostToContainer";
62
+ }
63
+ export interface CollectorNodeAccess {
64
+ env: NodeEnvVar[];
65
+ mounts: NodeHostMount[];
66
+ /** A `filelog` receiver reads a host directory, whose files are root-owned. */
67
+ readsLogs: boolean;
68
+ }
69
+ /** The part of a collector config this reads; both the built config and a parsed ConfigMap value fit. */
70
+ export interface NodeReadingConfig {
71
+ receivers?: Record<string, unknown>;
72
+ processors?: Record<string, unknown>;
73
+ service?: {
74
+ pipelines?: Record<string, unknown>;
75
+ } | unknown;
76
+ }
77
+ /** The directory part of a glob before its first wildcard: `/var/log/pods/*\/x.log` is `/var/log/pods`. */
78
+ export declare function fixedDirectory(pattern: string): string | undefined;
79
+ /**
80
+ * What a collector config needs from the node. `configDir` is where the
81
+ * collector's own config is mounted; a log directory covering it is skipped.
82
+ */
83
+ export declare function collectorNodeAccess(config: NodeReadingConfig, configDir?: string): CollectorNodeAccess;
84
+ /** The pod volumes for a set of mounts. */
85
+ export declare function nodeVolumes(mounts: NodeHostMount[]): Array<Record<string, unknown>>;
86
+ /** The container volume mounts for a set of mounts, all read-only. */
87
+ export declare function nodeVolumeMounts(mounts: NodeHostMount[]): Array<Record<string, unknown>>;
88
+ //# sourceMappingURL=otel-collector-node.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"otel-collector-node.d.ts","sourceRoot":"","sources":["../../src/composites/otel-collector-node.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAsCG;AAEH,gHAAgH;AAChH,MAAM,MAAM,UAAU,GAAG;IACvB,IAAI,EAAE,MAAM,CAAC;IACb,SAAS,EAAE;QAAE,QAAQ,EAAE;YAAE,SAAS,EAAE,eAAe,GAAG,eAAe,CAAA;SAAE,CAAA;KAAE,CAAC;CAC3E,CAAC;AAEF,+DAA+D;AAC/D,MAAM,WAAW,aAAa;IAC5B,gCAAgC;IAChC,IAAI,EAAE,MAAM,CAAC;IACb,wBAAwB;IACxB,QAAQ,EAAE,MAAM,CAAC;IACjB,6BAA6B;IAC7B,SAAS,EAAE,MAAM,CAAC;IAClB,8CAA8C;IAC9C,SAAS,EAAE,MAAM,CAAC;IAClB,sHAAsH;IACtH,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,gBAAgB,CAAC,EAAE,iBAAiB,CAAC;CACtC;AAED,MAAM,WAAW,mBAAmB;IAClC,GAAG,EAAE,UAAU,EAAE,CAAC;IAClB,MAAM,EAAE,aAAa,EAAE,CAAC;IACxB,+EAA+E;IAC/E,SAAS,EAAE,OAAO,CAAC;CACpB;AAED,yGAAyG;AACzG,MAAM,WAAW,iBAAiB;IAChC,SAAS,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IACpC,UAAU,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IACrC,OAAO,CAAC,EAAE;QAAE,SAAS,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAA;KAAE,GAAG,OAAO,CAAC;CAC7D;AAqCD,2GAA2G;AAC3G,wBAAgB,cAAc,CAAC,OAAO,EAAE,MAAM,GAAG,MAAM,GAAG,SAAS,CAYlE;AAWD;;;GAGG;AACH,wBAAgB,mBAAmB,CAAC,MAAM,EAAE,iBAAiB,EAAE,SAAS,SAAc,GAAG,mBAAmB,CA2D3G;AAED,2CAA2C;AAC3C,wBAAgB,WAAW,CAAC,MAAM,EAAE,aAAa,EAAE,GAAG,KAAK,CAAC,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC,CAEnF;AAED,sEAAsE;AACtE,wBAAgB,gBAAgB,CAAC,MAAM,EAAE,aAAa,EAAE,GAAG,KAAK,CAAC,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC,CAOxF"}
@@ -0,0 +1,74 @@
1
+ /**
2
+ * The RBAC the collector composites grant, worked out from the collector
3
+ * config they deploy.
4
+ *
5
+ * `agentClusterRules` is the ClusterRole `OtelCollector` and
6
+ * `GkeOtelCollector` share: what the `k8sattributes` processor needs, plus
7
+ * what the config's Kubernetes receivers need. Each rule cites the
8
+ * component's RBAC requirements at collector-contrib v0.130.0, the version the
9
+ * otel lexicon pins.
10
+ *
11
+ * `namespacedRoles` builds one Role and RoleBinding per namespace, for access
12
+ * a collector needs in namespaces other than its own: Endpoints for a
13
+ * `loadbalancing` exporter's `k8s` resolver, Leases for a
14
+ * `k8s_leader_elector` extension.
15
+ */
16
+ import type { CollectorConfig } from "@intentius/chant-lexicon-otel";
17
+ import { Role, RoleBinding } from "../generated/index.js";
18
+ /** One RBAC rule, as a Role or ClusterRole lists it. */
19
+ export interface CollectorPolicyRule {
20
+ apiGroups: string[];
21
+ resources: string[];
22
+ verbs: string[];
23
+ resourceNames?: string[];
24
+ }
25
+ /**
26
+ * The agent ClusterRole's rules for a collector config.
27
+ *
28
+ * Always, for `k8sattributes` (processor/k8sattributesprocessor README,
29
+ * "Cluster-scoped RBAC"): `get`, `list` and `watch` on pods, namespaces and
30
+ * nodes, and on `apps` replicasets for `k8s.deployment.name`, which is
31
+ * extracted by default. The processor lists ReplicaSets through `apps/v1`
32
+ * only, so the README's `extensions` group is left out. When a
33
+ * `k8sattributes` processor extracts labels or annotations `from: deployment`,
34
+ * `apps` deployments are added.
35
+ *
36
+ * For each `kubeletstats` receiver (receiver/kubeletstatsreceiver README,
37
+ * "Role-based access control"): `get` on `nodes/stats`; `get` on
38
+ * `nodes/proxy` when it sets `extra_metadata_labels` or enables a
39
+ * `*_request_utilization` or `*_limit_utilization` metric; and, when it sets
40
+ * `k8s_api_config`, `get` on persistentvolumeclaims and persistentvolumes,
41
+ * which it reads for volume metadata (scraper.go).
42
+ *
43
+ * Other components that read the Kubernetes API, such as `k8s_cluster`
44
+ * (which belongs on a gateway, see WK8603), add their rules through
45
+ * `defaults.clusterRole.rules`, which are appended.
46
+ */
47
+ export declare function agentClusterRules(config: CollectorConfig): CollectorPolicyRule[];
48
+ export interface NamespacedRolesOptions {
49
+ /** Prefix of the member names: `<key>Role` and `<key>RoleBinding`. */
50
+ key: string;
51
+ /** Name of each Role and RoleBinding. They live in different namespaces, so one name serves all. */
52
+ name: string;
53
+ /** Namespaces to grant in, in declaration order. */
54
+ namespaces: string[];
55
+ rules: CollectorPolicyRule[];
56
+ labels: Record<string, string>;
57
+ /** The ServiceAccount every RoleBinding binds. */
58
+ serviceAccount: {
59
+ name: string;
60
+ namespace: string;
61
+ };
62
+ /** Defaults laid over each Role and each RoleBinding. */
63
+ roleDefaults?: Partial<Record<string, unknown>>;
64
+ roleBindingDefaults?: Partial<Record<string, unknown>>;
65
+ }
66
+ /**
67
+ * One Role and RoleBinding per namespace, as composite members. The first
68
+ * namespace's are `<key>Role` and `<key>RoleBinding`, so a single-namespace
69
+ * config keeps the member names it had before; each further namespace's are
70
+ * `<key>RoleIn<Namespace>` and `<key>RoleBindingIn<Namespace>`, with the
71
+ * namespace in PascalCase (`team-a` gives `endpointsRoleInTeamA`).
72
+ */
73
+ export declare function namespacedRoles(opts: NamespacedRolesOptions): Record<string, InstanceType<typeof Role> | InstanceType<typeof RoleBinding>>;
74
+ //# sourceMappingURL=otel-collector-rbac.d.ts.map