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.
- use
JSON
if it is available. #61
- Support for selectors as maps
- Replace Fresh with our own implementation for web sockets #56
Kubereq.watch/3
andKubereq.watch_single/4
now also returnt:Kubereq.response/0
. The stream which was returned directly before is now accessible through the:body
key of the returnedt:Req.Response.t/0
struct. The:stream_to
option was removed.Kubereq.Watcher
was added for implementing long running watch event handlers.
Kubereq.wait_until/5
gets by withoutTask.async/1
.Kubereq.create/3
,Kubereq.update/3
andKubereq.apply/5
: Extractapi_verison
andkind
from passed resource.
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
.
- Support for websocket connections to
pods/log
andpods/exec
subresources #37
- Include resource name in the path for deletion in order to prevent deleting multiple resources #41, #42
- Add current context's namespace as
:current_namespace
field to Kubeconfig. #39 - Add Req option
:context
to switch context ad-hoc. #39
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
exec
auth and other steps now return errors instead of raising exceptions. #30
Kubereq.Kubeconfig.Stub
: Set server url to context name
Kubereq.Kubeconfig.Stub
: A Kubeconfig step used for testing
Kubereq.Kubeconfig.ServiceAccount
: make server key a binary
Kubereq.wait_until/5
: Support returning{:error, error}
tuple in the callback
Kubereq.Kubeconfig.File
: Only expand path if not relative to HOME.
- Fixed several bugs and docs
- Dependency updates
- Dependency updates
- License was wrong in
mix.exs