Skip to content

Releases: coryodaniel/k8s

2.0.0-rc.0

14 Dec 16:33
Compare
Choose a tag to compare
2.0.0-rc.0 Pre-release
Pre-release

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.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
  • 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 is not supported anymore.

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)
  • The :stream_to in http_opts is not supported anymore. Instead, Elixir Streams are returned. Map over the returned stream to send messages to other processes.
  • 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)

1.2.0

07 Dec 15:19
Compare
Choose a tag to compare

What's Changed

  • add field selector support to K8s.Selector by @drowzy in #117
  • Feature: execute a command in a pod by @bradleyd in #190

Chores

New Contributors

Full Changelog: 1.1.10...1.2.0

1.1.10

30 Oct 13:32
Compare
Choose a tag to compare

Fixed

  • K8s.Client.run/2: spec updated to include t:K8s.Discovery.Error.t/0 in possible error structs

Full Changelog: 1.1.9...1.1.10

1.1.9

28 Oct 09:34
Compare
Choose a tag to compare

What's Changed

  • fix: K8s.Client.run/2 spec missing a possible error by @icehaunter in #189
  • K8s.Operation.Path.build/1: Allow namespace to be nil

Full Changelog: 1.1.8...1.1.9

1.1.8

28 Oct 06:43
Compare
Choose a tag to compare

What's Changed

Chores

Full Changelog: 1.1.7...1.1.8

1.1.7

15 Oct 13:18
Compare
Choose a tag to compare

What's Changed

  • replace MODULE with module name when implementing protocols by @mruoss in #185
  • Match subresources when the kind does not equal the subresource by @mruoss in #184

Full Changelog: 1.1.6...1.1.7

1.1.6

03 Oct 20:49
777fb25
Compare
Choose a tag to compare

What's Changed

  • add map to the K8s.Selector.label/2 spec by @icehaunter in #177
  • use discovery_opts from conn in file discovery driver by @mruoss in #180
  • inspect PID in error message as it cannot be converted to binary by @mruoss in #181
  • prepare version 1.1.6 by @mruoss in #182

Chores & Maintenance

New Contributors

Full Changelog: 1.1.5...1.1.6

1.1.5

19 May 11:44
Compare
Choose a tag to compare

Fixed

  • K8s.Client.watch_and_stream/2: 410 Gone not rescued #159
  • K8s.Client.watch/3: get operations should be transformed to list BEFORE retrieving the resource version #160

Changed

  • K8s.Client.watch_and_stream/2: Request BOOKMARK events and process them when watching resource collections. #159

1.1.3

13 Mar 21:36
Compare
Choose a tag to compare

Fixed

Fix default value in K8s.Client.Runner.Watch.run/4 and K8s.Client.Runner.Watch.stream/3

1.1.2

13 Mar 20:04
Compare
Choose a tag to compare

Fixed

  • Support for FQDN K8s API servers and Root CA chains #144
  • Wrong exception raised by K8s.Resource.from_file!/2 #137, #143
  • K8s.Client.Runner.Watch.stream/3 - convert :get to :list operation with field selector.
  • Make Logger metadata library: :k8s available at compile time.