1
0
Fork 0
mirror of https://github.com/prometheus-operator/prometheus-operator.git synced 2025-04-16 09:16:38 +00:00
Commit graph

19 commits

Author SHA1 Message Date
Simon Pasquier
37d466a531
chore: update the Thanos Ruler example
Signed-off-by: Simon Pasquier <spasquie@redhat.com>
2024-11-18 15:55:19 +01:00
Pranshu Srivastava
ddfea8919b
enhancement: include operator version in CRD annotations (#6050)
* *: include operator version in CRD annotations

Signed-off-by: Paweł Krupa (paulfantom) <pawel@krupa.net.pl>

* example,jsonnet: regenerate

Signed-off-by: Paweł Krupa (paulfantom) <pawel@krupa.net.pl>

* fixup! example,jsonnet: regenerate

---------

Signed-off-by: Paweł Krupa (paulfantom) <pawel@krupa.net.pl>
Co-authored-by: Paweł Krupa (paulfantom) <pawel@krupa.net.pl>
2023-10-31 15:29:07 -03:00
Simon Pasquier
2ce4214759
Enforce TLS secret for the admission webhook (#5112)
The admission webhook service has to deployed with TLS enabled because
the Kubernetes API only supports webhook URLs with a "https://" scheme.

Signed-off-by: Simon Pasquier <spasquie@redhat.com>

Signed-off-by: Simon Pasquier <spasquie@redhat.com>
2022-11-03 09:42:29 +00:00
Simon Pasquier
1829e379cd
*: add v1beta1 for AlertmanagerConfig CRD (#4709)
* *: add v1beta1 for AlertmanagerConfig CRD

Signed-off-by: Simon Pasquier <spasquie@redhat.com>

* *: implement conversion webhook for AlertmanagerConfig

Signed-off-by: Simon Pasquier <spasquie@redhat.com>

* *: add jsonnet support for CRD conversion webhook

Signed-off-by: Simon Pasquier <spasquie@redhat.com>

* test: configure conversion webhook for AlertmanagerConfig

Signed-off-by: Simon Pasquier <spasquie@redhat.com>

* test/e2e: add test for v1alpha1<->v1beta1 conversion

Signed-off-by: Simon Pasquier <spasquie@redhat.com>

* Documentation: update webhook documentation

Signed-off-by: Simon Pasquier <spasquie@redhat.com>

* pkg/apis/monitoring/v1beta1: remove Regex field from Matcher type

Signed-off-by: Simon Pasquier <spasquie@redhat.com>

* *: rename muteTimeIntervals field to timeIntervals (v1beta1)

Signed-off-by: Simon Pasquier <spasquie@redhat.com>

* *: restore short name for AlertmanagerConfig

Signed-off-by: Simon Pasquier <spasquie@redhat.com>

* pkg/admission: add unit test for conversion webhook

Signed-off-by: Simon Pasquier <spasquie@redhat.com>

* pkg/apis/monitoring/v1beta1: replace v1.SecretKeySelector by SecretKeySelector

v1.SecretKeySelector has an `Optional` field which doesn't make sense
in the context of the AlertmanagerConfig CRD. Not depending on an
external type also means that we can enforce that key and name values
are not empty.

Signed-off-by: Simon Pasquier <spasquie@redhat.com>

* *: regenerate

Signed-off-by: Simon Pasquier <spasquie@redhat.com>

* *: 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>

* *: add Telegram support in v1beta1

Signed-off-by: Simon Pasquier <spasquie@redhat.com>

* *: synchronize with latest main changes

Signed-off-by: Simon Pasquier <spasquie@redhat.com>

* Documentation/user-guides/webhook.md: clarify mutation webhook

Signed-off-by: Simon Pasquier <spasquie@redhat.com>

* example: regenerate

Signed-off-by: Simon Pasquier <spasquie@redhat.com>
2022-05-31 11:11:00 +02:00
Simon Pasquier
9f06eac06f
jsonnet: add PodDisruptionBudget for admission webhook (#4771)
Signed-off-by: Simon Pasquier <spasquie@redhat.com>
2022-05-05 14:00:27 +02:00
Simon Pasquier
0c2e2a750b *: use consistent image name for the admision webhook
The end-to-end tests and jsonnet code were using
`quay.io/prometheus-operator/prometheus-admission-webhook` which doesn't
exist.

Signed-off-by: Simon Pasquier <spasquie@redhat.com>
2022-03-16 17:16:13 +01:00
Philip Gough
4af4a80dc4 make: Build scripts and target for admission webhook manifests 2022-02-16 10:21:56 +00:00
Philip Gough
6ae8d9f276 jsonnet: Define resources for admission webhook 2022-02-16 10:21:56 +00:00
paulfantom
fa9b2fed34
*: add dependencies on config.jsonnet
Signed-off-by: paulfantom <pawel@krupa.net.pl>
2021-01-15 08:44:54 +01:00
Lili Cosic
4f54b9ae6e Regenerate everything 2021-01-13 14:55:43 +01:00
paulfantom
97771f6dda
scripts/generate: adjust generator scripts 2021-01-07 14:58:02 +01:00
mikechengwei
9798b98df1 optimize thanos yaml generate script 2021-01-06 02:10:07 +08:00
mikechengwei
52c79f7b26 auto generate thanos example yaml 2021-01-05 14:10:27 +08:00
mikechengwei
09680930a8 optimze thanos example 2020-12-28 12:14:53 +08:00
Paweł Krupa
af8e08b61f
Refactor tooling management (#3176) 2020-05-26 08:34:04 +02:00
Paul Gier
280b222cb1 update jsonnet-bundler to v0.3.1 2020-03-30 15:41:22 -05:00
Paul Gier
5fbb4f93b5 update jsonnetfile.json for v0.2.0 compat
jsonnet bundler v0.2.0 no longer accepts a local path to a git
repository.
2020-02-06 14:32:17 -06:00
Frederic Branczyk
dd8e446e3e
jsonnet: Bump manifest 2019-06-19 20:19:06 +02:00
paulfantom
b602243f57
hack: *: remove hacky shell scripts and move generate dir to scripts/ 2019-05-14 17:11:34 +02:00