@intentius/chant-lexicon-k8s 0.106.4 → 0.108.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.
- package/dist/codegen/naming.d.ts.map +1 -1
- package/dist/composites/catalog.d.ts.map +1 -1
- package/dist/composites/index.d.ts +2 -0
- package/dist/composites/index.d.ts.map +1 -1
- package/dist/composites/otel-collector-shape.d.ts +2 -0
- package/dist/composites/otel-collector-shape.d.ts.map +1 -1
- package/dist/composites/otel-operator-collector.d.ts +101 -0
- package/dist/composites/otel-operator-collector.d.ts.map +1 -0
- package/dist/config-schema.d.ts +115 -1
- package/dist/config-schema.d.ts.map +1 -1
- package/dist/config.d.ts +58 -3
- package/dist/config.d.ts.map +1 -1
- package/dist/crd/crd-sources.d.ts.map +1 -1
- package/dist/crd/loader.d.ts +4 -0
- package/dist/crd/loader.d.ts.map +1 -1
- package/dist/crd/parser.d.ts +5 -0
- package/dist/crd/parser.d.ts.map +1 -1
- package/dist/crd/project-codegen.d.ts +33 -0
- package/dist/crd/project-codegen.d.ts.map +1 -0
- package/dist/generated/index.d.d.ts +172 -2
- package/dist/generated/index.d.ts +301 -0
- package/dist/generated/index.d.ts.map +1 -1
- package/dist/group-namespace.d.ts.map +1 -1
- package/dist/import/embedded.d.ts +3 -0
- package/dist/import/embedded.d.ts.map +1 -1
- package/dist/include/entity.d.ts +73 -0
- package/dist/include/entity.d.ts.map +1 -0
- package/dist/include/resolve.d.ts +29 -0
- package/dist/include/resolve.d.ts.map +1 -0
- package/dist/index.d.ts +9 -2
- package/dist/index.d.ts.map +1 -1
- package/dist/integrity.json +17 -10
- package/dist/kustomize/rendered-entity.d.ts +15 -1
- package/dist/kustomize/rendered-entity.d.ts.map +1 -1
- package/dist/kustomize/root.d.ts +11 -2
- package/dist/kustomize/root.d.ts.map +1 -1
- package/dist/lint/audit-catalog.d.ts.map +1 -1
- package/dist/lint/post-synth/crd-schema-helpers.d.ts +5 -1
- package/dist/lint/post-synth/crd-schema-helpers.d.ts.map +1 -1
- package/dist/lint/post-synth/index.d.ts.map +1 -1
- package/dist/lint/post-synth/monitoring-selection-helpers.d.ts +55 -0
- package/dist/lint/post-synth/monitoring-selection-helpers.d.ts.map +1 -0
- package/dist/lint/post-synth/otel-placement-helpers.d.ts +16 -0
- package/dist/lint/post-synth/otel-placement-helpers.d.ts.map +1 -1
- package/dist/lint/post-synth/wk8604.d.ts +6 -0
- package/dist/lint/post-synth/wk8604.d.ts.map +1 -1
- package/dist/lint/post-synth/wk8605.d.ts.map +1 -1
- package/dist/lint/post-synth/wk8606.d.ts +17 -0
- package/dist/lint/post-synth/wk8606.d.ts.map +1 -0
- package/dist/lint/post-synth/wk8701.d.ts +17 -0
- package/dist/lint/post-synth/wk8701.d.ts.map +1 -0
- package/dist/lint/post-synth/wk8702.d.ts +17 -0
- package/dist/lint/post-synth/wk8702.d.ts.map +1 -0
- package/dist/lint/post-synth/wk8703.d.ts +17 -0
- package/dist/lint/post-synth/wk8703.d.ts.map +1 -0
- package/dist/lint/post-synth/wk8704.d.ts +21 -0
- package/dist/lint/post-synth/wk8704.d.ts.map +1 -0
- package/dist/lint/post-synth/wk8705.d.ts +18 -0
- package/dist/lint/post-synth/wk8705.d.ts.map +1 -0
- package/dist/manifest.json +1 -1
- package/dist/meta.json +2284 -370
- package/dist/okf/index.md +20 -1
- package/dist/okf/rules/WK8604.md +6 -2
- package/dist/okf/rules/WK8605.md +4 -0
- package/dist/okf/rules/WK8606.md +15 -0
- package/dist/okf/rules/WK8701.md +18 -0
- package/dist/okf/rules/WK8702.md +20 -0
- package/dist/okf/rules/WK8703.md +17 -0
- package/dist/okf/rules/WK8704.md +22 -0
- package/dist/okf/rules/WK8705.md +18 -0
- package/dist/okf/types/Alertmanager.md +18 -0
- package/dist/okf/types/AlertmanagerConfig.md +18 -0
- package/dist/okf/types/ClusterObservability.md +14 -0
- package/dist/okf/types/CronJob.md +1 -0
- package/dist/okf/types/DaemonSet.md +1 -0
- package/dist/okf/types/Instrumentation.md +14 -0
- package/dist/okf/types/MonitoringProbe.md +14 -0
- package/dist/okf/types/Namespace.md +3 -0
- package/dist/okf/types/OpAMPBridge.md +14 -0
- package/dist/okf/types/OpenTelemetryCollector.md +19 -0
- package/dist/okf/types/Pod.md +1 -0
- package/dist/okf/types/PodMonitor.md +20 -0
- package/dist/okf/types/Prometheus.md +21 -0
- package/dist/okf/types/PrometheusAgent.md +18 -0
- package/dist/okf/types/PrometheusRule.md +6 -1
- package/dist/okf/types/ScrapeConfig.md +19 -0
- package/dist/okf/types/Service.md +1 -0
- package/dist/okf/types/ServiceMonitor.md +7 -1
- package/dist/okf/types/StatefulSet.md +1 -0
- package/dist/okf/types/TargetAllocator.md +14 -0
- package/dist/okf/types/ThanosRuler.md +18 -0
- package/dist/patch/json-patch.d.ts +51 -0
- package/dist/patch/json-patch.d.ts.map +1 -0
- package/dist/patch/rendered-patch.d.ts +90 -0
- package/dist/patch/rendered-patch.d.ts.map +1 -0
- package/dist/plugin.d.ts.map +1 -1
- package/dist/project-kinds.d.ts +46 -0
- package/dist/project-kinds.d.ts.map +1 -0
- package/dist/rules/crd-schema-helpers.ts +10 -2
- package/dist/rules/monitoring-selection-helpers.ts +185 -0
- package/dist/rules/otel-placement-helpers.ts +61 -1
- package/dist/rules/wk8601.ts +1 -1
- package/dist/rules/wk8603.ts +1 -1
- package/dist/rules/wk8604.ts +8 -2
- package/dist/rules/wk8605.ts +5 -3
- package/dist/rules/wk8606.ts +27 -0
- package/dist/rules/wk8701.ts +37 -0
- package/dist/rules/wk8702.ts +43 -0
- package/dist/rules/wk8703.ts +37 -0
- package/dist/rules/wk8704.ts +134 -0
- package/dist/rules/wk8705.ts +45 -0
- package/dist/serializer.d.ts.map +1 -1
- package/dist/types/index.d.ts +172 -2
- package/package.json +3 -3
- package/src/codegen/naming.ts +15 -1
- package/src/composites/catalog.ts +105 -0
- package/src/composites/index.ts +2 -0
- package/src/composites/otel-collector-shape.ts +2 -0
- package/src/composites/otel-operator-collector.test.ts +267 -0
- package/src/composites/otel-operator-collector.ts +221 -0
- package/src/config-augmentation.test.ts +28 -0
- package/src/config-schema.ts +47 -1
- package/src/config.ts +44 -3
- package/src/crd/crd-sources.ts +41 -2
- package/src/crd/loader.ts +1 -1
- package/src/crd/parser.ts +9 -5
- package/src/crd/project-codegen.test.ts +239 -0
- package/src/crd/project-codegen.ts +327 -0
- package/src/generated/index.d.ts +172 -2
- package/src/generated/index.ts +303 -2
- package/src/generated/lexicon-k8s.json +2284 -370
- package/src/generated/operations.json +208 -0
- package/src/group-namespace.test.ts +4 -0
- package/src/group-namespace.ts +4 -0
- package/src/import/embedded.ts +26 -0
- package/src/import/operator-collector-roundtrip.test.ts +105 -0
- package/src/include/entity.ts +119 -0
- package/src/include/include.test.ts +345 -0
- package/src/include/resolve.ts +204 -0
- package/src/index.ts +25 -2
- package/src/kustomize/rendered-entity.ts +43 -1
- package/src/kustomize/root.test.ts +39 -0
- package/src/kustomize/root.ts +16 -30
- package/src/lint/audit-catalog.ts +6 -0
- package/src/lint/post-synth/crd-schema-helpers.ts +10 -2
- package/src/lint/post-synth/index.ts +12 -0
- package/src/lint/post-synth/monitoring-selection-helpers.ts +185 -0
- package/src/lint/post-synth/monitoring-selection.test.ts +316 -0
- package/src/lint/post-synth/otel-placement-helpers.ts +61 -1
- package/src/lint/post-synth/wk8601.ts +1 -1
- package/src/lint/post-synth/wk8603.ts +1 -1
- package/src/lint/post-synth/wk8604.ts +8 -2
- package/src/lint/post-synth/wk8605.ts +5 -3
- package/src/lint/post-synth/wk8606.ts +27 -0
- package/src/lint/post-synth/wk8701.ts +37 -0
- package/src/lint/post-synth/wk8702.ts +43 -0
- package/src/lint/post-synth/wk8703.ts +37 -0
- package/src/lint/post-synth/wk8704.ts +134 -0
- package/src/lint/post-synth/wk8705.ts +45 -0
- package/src/patch/json-patch.test.ts +91 -0
- package/src/patch/json-patch.ts +189 -0
- package/src/patch/rendered-patch.test.ts +143 -0
- package/src/patch/rendered-patch.ts +180 -0
- package/src/plugin.ts +16 -2
- package/src/project-kinds.ts +75 -0
- package/src/serializer.ts +10 -0
- package/src/testdata/include/bundle.yaml +45 -0
package/dist/okf/index.md
CHANGED
|
@@ -6,6 +6,8 @@ okf_version: '0.2'
|
|
|
6
6
|
|
|
7
7
|
* [Addon](/types/Addon.md) - K8s::K3s::Addon
|
|
8
8
|
* [Alert](/types/Alert.md) - K8s::Flux::Alert
|
|
9
|
+
* [Alertmanager](/types/Alertmanager.md) - K8s::Monitoring::Alertmanager
|
|
10
|
+
* [AlertmanagerConfig](/types/AlertmanagerConfig.md) - K8s::Monitoring::AlertmanagerConfig
|
|
9
11
|
* [APIGroup](/types/APIGroup.md) - K8s::Core::APIGroup
|
|
10
12
|
* [APIGroupList](/types/APIGroupList.md) - K8s::Core::APIGroupList
|
|
11
13
|
* [APIResourceList](/types/APIResourceList.md) - K8s::Core::APIResourceList
|
|
@@ -29,6 +31,7 @@ okf_version: '0.2'
|
|
|
29
31
|
* [CertificateSigningRequestList](/types/CertificateSigningRequestList.md) - K8s::Certificates::CertificateSigningRequestList
|
|
30
32
|
* [Challenge](/types/Challenge.md) - K8s::Acme::Challenge
|
|
31
33
|
* [ClusterIssuer](/types/ClusterIssuer.md) - K8s::CertManager::ClusterIssuer
|
|
34
|
+
* [ClusterObservability](/types/ClusterObservability.md) - K8s::OpenTelemetry::ClusterObservability
|
|
32
35
|
* [ClusterResourceSet](/types/ClusterResourceSet.md) - K8s::Addons::ClusterResourceSet
|
|
33
36
|
* [ClusterRole](/types/ClusterRole.md) - K8s::Rbac::ClusterRole
|
|
34
37
|
* [ClusterRoleBinding](/types/ClusterRoleBinding.md) - K8s::Rbac::ClusterRoleBinding
|
|
@@ -116,6 +119,7 @@ okf_version: '0.2'
|
|
|
116
119
|
* [IngressRoute](/types/IngressRoute.md) - K8s::Traefik::IngressRoute
|
|
117
120
|
* [IngressRouteTCP](/types/IngressRouteTCP.md) - K8s::Traefik::IngressRouteTCP
|
|
118
121
|
* [IngressRouteUDP](/types/IngressRouteUDP.md) - K8s::Traefik::IngressRouteUDP
|
|
122
|
+
* [Instrumentation](/types/Instrumentation.md) - K8s::OpenTelemetry::Instrumentation
|
|
119
123
|
* [IPAddress](/types/IPAddress.md) - K8s::Networking::IPAddress
|
|
120
124
|
* [IPAddressList](/types/IPAddressList.md) - K8s::Networking::IPAddressList
|
|
121
125
|
* [Issuer](/types/Issuer.md) - K8s::CertManager::Issuer
|
|
@@ -137,6 +141,7 @@ okf_version: '0.2'
|
|
|
137
141
|
* [MicroVMReplicaSet](/types/MicroVMReplicaSet.md) - K8s::KubeMicroVM::MicroVMReplicaSet
|
|
138
142
|
* [Middleware](/types/Middleware.md) - K8s::Traefik::Middleware
|
|
139
143
|
* [MiddlewareTCP](/types/MiddlewareTCP.md) - K8s::Traefik::MiddlewareTCP
|
|
144
|
+
* [MonitoringProbe](/types/MonitoringProbe.md) - K8s::Monitoring::Probe
|
|
140
145
|
* [MutatingAdmissionPolicy](/types/MutatingAdmissionPolicy.md) - K8s::Admissionregistration::MutatingAdmissionPolicy
|
|
141
146
|
* [MutatingAdmissionPolicyBinding](/types/MutatingAdmissionPolicyBinding.md) - K8s::Admissionregistration::MutatingAdmissionPolicyBinding
|
|
142
147
|
* [MutatingAdmissionPolicyBindingList](/types/MutatingAdmissionPolicyBindingList.md) - K8s::Admissionregistration::MutatingAdmissionPolicyBindingList
|
|
@@ -151,6 +156,8 @@ okf_version: '0.2'
|
|
|
151
156
|
* [NodeList](/types/NodeList.md) - K8s::Core::NodeList
|
|
152
157
|
* [ObjectStore](/types/ObjectStore.md) - K8s::Cnpg::ObjectStore
|
|
153
158
|
* [OCIRepository](/types/OCIRepository.md) - K8s::Flux::OCIRepository
|
|
159
|
+
* [OpAMPBridge](/types/OpAMPBridge.md) - K8s::OpenTelemetry::OpAMPBridge
|
|
160
|
+
* [OpenTelemetryCollector](/types/OpenTelemetryCollector.md) - K8s::OpenTelemetry::OpenTelemetryCollector
|
|
154
161
|
* [Order](/types/Order.md) - K8s::Acme::Order
|
|
155
162
|
* [PDB](/types/PDB.md) - K8s::Policy::PodDisruptionBudget
|
|
156
163
|
* [PersistentVolume](/types/PersistentVolume.md) - K8s::Core::PersistentVolume
|
|
@@ -163,6 +170,7 @@ okf_version: '0.2'
|
|
|
163
170
|
* [PodDisruptionBudgetList](/types/PodDisruptionBudgetList.md) - K8s::Policy::PodDisruptionBudgetList
|
|
164
171
|
* [PodIdentityAssociation](/types/PodIdentityAssociation.md) - K8s::Eks::PodIdentityAssociation
|
|
165
172
|
* [PodList](/types/PodList.md) - K8s::Core::PodList
|
|
173
|
+
* [PodMonitor](/types/PodMonitor.md) - K8s::Monitoring::PodMonitor
|
|
166
174
|
* [PodTemplate](/types/PodTemplate.md) - K8s::Core::PodTemplate
|
|
167
175
|
* [PodTemplateList](/types/PodTemplateList.md) - K8s::Core::PodTemplateList
|
|
168
176
|
* [Policy](/types/Policy.md) - K8s::Iam::Policy
|
|
@@ -171,6 +179,8 @@ okf_version: '0.2'
|
|
|
171
179
|
* [PriorityClassList](/types/PriorityClassList.md) - K8s::Scheduling::PriorityClassList
|
|
172
180
|
* [PriorityLevelConfiguration](/types/PriorityLevelConfiguration.md) - K8s::Flowcontrol::PriorityLevelConfiguration
|
|
173
181
|
* [PriorityLevelConfigurationList](/types/PriorityLevelConfigurationList.md) - K8s::Flowcontrol::PriorityLevelConfigurationList
|
|
182
|
+
* [Prometheus](/types/Prometheus.md) - K8s::Monitoring::Prometheus
|
|
183
|
+
* [PrometheusAgent](/types/PrometheusAgent.md) - K8s::Monitoring::PrometheusAgent
|
|
174
184
|
* [PrometheusRule](/types/PrometheusRule.md) - K8s::Monitoring::PrometheusRule
|
|
175
185
|
* [Provider](/types/Provider.md) - K8s::Flux::Provider
|
|
176
186
|
* [RayCluster](/types/RayCluster.md) - K8s::Ray::RayCluster
|
|
@@ -202,6 +212,7 @@ okf_version: '0.2'
|
|
|
202
212
|
* [SA](/types/SA.md) - K8s::Core::ServiceAccount
|
|
203
213
|
* [Scale](/types/Scale.md) - K8s::Autoscaling::Scale
|
|
204
214
|
* [ScheduledBackup](/types/ScheduledBackup.md) - K8s::Cnpg::ScheduledBackup
|
|
215
|
+
* [ScrapeConfig](/types/ScrapeConfig.md) - K8s::Monitoring::ScrapeConfig
|
|
205
216
|
* [Sec](/types/Sec.md) - K8s::Core::Secret
|
|
206
217
|
* [SecretList](/types/SecretList.md) - K8s::Core::SecretList
|
|
207
218
|
* [SelfSubjectAccessReview](/types/SelfSubjectAccessReview.md) - K8s::Authorization::SelfSubjectAccessReview
|
|
@@ -224,6 +235,8 @@ okf_version: '0.2'
|
|
|
224
235
|
* [StorageVersionMigration](/types/StorageVersionMigration.md) - K8s::Storagemigration::StorageVersionMigration
|
|
225
236
|
* [StorageVersionMigrationList](/types/StorageVersionMigrationList.md) - K8s::Storagemigration::StorageVersionMigrationList
|
|
226
237
|
* [SubjectAccessReview](/types/SubjectAccessReview.md) - K8s::Authorization::SubjectAccessReview
|
|
238
|
+
* [TargetAllocator](/types/TargetAllocator.md) - K8s::OpenTelemetry::TargetAllocator
|
|
239
|
+
* [ThanosRuler](/types/ThanosRuler.md) - K8s::Monitoring::ThanosRuler
|
|
227
240
|
* [TLSOption](/types/TLSOption.md) - K8s::Traefik::TLSOption
|
|
228
241
|
* [TLSStore](/types/TLSStore.md) - K8s::Traefik::TLSStore
|
|
229
242
|
* [TokenRequest](/types/TokenRequest.md) - K8s::Authentication::TokenRequest
|
|
@@ -293,5 +306,11 @@ okf_version: '0.2'
|
|
|
293
306
|
* [WK8601](/rules/WK8601.md) - OpenTelemetry Collector runs tail_sampling as a per-node DaemonSet; each agent sees only its node's spans, so decisions are made on partial traces. Sees one...
|
|
294
307
|
* [WK8602](/rules/WK8602.md) - OpenTelemetry Collector gateway runs tail_sampling on more than one replica, but collectors send it traces without a loadbalancing exporter routed by traceID...
|
|
295
308
|
* [WK8603](/rules/WK8603.md) - OpenTelemetry Collector runs the k8s_cluster receiver in a DaemonSet or multi-replica workload without a k8s_leader_elector; every copy reports every cluster...
|
|
296
|
-
* [WK8604](/rules/WK8604.md) - OpenTelemetry Collector config in a ConfigMap fails the otel lexicon's config checks; findings are reported under
|
|
309
|
+
* [WK8604](/rules/WK8604.md) - OpenTelemetry Collector config in a ConfigMap or an OpenTelemetryCollector's spec.config fails the otel lexicon's config checks; findings are reported under...
|
|
297
310
|
* [WK8605](/rules/WK8605.md) - OpenTelemetry Collector config reads the node (k8sattributes filtered to its node, kubeletstats, hostmetrics root_path, filelog) but its workload doesn't set...
|
|
311
|
+
* [WK8606](/rules/WK8606.md) - A PrometheusRule's groups fail the prometheus lexicon's rule-file checks; findings are reported under their PROM ids, naming the PrometheusRule.
|
|
312
|
+
* [WK8701](/rules/WK8701.md) - A PrometheusRule that no Prometheus or ThanosRuler in the build selects through ruleSelector and ruleNamespaceSelector is never evaluated. A null selector ma...
|
|
313
|
+
* [WK8702](/rules/WK8702.md) - A ServiceMonitor, PodMonitor, Probe or ScrapeConfig that no Prometheus or PrometheusAgent in the build selects is never scraped. A null selector matches noth...
|
|
314
|
+
* [WK8703](/rules/WK8703.md) - An AlertmanagerConfig that no Alertmanager in the build selects through alertmanagerConfigSelector and alertmanagerConfigNamespaceSelector never routes an al...
|
|
315
|
+
* [WK8704](/rules/WK8704.md) - A ServiceMonitor whose selector matches no Service in the build, or whose endpoints[].port names no port on the matched Services; the same for a PodMonitor a...
|
|
316
|
+
* [WK8705](/rules/WK8705.md) - A Prometheus whose serviceMonitorSelector, podMonitorSelector, probeSelector and scrapeConfigSelector are all null selects no monitor, so the operator scrape...
|
package/dist/okf/rules/WK8604.md
CHANGED
|
@@ -1,11 +1,15 @@
|
|
|
1
1
|
---
|
|
2
2
|
type: post-synth-check
|
|
3
3
|
title: WK8604
|
|
4
|
-
description: OpenTelemetry Collector config in a ConfigMap fails the otel lexicon's config checks; findings are reported under their OTEL1xx ids, naming the ConfigMap
|
|
4
|
+
description: OpenTelemetry Collector config in a ConfigMap or an OpenTelemetryCollector's spec.config fails the otel lexicon's config checks; findings are reported under their OTEL1xx ids, naming the ConfigMap...
|
|
5
5
|
id: WK8604
|
|
6
6
|
severity: error
|
|
7
7
|
category: post-synth
|
|
8
8
|
lexicon: k8s
|
|
9
9
|
docs: https://intentius.io/chant/lexicons/k8s/rules/
|
|
10
10
|
---
|
|
11
|
-
OpenTelemetry Collector config in a ConfigMap fails the otel lexicon's config checks; findings are reported under their OTEL1xx ids, naming the ConfigMap and key.
|
|
11
|
+
OpenTelemetry Collector config in a ConfigMap or an OpenTelemetryCollector's spec.config fails the otel lexicon's config checks; findings are reported under their OTEL1xx ids, naming the ConfigMap and key, or the OpenTelemetryCollector.
|
|
12
|
+
|
|
13
|
+
## Applies to
|
|
14
|
+
|
|
15
|
+
- [OpenTelemetryCollector](/types/OpenTelemetryCollector.md)
|
package/dist/okf/rules/WK8605.md
CHANGED
|
@@ -9,3 +9,7 @@ lexicon: k8s
|
|
|
9
9
|
docs: https://intentius.io/chant/lexicons/k8s/rules/
|
|
10
10
|
---
|
|
11
11
|
OpenTelemetry Collector config reads the node (k8sattributes filtered to its node, kubeletstats, hostmetrics root_path, filelog) but its workload doesn't set the node name variable or mount the host paths. Sees one build root at a time (chant #1939).
|
|
12
|
+
|
|
13
|
+
## Applies to
|
|
14
|
+
|
|
15
|
+
- [OpenTelemetryCollector](/types/OpenTelemetryCollector.md)
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
---
|
|
2
|
+
type: post-synth-check
|
|
3
|
+
title: WK8606
|
|
4
|
+
description: A PrometheusRule's groups fail the prometheus lexicon's rule-file checks; findings are reported under their PROM ids, naming the PrometheusRule.
|
|
5
|
+
id: WK8606
|
|
6
|
+
severity: error
|
|
7
|
+
category: post-synth
|
|
8
|
+
lexicon: k8s
|
|
9
|
+
docs: https://intentius.io/chant/lexicons/k8s/rules/
|
|
10
|
+
---
|
|
11
|
+
A PrometheusRule's groups fail the prometheus lexicon's rule-file checks; findings are reported under their PROM ids, naming the PrometheusRule.
|
|
12
|
+
|
|
13
|
+
## Applies to
|
|
14
|
+
|
|
15
|
+
- [PrometheusRule](/types/PrometheusRule.md)
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
---
|
|
2
|
+
type: post-synth-check
|
|
3
|
+
title: WK8701
|
|
4
|
+
description: A PrometheusRule that no Prometheus or ThanosRuler in the build selects through ruleSelector and ruleNamespaceSelector is never evaluated. A null selector matches nothing, {} matches all. Silent wh...
|
|
5
|
+
id: WK8701
|
|
6
|
+
severity: error
|
|
7
|
+
category: post-synth
|
|
8
|
+
lexicon: k8s
|
|
9
|
+
docs: https://intentius.io/chant/lexicons/k8s/rules/
|
|
10
|
+
---
|
|
11
|
+
A PrometheusRule that no Prometheus or ThanosRuler in the build selects through ruleSelector and ruleNamespaceSelector is never evaluated. A null selector matches nothing, {} matches all. Silent when the build has no Prometheus or ThanosRuler.
|
|
12
|
+
|
|
13
|
+
## Applies to
|
|
14
|
+
|
|
15
|
+
- [Namespace](/types/Namespace.md)
|
|
16
|
+
- [Prometheus](/types/Prometheus.md)
|
|
17
|
+
- [PrometheusRule](/types/PrometheusRule.md)
|
|
18
|
+
- [ThanosRuler](/types/ThanosRuler.md)
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
---
|
|
2
|
+
type: post-synth-check
|
|
3
|
+
title: WK8702
|
|
4
|
+
description: A ServiceMonitor, PodMonitor, Probe or ScrapeConfig that no Prometheus or PrometheusAgent in the build selects is never scraped. A null selector matches nothing, {} matches all. Silent when the bui...
|
|
5
|
+
id: WK8702
|
|
6
|
+
severity: error
|
|
7
|
+
category: post-synth
|
|
8
|
+
lexicon: k8s
|
|
9
|
+
docs: https://intentius.io/chant/lexicons/k8s/rules/
|
|
10
|
+
---
|
|
11
|
+
A ServiceMonitor, PodMonitor, Probe or ScrapeConfig that no Prometheus or PrometheusAgent in the build selects is never scraped. A null selector matches nothing, {} matches all. Silent when the build has no Prometheus or PrometheusAgent.
|
|
12
|
+
|
|
13
|
+
## Applies to
|
|
14
|
+
|
|
15
|
+
- [Namespace](/types/Namespace.md)
|
|
16
|
+
- [PodMonitor](/types/PodMonitor.md)
|
|
17
|
+
- [Prometheus](/types/Prometheus.md)
|
|
18
|
+
- [PrometheusAgent](/types/PrometheusAgent.md)
|
|
19
|
+
- [ScrapeConfig](/types/ScrapeConfig.md)
|
|
20
|
+
- [ServiceMonitor](/types/ServiceMonitor.md)
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
---
|
|
2
|
+
type: post-synth-check
|
|
3
|
+
title: WK8703
|
|
4
|
+
description: An AlertmanagerConfig that no Alertmanager in the build selects through alertmanagerConfigSelector and alertmanagerConfigNamespaceSelector never routes an alert. A null selector matches nothing, {}...
|
|
5
|
+
id: WK8703
|
|
6
|
+
severity: error
|
|
7
|
+
category: post-synth
|
|
8
|
+
lexicon: k8s
|
|
9
|
+
docs: https://intentius.io/chant/lexicons/k8s/rules/
|
|
10
|
+
---
|
|
11
|
+
An AlertmanagerConfig that no Alertmanager in the build selects through alertmanagerConfigSelector and alertmanagerConfigNamespaceSelector never routes an alert. A null selector matches nothing, {} matches all. Silent when the build has no Alertmanager.
|
|
12
|
+
|
|
13
|
+
## Applies to
|
|
14
|
+
|
|
15
|
+
- [Alertmanager](/types/Alertmanager.md)
|
|
16
|
+
- [AlertmanagerConfig](/types/AlertmanagerConfig.md)
|
|
17
|
+
- [Namespace](/types/Namespace.md)
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
---
|
|
2
|
+
type: post-synth-check
|
|
3
|
+
title: WK8704
|
|
4
|
+
description: A ServiceMonitor whose selector matches no Service in the build, or whose endpoints[].port names no port on the matched Services; the same for a PodMonitor against pod container ports. Needs no Pro...
|
|
5
|
+
id: WK8704
|
|
6
|
+
severity: error
|
|
7
|
+
category: post-synth
|
|
8
|
+
lexicon: k8s
|
|
9
|
+
docs: https://intentius.io/chant/lexicons/k8s/rules/
|
|
10
|
+
---
|
|
11
|
+
A ServiceMonitor whose selector matches no Service in the build, or whose endpoints[].port names no port on the matched Services; the same for a PodMonitor against pod container ports. Needs no Prometheus in the build. Sees one build root at a time (chant #1939).
|
|
12
|
+
|
|
13
|
+
## Applies to
|
|
14
|
+
|
|
15
|
+
- [CronJob](/types/CronJob.md)
|
|
16
|
+
- [DaemonSet](/types/DaemonSet.md)
|
|
17
|
+
- [Pod](/types/Pod.md)
|
|
18
|
+
- [PodMonitor](/types/PodMonitor.md)
|
|
19
|
+
- [Prometheus](/types/Prometheus.md)
|
|
20
|
+
- [Service](/types/Service.md)
|
|
21
|
+
- [ServiceMonitor](/types/ServiceMonitor.md)
|
|
22
|
+
- [StatefulSet](/types/StatefulSet.md)
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
---
|
|
2
|
+
type: post-synth-check
|
|
3
|
+
title: WK8705
|
|
4
|
+
description: A Prometheus whose serviceMonitorSelector, podMonitorSelector, probeSelector and scrapeConfigSelector are all null selects no monitor, so the operator scrapes nothing from ServiceMonitors, PodMonit...
|
|
5
|
+
id: WK8705
|
|
6
|
+
severity: error
|
|
7
|
+
category: post-synth
|
|
8
|
+
lexicon: k8s
|
|
9
|
+
docs: https://intentius.io/chant/lexicons/k8s/rules/
|
|
10
|
+
---
|
|
11
|
+
A Prometheus whose serviceMonitorSelector, podMonitorSelector, probeSelector and scrapeConfigSelector are all null selects no monitor, so the operator scrapes nothing from ServiceMonitors, PodMonitors, Probes or ScrapeConfigs.
|
|
12
|
+
|
|
13
|
+
## Applies to
|
|
14
|
+
|
|
15
|
+
- [PodMonitor](/types/PodMonitor.md)
|
|
16
|
+
- [Prometheus](/types/Prometheus.md)
|
|
17
|
+
- [ScrapeConfig](/types/ScrapeConfig.md)
|
|
18
|
+
- [ServiceMonitor](/types/ServiceMonitor.md)
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
---
|
|
2
|
+
type: resource-type
|
|
3
|
+
title: Alertmanager
|
|
4
|
+
description: k8s resource type K8s::Monitoring::Alertmanager
|
|
5
|
+
name: Alertmanager
|
|
6
|
+
lexicon: k8s
|
|
7
|
+
resource_type: K8s::Monitoring::Alertmanager
|
|
8
|
+
---
|
|
9
|
+
`K8s::Monitoring::Alertmanager`, a resource type of the k8s lexicon.
|
|
10
|
+
|
|
11
|
+
## Properties
|
|
12
|
+
|
|
13
|
+
- `spec` (`Record<string, unknown>`, required): spec defines the specification of the desired behavior of the Alertmanager cluster. More info: https://github.com/kubernetes/community/blob/master/contributors/devel/sig-architecture/api-conventions.md#spec-and-status
|
|
14
|
+
- `metadata` (`ObjectMeta`, optional): Standard object's metadata.
|
|
15
|
+
|
|
16
|
+
## Governed by
|
|
17
|
+
|
|
18
|
+
- [WK8703](/rules/WK8703.md): An AlertmanagerConfig that no Alertmanager in the build selects through alertmanagerConfigSelector and alertmanagerConfigNamespaceSelector never routes an alert. A null selector matches nothing, {} matches all. Silent when the build has no Alertmanager.
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
---
|
|
2
|
+
type: resource-type
|
|
3
|
+
title: AlertmanagerConfig
|
|
4
|
+
description: k8s resource type K8s::Monitoring::AlertmanagerConfig
|
|
5
|
+
name: AlertmanagerConfig
|
|
6
|
+
lexicon: k8s
|
|
7
|
+
resource_type: K8s::Monitoring::AlertmanagerConfig
|
|
8
|
+
---
|
|
9
|
+
`K8s::Monitoring::AlertmanagerConfig`, a resource type of the k8s lexicon.
|
|
10
|
+
|
|
11
|
+
## Properties
|
|
12
|
+
|
|
13
|
+
- `spec` (`Record<string, unknown>`, required): spec defines the specification of AlertmanagerConfigSpec
|
|
14
|
+
- `metadata` (`ObjectMeta`, optional): Standard object's metadata.
|
|
15
|
+
|
|
16
|
+
## Governed by
|
|
17
|
+
|
|
18
|
+
- [WK8703](/rules/WK8703.md): An AlertmanagerConfig that no Alertmanager in the build selects through alertmanagerConfigSelector and alertmanagerConfigNamespaceSelector never routes an alert. A null selector matches nothing, {} matches all. Silent when the build has no Alertmanager.
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
---
|
|
2
|
+
type: resource-type
|
|
3
|
+
title: ClusterObservability
|
|
4
|
+
description: k8s resource type K8s::OpenTelemetry::ClusterObservability
|
|
5
|
+
name: ClusterObservability
|
|
6
|
+
lexicon: k8s
|
|
7
|
+
resource_type: K8s::OpenTelemetry::ClusterObservability
|
|
8
|
+
---
|
|
9
|
+
`K8s::OpenTelemetry::ClusterObservability`, a resource type of the k8s lexicon.
|
|
10
|
+
|
|
11
|
+
## Properties
|
|
12
|
+
|
|
13
|
+
- `metadata` (`ObjectMeta`, optional): Standard object's metadata.
|
|
14
|
+
- `spec` (`Record<string, unknown>`, optional)
|
|
@@ -18,3 +18,4 @@ resource_type: K8s::Batch::CronJob
|
|
|
18
18
|
- [WK8002](/rules/WK8002.md): Latest Image Tag
|
|
19
19
|
- [WK8003](/rules/WK8003.md): Missing Resource Limits
|
|
20
20
|
- [WK8301](/rules/WK8301.md): Probes required — containers should have livenessProbe and readinessProbe
|
|
21
|
+
- [WK8704](/rules/WK8704.md): A ServiceMonitor whose selector matches no Service in the build, or whose endpoints[].port names no port on the matched Services; the same for a PodMonitor against pod container ports. Needs no Prometheus in the build. Sees one build root at a time (chant #1939).
|
|
@@ -20,3 +20,4 @@ resource_type: K8s::Apps::DaemonSet
|
|
|
20
20
|
- [WK8601](/rules/WK8601.md): OpenTelemetry Collector runs tail_sampling as a per-node DaemonSet; each agent sees only its node's spans, so decisions are made on partial traces. Sees one build root at a time (chant #1939).
|
|
21
21
|
- [WK8602](/rules/WK8602.md): OpenTelemetry Collector gateway runs tail_sampling on more than one replica, but collectors send it traces without a loadbalancing exporter routed by traceID. Sees one build root at a time (chant #1939).
|
|
22
22
|
- [WK8603](/rules/WK8603.md): OpenTelemetry Collector runs the k8s_cluster receiver in a DaemonSet or multi-replica workload without a k8s_leader_elector; every copy reports every cluster object. Sees one build root at a time (chant #1939).
|
|
23
|
+
- [WK8704](/rules/WK8704.md): A ServiceMonitor whose selector matches no Service in the build, or whose endpoints[].port names no port on the matched Services; the same for a PodMonitor against pod container ports. Needs no Prometheus in the build. Sees one build root at a time (chant #1939).
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
---
|
|
2
|
+
type: resource-type
|
|
3
|
+
title: Instrumentation
|
|
4
|
+
description: k8s resource type K8s::OpenTelemetry::Instrumentation
|
|
5
|
+
name: Instrumentation
|
|
6
|
+
lexicon: k8s
|
|
7
|
+
resource_type: K8s::OpenTelemetry::Instrumentation
|
|
8
|
+
---
|
|
9
|
+
`K8s::OpenTelemetry::Instrumentation`, a resource type of the k8s lexicon.
|
|
10
|
+
|
|
11
|
+
## Properties
|
|
12
|
+
|
|
13
|
+
- `metadata` (`ObjectMeta`, optional): Standard object's metadata.
|
|
14
|
+
- `spec` (`Record<string, unknown>`, optional)
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
---
|
|
2
|
+
type: resource-type
|
|
3
|
+
title: MonitoringProbe
|
|
4
|
+
description: k8s resource type K8s::Monitoring::Probe
|
|
5
|
+
name: MonitoringProbe
|
|
6
|
+
lexicon: k8s
|
|
7
|
+
resource_type: K8s::Monitoring::Probe
|
|
8
|
+
---
|
|
9
|
+
`K8s::Monitoring::Probe`, a resource type of the k8s lexicon.
|
|
10
|
+
|
|
11
|
+
## Properties
|
|
12
|
+
|
|
13
|
+
- `spec` (`Record<string, unknown>`, required): spec defines the specification of desired Ingress selection for target discovery by Prometheus.
|
|
14
|
+
- `metadata` (`ObjectMeta`, optional): Standard object's metadata.
|
|
@@ -17,3 +17,6 @@ resource_type: K8s::Core::Namespace
|
|
|
17
17
|
|
|
18
18
|
- [FLUX002](/rules/FLUX002.md): Kustomization.spec.sourceRef must reference a declared source (or the bootstrap flux-system repo)
|
|
19
19
|
- [WK8001](/rules/WK8001.md): Hardcoded Namespace
|
|
20
|
+
- [WK8701](/rules/WK8701.md): A PrometheusRule that no Prometheus or ThanosRuler in the build selects through ruleSelector and ruleNamespaceSelector is never evaluated. A null selector matches nothing, {} matches all. Silent when the build has no Prometheus or ThanosRuler.
|
|
21
|
+
- [WK8702](/rules/WK8702.md): A ServiceMonitor, PodMonitor, Probe or ScrapeConfig that no Prometheus or PrometheusAgent in the build selects is never scraped. A null selector matches nothing, {} matches all. Silent when the build has no Prometheus or PrometheusAgent.
|
|
22
|
+
- [WK8703](/rules/WK8703.md): An AlertmanagerConfig that no Alertmanager in the build selects through alertmanagerConfigSelector and alertmanagerConfigNamespaceSelector never routes an alert. A null selector matches nothing, {} matches all. Silent when the build has no Alertmanager.
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
---
|
|
2
|
+
type: resource-type
|
|
3
|
+
title: OpAMPBridge
|
|
4
|
+
description: k8s resource type K8s::OpenTelemetry::OpAMPBridge
|
|
5
|
+
name: OpAMPBridge
|
|
6
|
+
lexicon: k8s
|
|
7
|
+
resource_type: K8s::OpenTelemetry::OpAMPBridge
|
|
8
|
+
---
|
|
9
|
+
`K8s::OpenTelemetry::OpAMPBridge`, a resource type of the k8s lexicon.
|
|
10
|
+
|
|
11
|
+
## Properties
|
|
12
|
+
|
|
13
|
+
- `metadata` (`ObjectMeta`, optional): Standard object's metadata.
|
|
14
|
+
- `spec` (`Record<string, unknown>`, optional)
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
---
|
|
2
|
+
type: resource-type
|
|
3
|
+
title: OpenTelemetryCollector
|
|
4
|
+
description: k8s resource type K8s::OpenTelemetry::OpenTelemetryCollector
|
|
5
|
+
name: OpenTelemetryCollector
|
|
6
|
+
lexicon: k8s
|
|
7
|
+
resource_type: K8s::OpenTelemetry::OpenTelemetryCollector
|
|
8
|
+
---
|
|
9
|
+
`K8s::OpenTelemetry::OpenTelemetryCollector`, a resource type of the k8s lexicon.
|
|
10
|
+
|
|
11
|
+
## Properties
|
|
12
|
+
|
|
13
|
+
- `metadata` (`ObjectMeta`, optional): Standard object's metadata.
|
|
14
|
+
- `spec` (`Record<string, unknown>`, optional)
|
|
15
|
+
|
|
16
|
+
## Governed by
|
|
17
|
+
|
|
18
|
+
- [WK8604](/rules/WK8604.md): OpenTelemetry Collector config in a ConfigMap or an OpenTelemetryCollector's spec.config fails the otel lexicon's config checks; findings are reported under their OTEL1xx ids, naming the ConfigMap and key, or the OpenTelemetryCollector.
|
|
19
|
+
- [WK8605](/rules/WK8605.md): OpenTelemetry Collector config reads the node (k8sattributes filtered to its node, kubeletstats, hostmetrics root_path, filelog) but its workload doesn't set the node name variable or mount the host paths. Sees one build root at a time (chant #1939).
|
package/dist/okf/types/Pod.md
CHANGED
|
@@ -16,3 +16,4 @@ resource_type: K8s::Core::Pod
|
|
|
16
16
|
## Governed by
|
|
17
17
|
|
|
18
18
|
- [WK8002](/rules/WK8002.md): Latest Image Tag
|
|
19
|
+
- [WK8704](/rules/WK8704.md): A ServiceMonitor whose selector matches no Service in the build, or whose endpoints[].port names no port on the matched Services; the same for a PodMonitor against pod container ports. Needs no Prometheus in the build. Sees one build root at a time (chant #1939).
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
---
|
|
2
|
+
type: resource-type
|
|
3
|
+
title: PodMonitor
|
|
4
|
+
description: k8s resource type K8s::Monitoring::PodMonitor
|
|
5
|
+
name: PodMonitor
|
|
6
|
+
lexicon: k8s
|
|
7
|
+
resource_type: K8s::Monitoring::PodMonitor
|
|
8
|
+
---
|
|
9
|
+
`K8s::Monitoring::PodMonitor`, a resource type of the k8s lexicon.
|
|
10
|
+
|
|
11
|
+
## Properties
|
|
12
|
+
|
|
13
|
+
- `spec` (`Record<string, unknown>`, required): spec defines the specification of desired Pod selection for target discovery by Prometheus.
|
|
14
|
+
- `metadata` (`ObjectMeta`, optional): Standard object's metadata.
|
|
15
|
+
|
|
16
|
+
## Governed by
|
|
17
|
+
|
|
18
|
+
- [WK8702](/rules/WK8702.md): A ServiceMonitor, PodMonitor, Probe or ScrapeConfig that no Prometheus or PrometheusAgent in the build selects is never scraped. A null selector matches nothing, {} matches all. Silent when the build has no Prometheus or PrometheusAgent.
|
|
19
|
+
- [WK8704](/rules/WK8704.md): A ServiceMonitor whose selector matches no Service in the build, or whose endpoints[].port names no port on the matched Services; the same for a PodMonitor against pod container ports. Needs no Prometheus in the build. Sees one build root at a time (chant #1939).
|
|
20
|
+
- [WK8705](/rules/WK8705.md): A Prometheus whose serviceMonitorSelector, podMonitorSelector, probeSelector and scrapeConfigSelector are all null selects no monitor, so the operator scrapes nothing from ServiceMonitors, PodMonitors, Probes or ScrapeConfigs.
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
---
|
|
2
|
+
type: resource-type
|
|
3
|
+
title: Prometheus
|
|
4
|
+
description: k8s resource type K8s::Monitoring::Prometheus
|
|
5
|
+
name: Prometheus
|
|
6
|
+
lexicon: k8s
|
|
7
|
+
resource_type: K8s::Monitoring::Prometheus
|
|
8
|
+
---
|
|
9
|
+
`K8s::Monitoring::Prometheus`, a resource type of the k8s lexicon.
|
|
10
|
+
|
|
11
|
+
## Properties
|
|
12
|
+
|
|
13
|
+
- `spec` (`Record<string, unknown>`, required): spec defines the specification of the desired behavior of the Prometheus cluster. More info: https://github.com/kubernetes/community/blob/master/contributors/devel/sig-architecture/api-conventions.md#spec-and-status
|
|
14
|
+
- `metadata` (`ObjectMeta`, optional): Standard object's metadata.
|
|
15
|
+
|
|
16
|
+
## Governed by
|
|
17
|
+
|
|
18
|
+
- [WK8701](/rules/WK8701.md): A PrometheusRule that no Prometheus or ThanosRuler in the build selects through ruleSelector and ruleNamespaceSelector is never evaluated. A null selector matches nothing, {} matches all. Silent when the build has no Prometheus or ThanosRuler.
|
|
19
|
+
- [WK8702](/rules/WK8702.md): A ServiceMonitor, PodMonitor, Probe or ScrapeConfig that no Prometheus or PrometheusAgent in the build selects is never scraped. A null selector matches nothing, {} matches all. Silent when the build has no Prometheus or PrometheusAgent.
|
|
20
|
+
- [WK8704](/rules/WK8704.md): A ServiceMonitor whose selector matches no Service in the build, or whose endpoints[].port names no port on the matched Services; the same for a PodMonitor against pod container ports. Needs no Prometheus in the build. Sees one build root at a time (chant #1939).
|
|
21
|
+
- [WK8705](/rules/WK8705.md): A Prometheus whose serviceMonitorSelector, podMonitorSelector, probeSelector and scrapeConfigSelector are all null selects no monitor, so the operator scrapes nothing from ServiceMonitors, PodMonitors, Probes or ScrapeConfigs.
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
---
|
|
2
|
+
type: resource-type
|
|
3
|
+
title: PrometheusAgent
|
|
4
|
+
description: k8s resource type K8s::Monitoring::PrometheusAgent
|
|
5
|
+
name: PrometheusAgent
|
|
6
|
+
lexicon: k8s
|
|
7
|
+
resource_type: K8s::Monitoring::PrometheusAgent
|
|
8
|
+
---
|
|
9
|
+
`K8s::Monitoring::PrometheusAgent`, a resource type of the k8s lexicon.
|
|
10
|
+
|
|
11
|
+
## Properties
|
|
12
|
+
|
|
13
|
+
- `spec` (`Record<string, unknown>`, required): spec defines the specification of the desired behavior of the Prometheus agent. More info: https://github.com/kubernetes/community/blob/master/contributors/devel/sig-architecture/api-conventions.md#spec-and-status
|
|
14
|
+
- `metadata` (`ObjectMeta`, optional): Standard object's metadata.
|
|
15
|
+
|
|
16
|
+
## Governed by
|
|
17
|
+
|
|
18
|
+
- [WK8702](/rules/WK8702.md): A ServiceMonitor, PodMonitor, Probe or ScrapeConfig that no Prometheus or PrometheusAgent in the build selects is never scraped. A null selector matches nothing, {} matches all. Silent when the build has no Prometheus or PrometheusAgent.
|
|
@@ -10,5 +10,10 @@ resource_type: K8s::Monitoring::PrometheusRule
|
|
|
10
10
|
|
|
11
11
|
## Properties
|
|
12
12
|
|
|
13
|
-
- `spec` (`Record<string, unknown>`, required):
|
|
13
|
+
- `spec` (`Record<string, unknown>`, required): spec defines the specification of desired alerting rule definitions for Prometheus.
|
|
14
14
|
- `metadata` (`ObjectMeta`, optional): Standard object's metadata.
|
|
15
|
+
|
|
16
|
+
## Governed by
|
|
17
|
+
|
|
18
|
+
- [WK8606](/rules/WK8606.md): A PrometheusRule's groups fail the prometheus lexicon's rule-file checks; findings are reported under their PROM ids, naming the PrometheusRule.
|
|
19
|
+
- [WK8701](/rules/WK8701.md): A PrometheusRule that no Prometheus or ThanosRuler in the build selects through ruleSelector and ruleNamespaceSelector is never evaluated. A null selector matches nothing, {} matches all. Silent when the build has no Prometheus or ThanosRuler.
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
---
|
|
2
|
+
type: resource-type
|
|
3
|
+
title: ScrapeConfig
|
|
4
|
+
description: k8s resource type K8s::Monitoring::ScrapeConfig
|
|
5
|
+
name: ScrapeConfig
|
|
6
|
+
lexicon: k8s
|
|
7
|
+
resource_type: K8s::Monitoring::ScrapeConfig
|
|
8
|
+
---
|
|
9
|
+
`K8s::Monitoring::ScrapeConfig`, a resource type of the k8s lexicon.
|
|
10
|
+
|
|
11
|
+
## Properties
|
|
12
|
+
|
|
13
|
+
- `spec` (`Record<string, unknown>`, required): spec defines the specification of ScrapeConfigSpec.
|
|
14
|
+
- `metadata` (`ObjectMeta`, optional): Standard object's metadata.
|
|
15
|
+
|
|
16
|
+
## Governed by
|
|
17
|
+
|
|
18
|
+
- [WK8702](/rules/WK8702.md): A ServiceMonitor, PodMonitor, Probe or ScrapeConfig that no Prometheus or PrometheusAgent in the build selects is never scraped. A null selector matches nothing, {} matches all. Silent when the build has no Prometheus or PrometheusAgent.
|
|
19
|
+
- [WK8705](/rules/WK8705.md): A Prometheus whose serviceMonitorSelector, podMonitorSelector, probeSelector and scrapeConfigSelector are all null selects no monitor, so the operator scrapes nothing from ServiceMonitors, PodMonitors, Probes or ScrapeConfigs.
|
|
@@ -19,3 +19,4 @@ resource_type: K8s::Core::Service
|
|
|
19
19
|
- [WK8301](/rules/WK8301.md): Probes required — containers should have livenessProbe and readinessProbe
|
|
20
20
|
- [WK8305](/rules/WK8305.md): Ingress port not matching Service — backend port must match a declared Service port
|
|
21
21
|
- [WK8602](/rules/WK8602.md): OpenTelemetry Collector gateway runs tail_sampling on more than one replica, but collectors send it traces without a loadbalancing exporter routed by traceID. Sees one build root at a time (chant #1939).
|
|
22
|
+
- [WK8704](/rules/WK8704.md): A ServiceMonitor whose selector matches no Service in the build, or whose endpoints[].port names no port on the matched Services; the same for a PodMonitor against pod container ports. Needs no Prometheus in the build. Sees one build root at a time (chant #1939).
|
|
@@ -10,5 +10,11 @@ resource_type: K8s::Monitoring::ServiceMonitor
|
|
|
10
10
|
|
|
11
11
|
## Properties
|
|
12
12
|
|
|
13
|
-
- `spec` (`Record<string, unknown>`, required):
|
|
13
|
+
- `spec` (`Record<string, unknown>`, required): spec defines the specification of desired Service selection for target discovery by Prometheus.
|
|
14
14
|
- `metadata` (`ObjectMeta`, optional): Standard object's metadata.
|
|
15
|
+
|
|
16
|
+
## Governed by
|
|
17
|
+
|
|
18
|
+
- [WK8702](/rules/WK8702.md): A ServiceMonitor, PodMonitor, Probe or ScrapeConfig that no Prometheus or PrometheusAgent in the build selects is never scraped. A null selector matches nothing, {} matches all. Silent when the build has no Prometheus or PrometheusAgent.
|
|
19
|
+
- [WK8704](/rules/WK8704.md): A ServiceMonitor whose selector matches no Service in the build, or whose endpoints[].port names no port on the matched Services; the same for a PodMonitor against pod container ports. Needs no Prometheus in the build. Sees one build root at a time (chant #1939).
|
|
20
|
+
- [WK8705](/rules/WK8705.md): A Prometheus whose serviceMonitorSelector, podMonitorSelector, probeSelector and scrapeConfigSelector are all null selects no monitor, so the operator scrapes nothing from ServiceMonitors, PodMonitors, Probes or ScrapeConfigs.
|
|
@@ -18,3 +18,4 @@ resource_type: K8s::Apps::StatefulSet
|
|
|
18
18
|
- [WK8002](/rules/WK8002.md): Latest Image Tag
|
|
19
19
|
- [WK8003](/rules/WK8003.md): Missing Resource Limits
|
|
20
20
|
- [WK8405](/rules/WK8405.md): Serving workload (InferenceService / serving Deployment) has no PodDisruptionBudget
|
|
21
|
+
- [WK8704](/rules/WK8704.md): A ServiceMonitor whose selector matches no Service in the build, or whose endpoints[].port names no port on the matched Services; the same for a PodMonitor against pod container ports. Needs no Prometheus in the build. Sees one build root at a time (chant #1939).
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
---
|
|
2
|
+
type: resource-type
|
|
3
|
+
title: TargetAllocator
|
|
4
|
+
description: k8s resource type K8s::OpenTelemetry::TargetAllocator
|
|
5
|
+
name: TargetAllocator
|
|
6
|
+
lexicon: k8s
|
|
7
|
+
resource_type: K8s::OpenTelemetry::TargetAllocator
|
|
8
|
+
---
|
|
9
|
+
`K8s::OpenTelemetry::TargetAllocator`, a resource type of the k8s lexicon.
|
|
10
|
+
|
|
11
|
+
## Properties
|
|
12
|
+
|
|
13
|
+
- `metadata` (`ObjectMeta`, optional): Standard object's metadata.
|
|
14
|
+
- `spec` (`Record<string, unknown>`, optional)
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
---
|
|
2
|
+
type: resource-type
|
|
3
|
+
title: ThanosRuler
|
|
4
|
+
description: k8s resource type K8s::Monitoring::ThanosRuler
|
|
5
|
+
name: ThanosRuler
|
|
6
|
+
lexicon: k8s
|
|
7
|
+
resource_type: K8s::Monitoring::ThanosRuler
|
|
8
|
+
---
|
|
9
|
+
`K8s::Monitoring::ThanosRuler`, a resource type of the k8s lexicon.
|
|
10
|
+
|
|
11
|
+
## Properties
|
|
12
|
+
|
|
13
|
+
- `spec` (`Record<string, unknown>`, required): spec defines the specification of the desired behavior of the ThanosRuler cluster. More info: https://github.com/kubernetes/community/blob/master/contributors/devel/sig-architecture/api-conventions.md#spec-and-status
|
|
14
|
+
- `metadata` (`ObjectMeta`, optional): Standard object's metadata.
|
|
15
|
+
|
|
16
|
+
## Governed by
|
|
17
|
+
|
|
18
|
+
- [WK8701](/rules/WK8701.md): A PrometheusRule that no Prometheus or ThanosRuler in the build selects through ruleSelector and ruleNamespaceSelector is never evaluated. A null selector matches nothing, {} matches all. Silent when the build has no Prometheus or ThanosRuler.
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* RFC 6902 JSON Patch and RFC 7386 JSON Merge Patch, for rendered documents.
|
|
3
|
+
*
|
|
4
|
+
* Core carries an RFC 6902 applier for cfn-lint codegen
|
|
5
|
+
* (`packages/core/src/codegen/json-patch.ts`), but it skips `test`, `move`
|
|
6
|
+
* and `copy`, and it works on JSON strings. A patch on a rendered manifest
|
|
7
|
+
* needs `test` most of all: it is how an author pins the value a chart
|
|
8
|
+
* upgrade might change underneath them. So this module is a small, complete
|
|
9
|
+
* applier over plain objects, with no imports, usable from the build path and
|
|
10
|
+
* from the helm lexicon's `HelmRender`.
|
|
11
|
+
*
|
|
12
|
+
* Both appliers return a new document and never mutate their input.
|
|
13
|
+
*/
|
|
14
|
+
/** One RFC 6902 operation. `path` and `from` are RFC 6901 JSON Pointers. */
|
|
15
|
+
export type JsonPatchOperation = {
|
|
16
|
+
op: "add";
|
|
17
|
+
path: string;
|
|
18
|
+
value: unknown;
|
|
19
|
+
} | {
|
|
20
|
+
op: "remove";
|
|
21
|
+
path: string;
|
|
22
|
+
} | {
|
|
23
|
+
op: "replace";
|
|
24
|
+
path: string;
|
|
25
|
+
value: unknown;
|
|
26
|
+
} | {
|
|
27
|
+
op: "move";
|
|
28
|
+
from: string;
|
|
29
|
+
path: string;
|
|
30
|
+
} | {
|
|
31
|
+
op: "copy";
|
|
32
|
+
from: string;
|
|
33
|
+
path: string;
|
|
34
|
+
} | {
|
|
35
|
+
op: "test";
|
|
36
|
+
path: string;
|
|
37
|
+
value: unknown;
|
|
38
|
+
};
|
|
39
|
+
/**
|
|
40
|
+
* Apply an RFC 6902 patch. Operations apply in order; the first one that
|
|
41
|
+
* fails (a missing path, a failed `test`) throws with its index, and the
|
|
42
|
+
* input is left untouched.
|
|
43
|
+
*/
|
|
44
|
+
export declare function applyJsonPatch<T>(doc: T, operations: readonly JsonPatchOperation[]): T;
|
|
45
|
+
/**
|
|
46
|
+
* Apply an RFC 7386 merge patch: objects merge key by key, a `null` value
|
|
47
|
+
* deletes the key, and anything else (arrays included) replaces the target
|
|
48
|
+
* whole.
|
|
49
|
+
*/
|
|
50
|
+
export declare function applyMergePatch<T>(doc: T, patch: unknown): T;
|
|
51
|
+
//# sourceMappingURL=json-patch.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"json-patch.d.ts","sourceRoot":"","sources":["../../src/patch/json-patch.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;GAYG;AAEH,4EAA4E;AAC5E,MAAM,MAAM,kBAAkB,GAC1B;IAAE,EAAE,EAAE,KAAK,CAAC;IAAC,IAAI,EAAE,MAAM,CAAC;IAAC,KAAK,EAAE,OAAO,CAAA;CAAE,GAC3C;IAAE,EAAE,EAAE,QAAQ,CAAC;IAAC,IAAI,EAAE,MAAM,CAAA;CAAE,GAC9B;IAAE,EAAE,EAAE,SAAS,CAAC;IAAC,IAAI,EAAE,MAAM,CAAC;IAAC,KAAK,EAAE,OAAO,CAAA;CAAE,GAC/C;IAAE,EAAE,EAAE,MAAM,CAAC;IAAC,IAAI,EAAE,MAAM,CAAC;IAAC,IAAI,EAAE,MAAM,CAAA;CAAE,GAC1C;IAAE,EAAE,EAAE,MAAM,CAAC;IAAC,IAAI,EAAE,MAAM,CAAC;IAAC,IAAI,EAAE,MAAM,CAAA;CAAE,GAC1C;IAAE,EAAE,EAAE,MAAM,CAAC;IAAC,IAAI,EAAE,MAAM,CAAC;IAAC,KAAK,EAAE,OAAO,CAAA;CAAE,CAAC;AAuGjD;;;;GAIG;AACH,wBAAgB,cAAc,CAAC,CAAC,EAAE,GAAG,EAAE,CAAC,EAAE,UAAU,EAAE,SAAS,kBAAkB,EAAE,GAAG,CAAC,CA2CtF;AAED;;;;GAIG;AACH,wBAAgB,eAAe,CAAC,CAAC,EAAE,GAAG,EAAE,CAAC,EAAE,KAAK,EAAE,OAAO,GAAG,CAAC,CAS5D"}
|