This commit introduces the `NoSelectedResources` reason for the
`Reconciled` condition when a workload object selects no resources
(valid or invalid). It should make it easier to detect when resource
selectors are null or match no resource.
The `Alertmanager` resource is the exception because the configuration
may be provided only via a reference to a Secret key.
Signed-off-by: Simon Pasquier <spasquie@redhat.com>
This commit adds a test ensuring that a bad statefulset definition (due
to an invalid image in this case) doesn't lead to a stuck roll-out once
the definition is fixed.
Signed-off-by: Simon Pasquier <spasquie@redhat.com>
This commit adds the following arguments in jsonnet + default manifests:
* `--watch-referenced-objects-in-all-namespaces=true`
* `--disable-unmanaged-prometheus-configuration=true`
Signed-off-by: Simon Pasquier <spasquie@redhat.com>
This commit avoids the situation where the operator would update the
StatefulSet because the concatenation of configured rules exceeds the
maximum ConfigMap size. To alleviate the issue, the operator now
configures the StatefulSet to always mount 3 "rule" ConfigMaps with
"optional: true". When the operator generates an additional ConfigMap,
it will get mounted automatically into the pod and the config-reloader
sidecar will detect and apply the new configuration. When the
number of "concrete" ConfigMaps decreases, the operation is also
non-disruptive.
The number has been chosen arbitrarily and it could change in the future
but 3 seems a good choice (original reports were complaining about the
number of ConfigMaps fluctuating between 1 and 2).
The change applies both to Prometheus and ThanosRuler.
Closes #5085
Signed-off-by: Simon Pasquier <spasquie@redhat.com>
This commit also clarifies the meaning of the 'url' field in the Prober
spec which isn't a "true" URL.
Signed-off-by: Simon Pasquier <spasquie@redhat.com>
for admission webhook default is legacy validation
Assissted-By: Cursor
Signed-off-by: Jayapriya Pai <slashpai9@gmail.com>
Co-authored-by: Simon Pasquier <spasquie@redhat.com>
This commit ensures that the operator discards PodMonitor resources with
duplicate authentication settings. Otherwise Prometheus fails to load
the generated configuration.
Signed-off-by: Simon Pasquier <spasquie@redhat.com>
This commit extends the existing end-to-end test on the ServiceMonitor
status to ensure that the operator only updates the status when a change
actually happened.
Signed-off-by: Simon Pasquier <spasquie@redhat.com>
This commit extends the existing end-to-end test on the ServiceMonitor
status to ensure that the operator only updates the status when a change
actually happened.
Signed-off-by: Simon Pasquier <spasquie@redhat.com>