prometheus operator v0.93.1

PrometheusAgent.spec.initContainers[].restartPolicyRules[].exitCodes.spec.excludedFromEnforcement

excludedFromEnforcement defines the list of references to PodMonitor, ServiceMonitor, Probe and PrometheusRule objects to be excluded from enforcing a namespace label of origin. It is only applicable if `spec.enforcedNamespaceLabel` set to true.

4 fields
PrometheusAgent.spec.initContainers[].restartPolicyRules[].exitCodes.spec.excludedFromEnforcement fields and descriptions
Field / TypeDescription
group
string

group of the referent. When not specified, it defaults to `monitoring.coreos.com`

  • enum: ["monitoring.coreos.com"]
  • default: "monitoring.coreos.com"
name
string

name of the referent. When not set, all resources in the namespace are matched.

namespace
string required

namespace of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/namespaces/

  • minLength: 1
resource
string required

resource of the referent.

  • enum: ["prometheusrules","servicemonitors","podmonitors","probes","scrapeconfigs"]