@intentius/chant-lexicon-k8s 0.106.4 → 0.107.1

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 (116) hide show
  1. package/dist/codegen/naming.d.ts.map +1 -1
  2. package/dist/composites/catalog.d.ts.map +1 -1
  3. package/dist/composites/index.d.ts +2 -0
  4. package/dist/composites/index.d.ts.map +1 -1
  5. package/dist/composites/otel-collector-shape.d.ts +2 -0
  6. package/dist/composites/otel-collector-shape.d.ts.map +1 -1
  7. package/dist/composites/otel-operator-collector.d.ts +101 -0
  8. package/dist/composites/otel-operator-collector.d.ts.map +1 -0
  9. package/dist/crd/crd-sources.d.ts.map +1 -1
  10. package/dist/generated/index.d.d.ts +172 -2
  11. package/dist/generated/index.d.ts +301 -0
  12. package/dist/generated/index.d.ts.map +1 -1
  13. package/dist/group-namespace.d.ts.map +1 -1
  14. package/dist/import/embedded.d.ts +3 -0
  15. package/dist/import/embedded.d.ts.map +1 -1
  16. package/dist/index.d.ts +2 -2
  17. package/dist/index.d.ts.map +1 -1
  18. package/dist/integrity.json +16 -9
  19. package/dist/lint/audit-catalog.d.ts.map +1 -1
  20. package/dist/lint/post-synth/index.d.ts.map +1 -1
  21. package/dist/lint/post-synth/monitoring-selection-helpers.d.ts +55 -0
  22. package/dist/lint/post-synth/monitoring-selection-helpers.d.ts.map +1 -0
  23. package/dist/lint/post-synth/otel-placement-helpers.d.ts +16 -0
  24. package/dist/lint/post-synth/otel-placement-helpers.d.ts.map +1 -1
  25. package/dist/lint/post-synth/wk8604.d.ts +6 -0
  26. package/dist/lint/post-synth/wk8604.d.ts.map +1 -1
  27. package/dist/lint/post-synth/wk8605.d.ts.map +1 -1
  28. package/dist/lint/post-synth/wk8606.d.ts +17 -0
  29. package/dist/lint/post-synth/wk8606.d.ts.map +1 -0
  30. package/dist/lint/post-synth/wk8701.d.ts +17 -0
  31. package/dist/lint/post-synth/wk8701.d.ts.map +1 -0
  32. package/dist/lint/post-synth/wk8702.d.ts +17 -0
  33. package/dist/lint/post-synth/wk8702.d.ts.map +1 -0
  34. package/dist/lint/post-synth/wk8703.d.ts +17 -0
  35. package/dist/lint/post-synth/wk8703.d.ts.map +1 -0
  36. package/dist/lint/post-synth/wk8704.d.ts +21 -0
  37. package/dist/lint/post-synth/wk8704.d.ts.map +1 -0
  38. package/dist/lint/post-synth/wk8705.d.ts +18 -0
  39. package/dist/lint/post-synth/wk8705.d.ts.map +1 -0
  40. package/dist/manifest.json +1 -1
  41. package/dist/meta.json +2284 -370
  42. package/dist/okf/index.md +20 -1
  43. package/dist/okf/rules/WK8604.md +6 -2
  44. package/dist/okf/rules/WK8605.md +4 -0
  45. package/dist/okf/rules/WK8606.md +15 -0
  46. package/dist/okf/rules/WK8701.md +18 -0
  47. package/dist/okf/rules/WK8702.md +20 -0
  48. package/dist/okf/rules/WK8703.md +17 -0
  49. package/dist/okf/rules/WK8704.md +22 -0
  50. package/dist/okf/rules/WK8705.md +18 -0
  51. package/dist/okf/types/Alertmanager.md +18 -0
  52. package/dist/okf/types/AlertmanagerConfig.md +18 -0
  53. package/dist/okf/types/ClusterObservability.md +14 -0
  54. package/dist/okf/types/CronJob.md +1 -0
  55. package/dist/okf/types/DaemonSet.md +1 -0
  56. package/dist/okf/types/Instrumentation.md +14 -0
  57. package/dist/okf/types/MonitoringProbe.md +14 -0
  58. package/dist/okf/types/Namespace.md +3 -0
  59. package/dist/okf/types/OpAMPBridge.md +14 -0
  60. package/dist/okf/types/OpenTelemetryCollector.md +19 -0
  61. package/dist/okf/types/Pod.md +1 -0
  62. package/dist/okf/types/PodMonitor.md +20 -0
  63. package/dist/okf/types/Prometheus.md +21 -0
  64. package/dist/okf/types/PrometheusAgent.md +18 -0
  65. package/dist/okf/types/PrometheusRule.md +6 -1
  66. package/dist/okf/types/ScrapeConfig.md +19 -0
  67. package/dist/okf/types/Service.md +1 -0
  68. package/dist/okf/types/ServiceMonitor.md +7 -1
  69. package/dist/okf/types/StatefulSet.md +1 -0
  70. package/dist/okf/types/TargetAllocator.md +14 -0
  71. package/dist/okf/types/ThanosRuler.md +18 -0
  72. package/dist/rules/monitoring-selection-helpers.ts +185 -0
  73. package/dist/rules/otel-placement-helpers.ts +61 -1
  74. package/dist/rules/wk8601.ts +1 -1
  75. package/dist/rules/wk8603.ts +1 -1
  76. package/dist/rules/wk8604.ts +8 -2
  77. package/dist/rules/wk8605.ts +5 -3
  78. package/dist/rules/wk8606.ts +27 -0
  79. package/dist/rules/wk8701.ts +37 -0
  80. package/dist/rules/wk8702.ts +43 -0
  81. package/dist/rules/wk8703.ts +37 -0
  82. package/dist/rules/wk8704.ts +134 -0
  83. package/dist/rules/wk8705.ts +45 -0
  84. package/dist/types/index.d.ts +172 -2
  85. package/package.json +3 -3
  86. package/src/codegen/naming.ts +15 -1
  87. package/src/composites/catalog.ts +105 -0
  88. package/src/composites/index.ts +2 -0
  89. package/src/composites/otel-collector-shape.ts +2 -0
  90. package/src/composites/otel-operator-collector.test.ts +267 -0
  91. package/src/composites/otel-operator-collector.ts +221 -0
  92. package/src/crd/crd-sources.ts +41 -2
  93. package/src/generated/index.d.ts +172 -2
  94. package/src/generated/index.ts +303 -2
  95. package/src/generated/lexicon-k8s.json +2284 -370
  96. package/src/generated/operations.json +208 -0
  97. package/src/group-namespace.test.ts +4 -0
  98. package/src/group-namespace.ts +4 -0
  99. package/src/import/embedded.ts +26 -0
  100. package/src/import/operator-collector-roundtrip.test.ts +105 -0
  101. package/src/index.ts +2 -2
  102. package/src/lint/audit-catalog.ts +6 -0
  103. package/src/lint/post-synth/index.ts +12 -0
  104. package/src/lint/post-synth/monitoring-selection-helpers.ts +185 -0
  105. package/src/lint/post-synth/monitoring-selection.test.ts +316 -0
  106. package/src/lint/post-synth/otel-placement-helpers.ts +61 -1
  107. package/src/lint/post-synth/wk8601.ts +1 -1
  108. package/src/lint/post-synth/wk8603.ts +1 -1
  109. package/src/lint/post-synth/wk8604.ts +8 -2
  110. package/src/lint/post-synth/wk8605.ts +5 -3
  111. package/src/lint/post-synth/wk8606.ts +27 -0
  112. package/src/lint/post-synth/wk8701.ts +37 -0
  113. package/src/lint/post-synth/wk8702.ts +43 -0
  114. package/src/lint/post-synth/wk8703.ts +37 -0
  115. package/src/lint/post-synth/wk8704.ts +134 -0
  116. package/src/lint/post-synth/wk8705.ts +45 -0
@@ -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;IACpD,YAAY,OAAO,EAAE,cAAc,EAAE,EAMpC;CACF"}
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;AAgLnF;;;GAGG;AACH,qBAAa,cAAe,SAAQ,kBAAkB;IACpD,YAAY,OAAO,EAAE,cAAc,EAAE,EAMpC;CACF"}
@@ -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,EAo6H5C,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,EA6gI5C,CAAC"}
@@ -68,6 +68,8 @@ export type { GkeFluentBitAgentProps, GkeFluentBitAgentResult } from "./gke-flue
68
68
  export { OtelCollector } from "./otel-collector.js";
69
69
  export type { OtelCollectorProps, OtelCollectorResult } from "./otel-collector.js";
70
70
  export type { CollectorLogAccess } from "./otel-collector-agent.js";
71
+ export { OtelOperatorCollector } from "./otel-operator-collector.js";
72
+ export type { OtelOperatorCollectorProps, OtelOperatorCollectorResult, OtelOperatorMode } from "./otel-operator-collector.js";
71
73
  export { OtelCollectorGateway, gatewayExporter } from "./otel-collector-gateway.js";
72
74
  export type { OtelCollectorGatewayProps, OtelCollectorGatewayResult, GatewayExporterOptions, CollectorPolicyRule, } from "./otel-collector-gateway.js";
73
75
  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,EAAE,iBAAiB,EAAE,MAAM,gBAAgB,CAAC;AAC1E,OAAO,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC;AAC/C,YAAY,EAAE,iBAAiB,EAAE,kBAAkB,EAAE,MAAM,iBAAiB,CAAC;AAC7E,OAAO,EAAE,iBAAiB,EAAE,MAAM,sBAAsB,CAAC;AACzD,YAAY,EAAE,sBAAsB,EAAE,uBAAuB,EAAE,MAAM,sBAAsB,C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sB,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"}
@@ -21,6 +21,7 @@ import { type BuiltCollector } from "@intentius/chant-lexicon-otel";
21
21
  * | `role` | ConfigMap, workload | `agent` (a DaemonSet, one collector per node) or `gateway` (a Deployment) |
22
22
  * | `workload` | ConfigMap | the workload that mounts it, `DaemonSet/<name>` or `Deployment/<name>`, in the ConfigMap's namespace |
23
23
  * | `config` | workload | the name of the ConfigMap holding its `config.yaml` |
24
+ * | `header` | `OtelOperatorCollector`'s `OpenTelemetryCollector` | the config's `# chant:` header lines (custom-component pins, semconv use), one per line, which an object-valued `spec.config` has no comments to hold |
24
25
  * | `gateways` | agent ConfigMap and DaemonSet | comma-separated `<namespace>/<gateway name>=<routing>`, where routing is `loadbalancing` or `service` |
25
26
  *
26
27
  * The replica count is the workload's own `spec.replicas`.
@@ -30,6 +31,7 @@ export declare const OTEL_COLLECTOR_ANNOTATIONS: {
30
31
  readonly workload: "otel.chant.dev/workload";
31
32
  readonly config: "otel.chant.dev/config";
32
33
  readonly gateways: "otel.chant.dev/gateways";
34
+ readonly header: "otel.chant.dev/header";
33
35
  };
34
36
  export type CollectorRole = "agent" | "gateway";
35
37
  /** How an agent reaches a gateway: its ClusterIP Service, or each replica through `loadbalancing`. */
@@ -1 +1 @@
1
- {"version":3,"file":"otel-collector-shape.d.ts","sourceRoot":"","sources":["../../src/composites/otel-collector-shape.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;GAWG;AAEH,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,6BAA6B,CAAC;AAC9D,OAAO,EAML,KA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AAO,EAAE,aAAa,EAAE,GAAG,MAAM,CAEnE;AAED,gHAAgH;AAChH,MAAM,WAAW,gBAAgB;IAC/B,KAAK,EAAE,cAAc,CAAC;IACtB,UAAU,EAAE,MAAM,CAAC;IACnB,SAAS,EAAE,MAAM,CAAC;IAClB,cAAc,EAAE,KAAK,CAAC;QAAE,aAAa,EAAE,MAAM,CAAC;QAAC,IAAI,EAAE,MAAM,CAAC;QAAC,QAAQ,CAAC,EAAE,KAAK,CAAA;KAAE,CAAC,CAAC;IACjF,+FAA+F;IAC/F,YAAY,EAAE,KAAK,CAAC;QAAE,IAAI,EAAE,MAAM,CAAC;QAAC,IAAI,EAAE,MAAM,CAAC;QAAC,QAAQ,CAAC,EAAE,KAAK,CAAA;KAAE,CAAC,CAAC;IACtE,gFAAgF;IAChF,cAAc,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;CACzC;AAED,wBAAgB,gBAAgB,CAAC,QAAQ,EAAE,UAAU,EAAE,GAAG,gBAAgB,CAkCzE;AAED;;;;GAIG;AACH,wBAAgB,qBAAqB,CAAC,KAAK,EAAE,cAAc,EAAE,YAAY,EAAE,MAAM,GAAG,MAAM,EAAE,CAW3F;AAED;;;;;GAKG;AACH,wBAAgB,4BAA4B,CAAC,KAAK,EAAE,cAAc,GAAG,MAAM,EAAE,CAW5E"}
@@ -0,0 +1,101 @@
1
+ /**
2
+ * OtelOperatorCollector composite: an OpenTelemetry Collector run by the
3
+ * OpenTelemetry Operator, as an `OpenTelemetryCollector` custom resource
4
+ * (opentelemetry.io/v1beta1).
5
+ *
6
+ * `OtelCollector` builds the DaemonSet, ConfigMap and Service itself. Here the
7
+ * operator builds them from one custom resource, and the otel lexicon's
8
+ * config goes straight into `spec.config`, which v1beta1 declares as an
9
+ * object (`exporters`, `receivers` and `service` required). The ports, the
10
+ * node access (downward API variables, host mounts, log group) and the RBAC
11
+ * come from the same readers `OtelCollector` uses, so the two follow a config
12
+ * the same way.
13
+ *
14
+ * An object has no comment lines, so the `# chant:` header that carries
15
+ * custom-component pins and semconv use (see `buildCollectorConfig`) is kept
16
+ * in the `otel.chant.dev/header` annotation, one line per entry. `chant
17
+ * import` puts it back on top of the config when it reads the CR.
18
+ *
19
+ * The operator names the workload `<name>-collector` and, with
20
+ * `spec.serviceAccount` set as it is here, runs it as the ServiceAccount this
21
+ * composite makes. The ClusterRole is bound to that ServiceAccount.
22
+ */
23
+ import type { Declarable } from "@intentius/chant/declarable";
24
+ import { type OTelComponent, type Signal } from "@intentius/chant-lexicon-otel";
25
+ import { ServiceAccount, ClusterRole, ClusterRoleBinding, Role, RoleBinding, OpenTelemetryCollector } from "../generated/index.js";
26
+ import type { MemberDefaults } from "./member-defaults.js";
27
+ import type { CollectorLogAccess } from "./otel-collector-agent.js";
28
+ /** How the operator runs the collector. `sidecar` is left out: it injects into other pods, which this composite does not name. */
29
+ export type OtelOperatorMode = "daemonset" | "deployment" | "statefulset";
30
+ export interface OtelOperatorCollectorProps {
31
+ /** Custom resource name (default: "otel-collector"). The operator names the workload `<name>-collector`. */
32
+ name?: string;
33
+ /** Namespace (default: "observability"). */
34
+ namespace?: string;
35
+ /** How the operator runs it (default: "daemonset", the agent shape `OtelCollector` has). */
36
+ mode?: OtelOperatorMode;
37
+ /** Replica count for `deployment` and `statefulset` (left to the operator's default of 1 when unset). Not allowed for `daemonset`. */
38
+ replicas?: number;
39
+ /** Collector image (default: the contrib image at the otel lexicon's pinned collector version). */
40
+ image?: string;
41
+ /**
42
+ * The collector config, as otel lexicon entities (components and
43
+ * pipelines). Replaces the default config, and `exporters` and `signals`
44
+ * are then ignored.
45
+ */
46
+ config?: Iterable<Declarable>;
47
+ /** Exporters for the default config (default: one `debug` exporter). */
48
+ exporters?: OTelComponent<"exporter", string, any>[];
49
+ /** Signals the default config has pipelines for (default: traces, metrics and logs). */
50
+ signals?: Signal[];
51
+ /** Additional labels. */
52
+ labels?: Record<string, string>;
53
+ /** How a config with a `filelog` receiver reads the node's container logs; see `OtelCollector`. Ignored for a config that reads no logs from the node. */
54
+ logAccess?: CollectorLogAccess;
55
+ /** CPU request (default: "100m"). */
56
+ cpuRequest?: string;
57
+ /** Memory request (default: "256Mi"). */
58
+ memoryRequest?: string;
59
+ /** CPU limit (default: "500m"). */
60
+ cpuLimit?: string;
61
+ /** Memory limit (default: "512Mi"). */
62
+ memoryLimit?: string;
63
+ /** Per-member defaults for fine-grained overrides. */
64
+ defaults?: {
65
+ collector?: MemberDefaults<"OpenTelemetryCollector">;
66
+ serviceAccount?: MemberDefaults<"ServiceAccount">;
67
+ clusterRole?: MemberDefaults<"ClusterRole">;
68
+ clusterRoleBinding?: MemberDefaults<"ClusterRoleBinding">;
69
+ endpointsRole?: MemberDefaults<"Role">;
70
+ endpointsRoleBinding?: MemberDefaults<"RoleBinding">;
71
+ };
72
+ }
73
+ export type OtelOperatorCollectorResult = {
74
+ collector: InstanceType<typeof OpenTelemetryCollector>;
75
+ serviceAccount: InstanceType<typeof ServiceAccount>;
76
+ clusterRole: InstanceType<typeof ClusterRole>;
77
+ clusterRoleBinding: InstanceType<typeof ClusterRoleBinding>;
78
+ /** Read access to Endpoints for a `loadbalancing` exporter's `k8s` resolver, as in `OtelCollectorResult`. */
79
+ endpointsRole?: InstanceType<typeof Role>;
80
+ endpointsRoleBinding?: InstanceType<typeof RoleBinding>;
81
+ [member: `endpointsRoleIn${string}`]: InstanceType<typeof Role>;
82
+ [member: `endpointsRoleBindingIn${string}`]: InstanceType<typeof RoleBinding>;
83
+ };
84
+ /**
85
+ * Create an OtelOperatorCollector composite. Returns an OpenTelemetryCollector
86
+ * custom resource, a ServiceAccount, a ClusterRole and a ClusterRoleBinding.
87
+ *
88
+ * @example
89
+ * ```ts
90
+ * import { OtelOperatorCollector } from "@intentius/chant-lexicon-k8s";
91
+ * import { OtlpExporter } from "@intentius/chant-lexicon-otel";
92
+ *
93
+ * export const collector = OtelOperatorCollector({
94
+ * mode: "deployment",
95
+ * replicas: 2,
96
+ * exporters: [new OtlpExporter({ endpoint: "tempo.observability.svc:4317", tls: { insecure: true } })],
97
+ * });
98
+ * ```
99
+ */
100
+ export declare const OtelOperatorCollector: import("@intentius/chant").CompositeDefinition<OtelOperatorCollectorProps, OtelOperatorCollectorResult>;
101
+ //# sourceMappingURL=otel-operator-collector.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"otel-operator-collector.d.ts","sourceRoot":"","sources":["../../src/composites/otel-operator-collector.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;GAqBG;AAGH,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,6BAA6B,CAAC;AAC9D,OAAO,EAGL,KAAK,aAAa,EAClB,KAAK,MAAM,EACZ,MAAM,+BAA+B,CAAC;AACvC,OAAO,EAAE,cAAc,EAAE,WAAW,EAAE,kBAAkB,EAAE,IAAI,EAAE,WAAW,EAAE,sBAAsB,EAAE,MAAM,cAAc,CAAC;AAC1H,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,mBAAmB,CAAC;AACxD,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,wBAAwB,CAAC;AAWjE,kIAAkI;AAClI,MAAM,MAAM,gBAAgB,GAAG,WAAW,GAAG,YAAY,GAAG,aAAa,CAAC;AAE1E,MAAM,WAAW,0BAA0B;IACzC,4GAA4G;IAC5G,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,4CAA4C;IAC5C,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,4FAA4F;IAC5F,IAAI,CAAC,EAAE,gBAAgB,CAAC;IACxB,sIAAsI;IACtI,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;IAC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AG,YAAY,CAAC,OAAO,IAAI,CAAC,CAAC;IAChE,CAAC,MAAM,EAAE,yBAAyB,MAAM,EAAE,GAAG,YAAY,CAAC,OAAO,WAAW,CAAC,CAAC;CAC/E,CAAC;AAEF;;;;;;;;;;;;;;;GAeG;AACH,eAAO,MAAM,qBAAqB,yGAqGP,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"crd-sources.d.ts","sourceRoot":"","sources":["../../src/crd/crd-sources.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,SAAS,CAAC;AAifzC,eAAO,MAAM,WAAW,EAAE,SAAS,EA+FlC,CAAC"}
1
+ {"version":3,"file":"crd-sources.d.ts","sourceRoot":"","sources":["../../src/crd/crd-sources.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,SAAS,CAAC;AA2gBzC,eAAO,MAAM,WAAW,EAAE,SAAS,EA4GlC,CAAC"}
@@ -26,6 +26,33 @@ export declare class Alert {
26
26
  readonly uid: string;
27
27
  }
28
28
 
29
+ export declare class Alertmanager {
30
+ constructor(props: {
31
+ /** spec defines the specification of the desired behavior of the Alertmanager cluster. More info:
32
+ https://github.com/kubernetes/community/blob/master/contributors/devel/sig-architecture/api-conventions.md#spec-and-status */
33
+ spec: Record<string, unknown>;
34
+ /** Standard object's metadata. */
35
+ metadata?: ObjectMeta;
36
+ });
37
+ readonly name: string;
38
+ readonly namespace: string;
39
+ readonly status: Record<string, unknown>;
40
+ readonly uid: string;
41
+ }
42
+
43
+ export declare class AlertmanagerConfig {
44
+ constructor(props: {
45
+ /** spec defines the specification of AlertmanagerConfigSpec */
46
+ spec: Record<string, unknown>;
47
+ /** Standard object's metadata. */
48
+ metadata?: ObjectMeta;
49
+ });
50
+ readonly name: string;
51
+ readonly namespace: string;
52
+ readonly status: Record<string, unknown>;
53
+ readonly uid: string;
54
+ }
55
+
29
56
  export declare class APIGroup {
30
57
  constructor(props: {
31
58
  /** name is the name of the group. */
@@ -317,6 +344,18 @@ export declare class ClusterIssuer {
317
344
  readonly uid: string;
318
345
  }
319
346
 
347
+ export declare class ClusterObservability {
348
+ constructor(props: {
349
+ /** Standard object's metadata. */
350
+ metadata?: ObjectMeta;
351
+ spec?: Record<string, unknown>;
352
+ });
353
+ readonly name: string;
354
+ readonly namespace: string;
355
+ readonly status: Record<string, unknown>;
356
+ readonly uid: string;
357
+ }
358
+
320
359
  export declare class ClusterResourceSet {
321
360
  constructor(props: {
322
361
  /** spec is the desired state of ClusterResourceSet. */
@@ -1569,6 +1608,18 @@ export declare class IngressRouteUDP {
1569
1608
  readonly uid: string;
1570
1609
  }
1571
1610
 
1611
+ export declare class Instrumentation {
1612
+ constructor(props: {
1613
+ /** Standard object's metadata. */
1614
+ metadata?: ObjectMeta;
1615
+ spec?: Record<string, unknown>;
1616
+ });
1617
+ readonly name: string;
1618
+ readonly namespace: string;
1619
+ readonly status: Record<string, unknown>;
1620
+ readonly uid: string;
1621
+ }
1622
+
1572
1623
  export declare class IPAddress {
1573
1624
  constructor(props: {
1574
1625
  /** spec is the desired state of the IPAddress. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status */
@@ -1837,6 +1888,19 @@ export declare class MiddlewareTCP {
1837
1888
  readonly uid: string;
1838
1889
  }
1839
1890
 
1891
+ export declare class MonitoringProbe {
1892
+ constructor(props: {
1893
+ /** spec defines the specification of desired Ingress selection for target discovery by Prometheus. */
1894
+ spec: Record<string, unknown>;
1895
+ /** Standard object's metadata. */
1896
+ metadata?: ObjectMeta;
1897
+ });
1898
+ readonly name: string;
1899
+ readonly namespace: string;
1900
+ readonly status: Record<string, unknown>;
1901
+ readonly uid: string;
1902
+ }
1903
+
1840
1904
  export declare class MutatingAdmissionPolicy {
1841
1905
  constructor(props: {
1842
1906
  /** metadata is the standard object metadata; More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata. */
@@ -2032,6 +2096,30 @@ export declare class OCIRepository {
2032
2096
  readonly uid: string;
2033
2097
  }
2034
2098
 
2099
+ export declare class OpAMPBridge {
2100
+ constructor(props: {
2101
+ /** Standard object's metadata. */
2102
+ metadata?: ObjectMeta;
2103
+ spec?: Record<string, unknown>;
2104
+ });
2105
+ readonly name: string;
2106
+ readonly namespace: string;
2107
+ readonly status: Record<string, unknown>;
2108
+ readonly uid: string;
2109
+ }
2110
+
2111
+ export declare class OpenTelemetryCollector {
2112
+ constructor(props: {
2113
+ /** Standard object's metadata. */
2114
+ metadata?: ObjectMeta;
2115
+ spec?: Record<string, unknown>;
2116
+ });
2117
+ readonly name: string;
2118
+ readonly namespace: string;
2119
+ readonly status: Record<string, unknown>;
2120
+ readonly uid: string;
2121
+ }
2122
+
2035
2123
  export declare class Order {
2036
2124
  constructor(props: {
2037
2125
  spec: Record<string, unknown>;
@@ -2193,6 +2281,19 @@ export declare class PodList {
2193
2281
  readonly uid: string;
2194
2282
  }
2195
2283
 
2284
+ export declare class PodMonitor {
2285
+ constructor(props: {
2286
+ /** spec defines the specification of desired Pod selection for target discovery by Prometheus. */
2287
+ spec: Record<string, unknown>;
2288
+ /** Standard object's metadata. */
2289
+ metadata?: ObjectMeta;
2290
+ });
2291
+ readonly name: string;
2292
+ readonly namespace: string;
2293
+ readonly status: Record<string, unknown>;
2294
+ readonly uid: string;
2295
+ }
2296
+
2196
2297
  export declare class PodTemplate {
2197
2298
  constructor(props: {
2198
2299
  /** Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata */
@@ -2307,15 +2408,44 @@ export declare class PriorityLevelConfigurationList {
2307
2408
  readonly uid: string;
2308
2409
  }
2309
2410
 
2411
+ export declare class Prometheus {
2412
+ constructor(props: {
2413
+ /** spec defines the specification of the desired behavior of the Prometheus cluster. More info:
2414
+ https://github.com/kubernetes/community/blob/master/contributors/devel/sig-architecture/api-conventions.md#spec-and-status */
2415
+ spec: Record<string, unknown>;
2416
+ /** Standard object's metadata. */
2417
+ metadata?: ObjectMeta;
2418
+ });
2419
+ readonly name: string;
2420
+ readonly namespace: string;
2421
+ readonly status: Record<string, unknown>;
2422
+ readonly uid: string;
2423
+ }
2424
+
2425
+ export declare class PrometheusAgent {
2426
+ constructor(props: {
2427
+ /** spec defines the specification of the desired behavior of the Prometheus agent. More info:
2428
+ https://github.com/kubernetes/community/blob/master/contributors/devel/sig-architecture/api-conventions.md#spec-and-status */
2429
+ spec: Record<string, unknown>;
2430
+ /** Standard object's metadata. */
2431
+ metadata?: ObjectMeta;
2432
+ });
2433
+ readonly name: string;
2434
+ readonly namespace: string;
2435
+ readonly status: Record<string, unknown>;
2436
+ readonly uid: string;
2437
+ }
2438
+
2310
2439
  export declare class PrometheusRule {
2311
2440
  constructor(props: {
2312
- /** Specification of desired alerting rule definitions for Prometheus. */
2441
+ /** spec defines the specification of desired alerting rule definitions for Prometheus. */
2313
2442
  spec: Record<string, unknown>;
2314
2443
  /** Standard object's metadata. */
2315
2444
  metadata?: ObjectMeta;
2316
2445
  });
2317
2446
  readonly name: string;
2318
2447
  readonly namespace: string;
2448
+ readonly status: Record<string, unknown>;
2319
2449
  readonly uid: string;
2320
2450
  }
2321
2451
 
@@ -2726,6 +2856,19 @@ More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-
2726
2856
  readonly uid: string;
2727
2857
  }
2728
2858
 
2859
+ export declare class ScrapeConfig {
2860
+ constructor(props: {
2861
+ /** spec defines the specification of ScrapeConfigSpec. */
2862
+ spec: Record<string, unknown>;
2863
+ /** Standard object's metadata. */
2864
+ metadata?: ObjectMeta;
2865
+ });
2866
+ readonly name: string;
2867
+ readonly namespace: string;
2868
+ readonly status: Record<string, unknown>;
2869
+ readonly uid: string;
2870
+ }
2871
+
2729
2872
  export declare class Sec {
2730
2873
  constructor(props: {
2731
2874
  /** Data contains the secret data. Each key must consist of alphanumeric characters, '-', '_' or '.'. The serialized form of the secret data is a base64 encoded string, representing the arbitrary (possibly non-string) data value here. Described in https://tools.ietf.org/html/rfc4648#section-4 */
@@ -2910,7 +3053,7 @@ export declare class ServiceList {
2910
3053
 
2911
3054
  export declare class ServiceMonitor {
2912
3055
  constructor(props: {
2913
- /** Specification of desired Service selection for target discovery by
3056
+ /** spec defines the specification of desired Service selection for target discovery by
2914
3057
  Prometheus. */
2915
3058
  spec: Record<string, unknown>;
2916
3059
  /** Standard object's metadata. */
@@ -2918,6 +3061,7 @@ Prometheus. */
2918
3061
  });
2919
3062
  readonly name: string;
2920
3063
  readonly namespace: string;
3064
+ readonly status: Record<string, unknown>;
2921
3065
  readonly uid: string;
2922
3066
  }
2923
3067
 
@@ -3059,6 +3203,32 @@ export declare class SubjectAccessReview {
3059
3203
  readonly uid: string;
3060
3204
  }
3061
3205
 
3206
+ export declare class TargetAllocator {
3207
+ constructor(props: {
3208
+ /** Standard object's metadata. */
3209
+ metadata?: ObjectMeta;
3210
+ spec?: Record<string, unknown>;
3211
+ });
3212
+ readonly name: string;
3213
+ readonly namespace: string;
3214
+ readonly status: Record<string, unknown>;
3215
+ readonly uid: string;
3216
+ }
3217
+
3218
+ export declare class ThanosRuler {
3219
+ constructor(props: {
3220
+ /** spec defines the specification of the desired behavior of the ThanosRuler cluster. More info:
3221
+ https://github.com/kubernetes/community/blob/master/contributors/devel/sig-architecture/api-conventions.md#spec-and-status */
3222
+ spec: Record<string, unknown>;
3223
+ /** Standard object's metadata. */
3224
+ metadata?: ObjectMeta;
3225
+ });
3226
+ readonly name: string;
3227
+ readonly namespace: string;
3228
+ readonly status: Record<string, unknown>;
3229
+ readonly uid: string;
3230
+ }
3231
+
3062
3232
  export declare class TLSOption {
3063
3233
  constructor(props: {
3064
3234
  /** TLSOptionSpec defines the desired state of a TLSOption. */