View Source 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
0.4.0 - 2024-12-13
⚠️ Breaking Changes ⚠️
Kubereq.watch/3
andKubereq.watch_single/4
now also returnKubereq.response/0
. The stream which was returned directly before is now accessible through the:body
key of the returnedReq.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 withoutTask.async/1
.Kubereq.create/3
,Kubereq.update/3
andKubereq.apply/5
: Extractapi_verison
andkind
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 ofKubereq.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
exceptKubereq.wait_until/5
.
0.3.2 - 2024-11-22
Added
- Support for websocket connections to
pods/log
andpods/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 withKubereq.attach/1
- The result of
Kuberq.attach/1
can be used withReq
functions directly - Functions in the
Kubereq
modules still provide a nice abstraction over plainReq
. They now forward allopts
toReq
. Kubereq.wait_until/5
now takes a Keyword list as fifth argument (wasinteger
before). To migrate, just turntimeout
intotimeout: timeout
0.2.1 - 2024-10-03
Fixed
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