-
Notifications
You must be signed in to change notification settings - Fork 3.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
*: make AlertmanagerConfig v1beta1 an opt-in choice
Enabling by default AlertmanagerConfig v1beta1 by default means that users would have to configure the conversion webhook and it must be performed in advance or at the same time users upgrade to the latest operator version. To offer a smoother transition, we offer AlertmanagerConfig v1beta1 as an opt-in feature: it's neither included in the bundle.yaml file nor in the example/prometheus-operator-crd/ manifests. People that want to enable v1beta1 should use the example/prometheus-operator-crd-full manifests. For jsonnet users, the Prometheus operator jsonnet library has a new `enableAlertmanagerConfigV1beta1` configuration option that can be set to `true`. Signed-off-by: Simon Pasquier <spasquie@redhat.com>
- Loading branch information
1 parent
0aa7618
commit 008561c
Showing
18 changed files
with
34,863 additions
and
12,482 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
7,871 changes: 7,871 additions & 0 deletions
7,871
example/prometheus-operator-crd-full/monitoring.coreos.com_alertmanagerconfigs.yaml
Large diffs are not rendered by default.
Oops, something went wrong.
6,074 changes: 6,074 additions & 0 deletions
6,074
example/prometheus-operator-crd-full/monitoring.coreos.com_alertmanagers.yaml
Large diffs are not rendered by default.
Oops, something went wrong.
618 changes: 618 additions & 0 deletions
618
example/prometheus-operator-crd-full/monitoring.coreos.com_podmonitors.yaml
Large diffs are not rendered by default.
Oops, something went wrong.
659 changes: 659 additions & 0 deletions
659
example/prometheus-operator-crd-full/monitoring.coreos.com_probes.yaml
Large diffs are not rendered by default.
Oops, something went wrong.
8,468 changes: 8,468 additions & 0 deletions
8,468
example/prometheus-operator-crd-full/monitoring.coreos.com_prometheuses.yaml
Large diffs are not rendered by default.
Oops, something went wrong.
103 changes: 103 additions & 0 deletions
103
example/prometheus-operator-crd-full/monitoring.coreos.com_prometheusrules.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,103 @@ | ||
--- | ||
apiVersion: apiextensions.k8s.io/v1 | ||
kind: CustomResourceDefinition | ||
metadata: | ||
annotations: | ||
controller-gen.kubebuilder.io/version: v0.8.0 | ||
creationTimestamp: null | ||
name: prometheusrules.monitoring.coreos.com | ||
spec: | ||
group: monitoring.coreos.com | ||
names: | ||
categories: | ||
- prometheus-operator | ||
kind: PrometheusRule | ||
listKind: PrometheusRuleList | ||
plural: prometheusrules | ||
shortNames: | ||
- promrule | ||
singular: prometheusrule | ||
scope: Namespaced | ||
versions: | ||
- name: v1 | ||
schema: | ||
openAPIV3Schema: | ||
description: PrometheusRule defines recording and alerting rules for a Prometheus | ||
instance | ||
properties: | ||
apiVersion: | ||
description: 'APIVersion defines the versioned schema of this representation | ||
of an object. Servers should convert recognized schemas to the latest | ||
internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources' | ||
type: string | ||
kind: | ||
description: 'Kind is a string value representing the REST resource this | ||
object represents. Servers may infer this from the endpoint the client | ||
submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds' | ||
type: string | ||
metadata: | ||
type: object | ||
spec: | ||
description: Specification of desired alerting rule definitions for Prometheus. | ||
properties: | ||
groups: | ||
description: Content of Prometheus rule file | ||
items: | ||
description: 'RuleGroup is a list of sequentially evaluated recording | ||
and alerting rules. Note: PartialResponseStrategy is only used | ||
by ThanosRuler and will be ignored by Prometheus instances. Valid | ||
values for this field are ''warn'' or ''abort''. More info: https://github.com/thanos-io/thanos/blob/main/docs/components/rule.md#partial-response' | ||
properties: | ||
interval: | ||
type: string | ||
name: | ||
type: string | ||
partial_response_strategy: | ||
type: string | ||
rules: | ||
items: | ||
description: 'Rule describes an alerting or recording rule | ||
See Prometheus documentation: [alerting](https://www.prometheus.io/docs/prometheus/latest/configuration/alerting_rules/) | ||
or [recording](https://www.prometheus.io/docs/prometheus/latest/configuration/recording_rules/#recording-rules) | ||
rule' | ||
properties: | ||
alert: | ||
type: string | ||
annotations: | ||
additionalProperties: | ||
type: string | ||
type: object | ||
expr: | ||
anyOf: | ||
- type: integer | ||
- type: string | ||
x-kubernetes-int-or-string: true | ||
for: | ||
type: string | ||
labels: | ||
additionalProperties: | ||
type: string | ||
type: object | ||
record: | ||
type: string | ||
required: | ||
- expr | ||
type: object | ||
type: array | ||
required: | ||
- name | ||
- rules | ||
type: object | ||
type: array | ||
type: object | ||
required: | ||
- spec | ||
type: object | ||
served: true | ||
storage: true | ||
status: | ||
acceptedNames: | ||
kind: "" | ||
plural: "" | ||
conditions: [] | ||
storedVersions: [] |
Oops, something went wrong.