Skip to content

Latest commit

 

History

History
149 lines (84 loc) · 4.25 KB

CHANGELOG.md

File metadata and controls

149 lines (84 loc) · 4.25 KB

Changelog

All notable changes to this project will be documented in this file.

The format is based on Keep a Changelog, and this project adheres to Semantic Versioning.

Unreleased

Changed

  • use JSON if it is available. #61

0.4.1 - 2024-12-26

Added

  • Support for selectors as maps

Changed

  • Replace Fresh with our own implementation for web sockets #56

0.4.0 - 2024-12-13

⚠️ Breaking Changes ⚠️

  • Kubereq.watch/3 and Kubereq.watch_single/4 now also return t:Kubereq.response/0. The stream which was returned directly before is now accessible through the :body key of the returned t:Req.Response.t/0 struct. The :stream_to option was removed. Kubereq.Watcher was added for implementing long running watch event handlers.

Changes

  • Kubereq.wait_until/5 gets by without Task.async/1.
  • Kubereq.create/3, Kubereq.update/3 and Kubereq.apply/5: Extract api_verison and kind from passed resource.

Added

  • Kubereq.Watcher - A behaviour module for implementing a Kubernetes watch event handler.
  • Streaming for paginated list operation via the :into option of Kubereq.list/3 #46
  • Kubereq.can_i?/3 - Checks whether the authenticated user is authorized to perform a specific action.
  • Error raising variants for all functions in Kubereq except Kubereq.wait_until/5.

0.3.2 - 2024-11-22

Added

  • Support for websocket connections to pods/log and pods/exec subresources #37

0.3.1 - 2024-10-24

Fixed

  • Include resource name in the path for deletion in order to prevent deleting multiple resources #41, #42

Added

  • Add current context's namespace as :current_namespace field to Kubeconfig. #39
  • Add Req option :context to switch context ad-hoc. #39

0.3.0 - 2024-10-04

⚠️ Breaking ⚠️

This release comes with a refactored API of the kubereq library and will not work for code using earlier versions of kubereq. Migrating should be straight forward in most cases.

  • Kubereq.new/N was deprecated and replaced with Kubereq.attach/1
  • The result of Kuberq.attach/1 can be used with Req functions directly
  • Functions in the Kubereq modules still provide a nice abstraction over plain Req. They now forward all opts to Req.
  • Kubereq.wait_until/5 now takes a Keyword list as fifth argument (was integer before). To migrate, just turn timeout into timeout: timeout

0.2.1 - 2024-10-03

Fixed

  • Exec auth wrongly assumes cert data to be base64 encoded #33, #34

0.2.0 - 2024-09-20

Changed

  • exec auth and other steps now return errors instead of raising exceptions. #30

0.1.8 - 2024-09-14

Changed

  • Kubereq.Kubeconfig.Stub: Set server url to context name

0.1.7 - 2024-09-12

Added

  • Kubereq.Kubeconfig.Stub: A Kubeconfig step used for testing

0.1.6 - 2024-08-25

Fixed

  • Kubereq.Kubeconfig.ServiceAccount: make server key a binary

0.1.5 - 2024-08-24

Added

  • Kubereq.wait_until/5: Support returning {:error, error} tuple in the callback

0.1.4 - 2024-08-21

Fixed

  • Kubereq.Kubeconfig.File: Only expand path if not relative to HOME.

0.1.3 - 2024-08-19

Fixed

  • Fixed several bugs and docs
  • Dependency updates

0.1.2 - 2024-06-13

  • Dependency updates

0.1.1

Fixed

  • License was wrong in mix.exs

Unreleased