1 {{- if and .Release.IsInstall .Values.prometheusOperator.enabled .Values.prometheusOperator.createCustomResource -}}
2 # Source https://github.com/coreos/prometheus-operator/blob/master/contrib/kube-prometheus/manifests/0prometheus-operator-0prometheusruleCustomResourceDefinition.yaml
3 apiVersion: apiextensions.k8s.io/v1beta1
4 kind: CustomResourceDefinition
6 creationTimestamp: null
7 name: {{ printf "prometheusrules.%s" (.Values.prometheusOperator.crdApiGroup | default "monitoring.coreos.com") }}
9 app: {{ template "prometheus-operator.name" . }}-operator
10 {{ include "prometheus-operator.labels" . | indent 4 }}
12 "helm.sh/hook": crd-install
13 "helm.sh/hook-delete-policy": "before-hook-creation"
15 additionalPrinterColumns:
16 - JSONPath: .metadata.creationTimestamp
18 CreationTimestamp is a timestamp representing the server time when this object was created. It is not guaranteed to be set in happens-before order across separate operations. Clients may not set this value. It is represented in RFC3339 form and is in UTC.
20 Populated by the system. Read-only. Null for lists. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata
23 group: {{ .Values.prometheusOperator.crdApiGroup | default "monitoring.coreos.com" }}
26 listKind: PrometheusRuleList
27 plural: prometheusrules
28 singular: prometheusrule
34 description: 'APIVersion defines the versioned schema of this representation
35 of an object. Servers should convert recognized schemas to the latest
36 internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources'
39 description: 'Kind is a string value representing the REST resource this
40 object represents. Servers may infer this from the endpoint the client
41 submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds'
44 description: ObjectMeta is metadata that all persisted resources must have,
45 which includes all objects users must create.
48 description: 'Annotations is an unstructured key value map stored with
49 a resource that may be set by external tools to store and retrieve
50 arbitrary metadata. They are not queryable and should be preserved
51 when modifying objects. More info: http://kubernetes.io/docs/user-guide/annotations'
54 description: The name of the cluster which the object belongs to. This
55 is used to distinguish resources with same name and namespace in different
56 clusters. This field is not set anywhere right now and apiserver is
57 going to ignore it if set in create or update request.
60 description: Time is a wrapper around time.Time which supports correct
61 marshaling to YAML and JSON. Wrappers are provided for many of the
62 factory methods that the time package offers.
65 deletionGracePeriodSeconds:
66 description: Number of seconds allowed for this object to gracefully
67 terminate before it will be removed from the system. Only set when
68 deletionTimestamp is also set. May only be shortened. Read-only.
72 description: Time is a wrapper around time.Time which supports correct
73 marshaling to YAML and JSON. Wrappers are provided for many of the
74 factory methods that the time package offers.
78 description: Must be empty before the object is deleted from the registry.
79 Each entry is an identifier for the responsible component that will
80 remove the entry from the list. If the deletionTimestamp of the object
81 is non-nil, entries in this list can only be removed.
87 GenerateName is an optional prefix, used by the server, to generate a unique name ONLY IF the Name field has not been provided. If this field is used, the name returned to the client will be different than the name passed. This value will also be combined with a unique suffix. The provided value has the same validation rules as the Name field, and may be truncated by the length of the suffix required to make the value unique on the server.
89 If this field is specified and the generated name exists, the server will NOT return a 409 - instead, it will either return 201 Created or 500 with Reason ServerTimeout indicating a unique name could not be found in the time allotted, and the client should retry (optionally after the time indicated in the Retry-After header).
91 Applied only if Name is not specified. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#idempotency
94 description: A sequence number representing a specific generation of
95 the desired state. Populated by the system. Read-only.
99 description: Initializers tracks the progress of initialization.
102 description: Pending is a list of initializers that must execute
103 in order before this object is visible. When the last pending
104 initializer is removed, and no failing result is set, the initializers
105 struct will be set to nil and the object is considered as initialized
106 and visible to all clients.
108 description: Initializer is information about an initializer that
109 has not yet completed.
112 description: name of the process that is responsible for initializing
119 description: Status is a return value for calls that don't return
123 description: 'APIVersion defines the versioned schema of this
124 representation of an object. Servers should convert recognized
125 schemas to the latest internal value, and may reject unrecognized
126 values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources'
129 description: Suggested HTTP return code for this status, 0 if
134 description: StatusDetails is a set of additional properties
135 that MAY be set by the server to provide additional information
136 about a response. The Reason field of a Status object defines
137 what attributes will be set. Clients must ignore fields that
138 do not match the defined type of each attribute, and should
139 assume that any attribute may be empty, invalid, or under
143 description: The Causes array includes more details associated
144 with the StatusReason failure. Not all StatusReasons may
145 provide detailed causes.
147 description: StatusCause provides more information about
148 an api.Status failure, including cases when multiple
149 errors are encountered.
153 The field of the resource that has caused this error, as named by its JSON serialization. May include dot and postfix notation for nested attributes. Arrays are zero-indexed. Fields may appear more than once in an array of causes due to fields having multiple errors. Optional.
156 "name" - the field "name" on the current resource
157 "items[0].name" - the field "name" on the first array entry in "items"
160 description: A human-readable description of the cause
161 of the error. This field may be presented as-is
165 description: A machine-readable description of the
166 cause of the error. If this value is empty there
167 is no information available.
171 description: The group attribute of the resource associated
172 with the status StatusReason.
175 description: 'The kind attribute of the resource associated
176 with the status StatusReason. On some operations may differ
177 from the requested resource Kind. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds'
180 description: The name attribute of the resource associated
181 with the status StatusReason (when there is a single name
182 which can be described).
185 description: If specified, the time in seconds before the
186 operation should be retried. Some errors may indicate
187 the client must take an alternate action - for those errors
188 this field may indicate how long to wait before taking
189 the alternate action.
193 description: 'UID of the resource. (when there is a single
194 resource which can be described). More info: http://kubernetes.io/docs/user-guide/identifiers#uids'
197 description: 'Kind is a string value representing the REST resource
198 this object represents. Servers may infer this from the endpoint
199 the client submits requests to. Cannot be updated. In CamelCase.
200 More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds'
203 description: A human-readable description of the status of this
207 description: ListMeta describes metadata that synthetic resources
208 must have, including lists and various status objects. A resource
209 may have only one of {ObjectMeta, ListMeta}.
212 description: continue may be set if the user set a limit
213 on the number of items returned, and indicates that the
214 server has more data available. The value is opaque and
215 may be used to issue another request to the endpoint that
216 served this list to retrieve the next set of available
217 objects. Continuing a list may not be possible if the
218 server configuration has changed or more than a few minutes
219 have passed. The resourceVersion field returned when using
220 this continue value will be identical to the value in
224 description: 'String that identifies the server''s internal
225 version of this object that can be used by clients to
226 determine when objects have changed. Value must be treated
227 as opaque by clients and passed unmodified back to the
228 server. Populated by the system. Read-only. More info:
229 https://git.k8s.io/community/contributors/devel/api-conventions.md#concurrency-control-and-consistency'
232 description: selfLink is a URL representing this object.
233 Populated by the system. Read-only.
236 description: A machine-readable description of why this operation
237 is in the "Failure" status. If this value is empty there is
238 no information available. A Reason clarifies an HTTP status
239 code but does not override it.
242 description: 'Status of the operation. One of: "Success" or
243 "Failure". More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#spec-and-status'
248 description: 'Map of string keys and values that can be used to organize
249 and categorize (scope and select) objects. May match selectors of
250 replication controllers and services. More info: http://kubernetes.io/docs/user-guide/labels'
253 description: 'Name must be unique within a namespace. Is required when
254 creating resources, although some resources may allow a client to
255 request the generation of an appropriate name automatically. Name
256 is primarily intended for creation idempotence and configuration definition.
257 Cannot be updated. More info: http://kubernetes.io/docs/user-guide/identifiers#names'
261 Namespace defines the space within each name must be unique. An empty namespace is equivalent to the "default" namespace, but "default" is the canonical representation. Not all objects are required to be scoped to a namespace - the value of this field for those objects will be empty.
263 Must be a DNS_LABEL. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/namespaces
266 description: List of objects depended by this object. If ALL objects
267 in the list have been deleted, this object will be garbage collected.
268 If this object is managed by a controller, then an entry in this list
269 will point to this controller, with the controller field set to true.
270 There cannot be more than one managing controller.
272 description: OwnerReference contains enough information to let you
273 identify an owning object. Currently, an owning object must be in
274 the same namespace, so there is no namespace field.
277 description: API version of the referent.
280 description: If true, AND if the owner has the "foregroundDeletion"
281 finalizer, then the owner cannot be deleted from the key-value
282 store until this reference is removed. Defaults to false. To
283 set this field, a user needs "delete" permission of the owner,
284 otherwise 422 (Unprocessable Entity) will be returned.
287 description: If true, this reference points to the managing controller.
290 description: 'Kind of the referent. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds'
293 description: 'Name of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#names'
296 description: 'UID of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#uids'
306 An opaque value that represents the internal version of this object that can be used by clients to determine when objects have changed. May be used for optimistic concurrency, change detection, and the watch operation on a resource or set of resources. Clients must treat these values as opaque and passed unmodified back to the server. They may only be valid for a particular resource or set of resources.
308 Populated by the system. Read-only. Value must be treated as opaque by clients and . More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#concurrency-control-and-consistency
311 description: SelfLink is a URL representing this object. Populated by
312 the system. Read-only.
316 UID is the unique in time and space value for this object. It is typically generated by the server on successful creation of a resource and is not allowed to change on PUT operations.
318 Populated by the system. Read-only. More info: http://kubernetes.io/docs/user-guide/identifiers#uids
321 description: PrometheusRuleSpec contains specification parameters for a
325 description: Content of Prometheus rule file
327 description: RuleGroup is a list of sequentially evaluated recording
336 description: Rule describes an alerting or recording rule.