Skip to content

Latest commit

 

History

History
225 lines (139 loc) · 5.95 KB

CHANGELOG.md

File metadata and controls

225 lines (139 loc) · 5.95 KB

2.6.0 - 2024-03-31

Changed

  • Update to Kubernetes v1.29.
  • Update to Go v1.22.

2.5.0 - 2022-10-15

Changed

  • Update to Kubernetes v1.25.
  • Update to Go v1.19.

2.4.0 - 2022-10-15

Changed

  • Update to Kubernetes v1.24.

2.3.0 - 2022-03-23

Changed

  • Update to Kubernetes v1.23.
  • Fix panics on missing requestKind and RequestResource on v1beta1.
  • Fix panics on missing requestKind and RequestResource on v1.
  • Update to Go v1.18.

Fixed

2.2.0 - 2021-12-05

Added

  • Infer automatically (using Unstructured) Kubernetes types that don't implement metav1.Object like corev1.PodExecOptions.
  • Tracing support with Opentelemetry implementation.

Changed

  • Update to Kubernetes v1.22.

Fixed

  • Review errors on http handler were not being logged, now are logged as Error.

2.1.0 - 2021-05-19

Added

  • User information to model.

Changed

  • Update to Kubernetes v1.21.

2.0.0 - 2021-04-02

v2 of the library mainly refactors the domain model to abstract the admission review versions. This breaks backwards compatibility.

Added

  • A new model that decouples the different Kubernetes admission review model types.
  • Support Kubernetes warnings headers in webhooks.

Changed

  • Webhooks factory signatures now receive only a single configuration struct instead of multiple arguments.
  • All Kubernetes specific admission review references, changed in favor of Kubewebhook own model.
  • Better HTTP reponse details (messages, HTTP codes...) on allow, not allow, mutating and errors.
  • Webhook reviewm metrics have been changed to give more insights.
  • Prometheus metrics have been redesigned and now are simpler and give more insights.
  • http.HandlerFor now receives a configuration struct.
  • Improved the logger on webhooks and HTTP handlers.
  • Use structured logging over the application.
  • Add Logrus logger support.
  • Update to Kubernetes v1.20.

Removed

  • V1 docs.
  • STD logger.
  • Tracing

0.11.0 - 2020-10-21

Added

  • Add validation allowed Prometheus metrics.

Changed

  • Update to Kubernetes v1.19.

0.10.0 - 2020-05-19

Added

  • Dynamic type webhooks without the need to a specific type (can use as multitype webhook).

Changed

  • Fixed on DELETE operations static webhooks not receiving object unmarshalled (#41)
  • Fixed on DELETE operations dynamic webhooks having unmarshaling errors (#63)

0.9.1 - 2020-04-09

Changed

  • Update all dependencies including jsonpatch library.

0.9.0 - 2020-03-27

Changed

  • Update to Kubernetes v1.18.

0.8.0 - 2020-02-18

Changed

  • Update to Kubernetes v1.17.

0.7.0 - 2020-02-17

Changed

  • Update to Kubernetes v1.16.

Fixed

  • Use mutation request raw json to create the json patch instead of an unmarshaled object of the raw json. In the past we got marshaled the raw into an object, create a deepcopy of the object that would be the mutator, then marshal both objects and get the patch. This on some cases caused some defaulting on the fields that were not present on the raw json when marshaling/unmarshaling process, so when generating the patch the fields that were defaulted acted as if already existed on the original object and if modified on the mutated object patch on these field were "modifications" instead of "additions".

0.6.0 - 2020-02-16

Changed

  • Update to Kubernetes v1.15.

0.5.0 - 2020-02-16

Changed

  • Update to Kubernetes v1.14.

0.4.0 - 2020-02-16

Changed

  • Update to Kubernetes v1.13.

0.3.0 - 2019-05-30

Added

  • Util to know if a admission review is dry run.

Changed

  • Update to Kubernetes v1.12.

0.2.0 - 2018-09-29

Breaking: Webhook constructors now need a tracer.

Added

  • Open tracing support on validators.
  • Open tracing support on mutators.
  • Open tracing support on webhooks.

0.1.1 - 2018-07-22

Added

  • MustHandlerFor in case don't want to get an error (panic instead) and be less verbose.

Fixed

  • Set internal server error status code (500) when a error on a webhook happens.

0.1.0 - 2018-07-22

Added

  • Grafana dashboard for Prometheus metrics.
  • Webhook admission review Prometheus metrics.
  • Pass admission request on the context to the webhooks.
  • Pass request context to the webhook and its mutating/validating chain.
  • Static validating webhook.
  • Mutating webhook example.
  • Static mutating webhook.
  • Handler creator for webhooks.