Skip to content

Releases: coryodaniel/k8s

2.0.3

17 Feb 08:12
a148ed9
Compare
Choose a tag to compare

Fixed

  • A regression introduced in 2.0.2: superfluous call to Genserver.reply() was removed.

2.0.2

16 Feb 20:21
3fee0ac
Compare
Choose a tag to compare

Fixed

  • Restart watcher when server is gone by @mruoss in #226

Chores

Full Changelog: 2.0.1...2.0.2

2.0.1

12 Feb 20:51
2831c2d
Compare
Choose a tag to compare

What's Changed

Full Changelog: 2.0.0...2.0.1

Thanks @elliottneilclark for your help.

2.0.0

27 Jan 19:20
Compare
Choose a tag to compare

This version comes with some breaking changes. Please refer to the migrations guide for help on how to migrate your projects to this version.

Added

  • K8s.Selector.label_not/N, K8s.Selector.field/N and K8s.Selector.field_not/N - Support for field selectors (#117)
  • K8s.Client.Provider.stream/5 callback was added to the behaviour
  • K8s.Client.Runner.Base.stream/3
  • K8s.Client.Provider.stream_to/6 callback was added to the behaviour
  • K8s.Client.Runner.Base.stream_to/4
  • K8s.Client.MintHTTPProvider - The mint client implementation
  • K8s.Client.HTTPTestHelper - to be used in tests (resides in lib/ so it can be used by dependents)
  • Open :connect operations (connections) now accept messages to be sent to pods if using K8s.Client.stream_to/N
  • K8s.Client.put_conn/2 to add pielining support to the Client API

Changed

  • K8s.Client.Provider behaviour was adapted to the new internal architecture
  • K8s.Client.watch/N now returns a :watch or :watch_all_namespaces operation to be passed to K8s.Client.stream/N
  • Websockex was replaced by Mint.WebSocket

Removed

  • K8s.Client.HTTPProvider was removed in favor of K8s.Client.MintHTTPProvider
  • The :stream_to in http_opts was removed in favor of K8s.Client.stream_to/N and K8s.Client.stream/N.
  • K8s.Client.DynamicWebSocketProvider was removed. Use K8s.Client.DynamcHTTPProvider.websocket* functions instead .

Breaking changes

  • Tests using the DynamicHTTPProvider which work with watch_and_stream are going to need to be changed. The HTTP mocks now need to implement the stream/5 callback. (See K8s.Client.Runner.Watch.StreamTest on this branch for examples)d.
  • K8s.Client.DynamicWebSocketProvider was removed in favor of K8s.Client.DynamcHTTPProvider.websocket* functions.
  • The :stream_to in http_opts is not supported anymore. Use K8s.Client.stream/N and K8s.Client.stream_to/N instead.
  • Errors are encapsulated in K8s.Client.HTTPError
  • headers/1 callback was removed from K8s.Client.Provider behaviour.
  • K8s.Client.HTTPProvider (HTTPoison implementation) was removed.
  • K8s.Client.watch/N now returns a :watch or :watch_all_namespaces operation to be passed to K8s.Client.stream/N

Fixed

  • Update PKI.cert_from_map/2 to support fully qualified domain names (FQDN) - Fix for K8s.Conn.from_file/1 (#164)

2.0.0-rc.6

19 Jan 20:00
Compare
Choose a tag to compare
2.0.0-rc.6 Pre-release
Pre-release

Fixed

  • Unable to parse response (invalid JSON) (#215)
    Thanks @arathunku for testing the release candidate and discovering the issue.

Chores

Full Changelog: 2.0.0-rc.5...2.0.0-rc.6

2.0.0-rc.5

08 Jan 19:13
Compare
Choose a tag to compare
2.0.0-rc.5 Pre-release
Pre-release

Internal changes.

2.0.0-rc.4

07 Jan 12:07
Compare
Choose a tag to compare
2.0.0-rc.4 Pre-release
Pre-release

Added

  • :poolboy - Pooling for HTTP/1 connections
  • K8s.Client.Mint.HTTPAdapter - Monitor caller and cleanup state upon :DOWN

Full Changelog: 2.0.0-rc.3...2.0.0-rc.4

2.0.0-rc.3

01 Jan 20:06
Compare
Choose a tag to compare
2.0.0-rc.3 Pre-release
Pre-release

Fixed

  • K8s.Client.Mint.ConnectionRegistry - closed connections were not re-established.
  • K8s.Client.Mint.Request.HTTP - Add missing struct field :waiting

2.0.0-rc.2

31 Dec 14:14
Compare
Choose a tag to compare
2.0.0-rc.2 Pre-release
Pre-release

Added

  • K8s.Client.Mint.HTTPAdapter - A GenServer handling Mint.HTTP connections.

2.0.0-rc.1

19 Dec 15:22
Compare
Choose a tag to compare
2.0.0-rc.1 Pre-release
Pre-release

Fixed

  • K8s.Client.Mint.WebSocket - Close websocket if process is terminated