Skip to content

Latest commit

 

History

History
26 lines (16 loc) · 1.4 KB

README.md

File metadata and controls

26 lines (16 loc) · 1.4 KB

Kubernetes Haskell Client

CI

Haskell client for the Kubernetes API.

This was forked from kubernetes-client/haskell, in order to generate a version for each Kubernetes release and publish them to Hackage.

The kubernetes-api-* folders contain the OpenAPI-generated libraries for each Kubernetes version, while kubernetes-api-client contains the handwritten client library.

Currently, we generate the kubernetes-api-* packages for Kubernetes version 1.25 to 1.32. These are released on Hackage where version 1.25 is version 125.x.x, 1.26 is 126.x.x, and so on. This scheme was chosen so that we can do both major and minor version updates, if necessary.

When using this, you will probably want to specify the Kubernetes version in your .cabal file to match the version of your cluster. So if your cluster is on Kubernetes 1.30, then

  build-depends:
    ...
    , kubernetes-api >=130 && <131
    , kubernetes-client

Development

To regenerate all kubernetes-api-* versions, run ./generate_all.sh. You need to have Nix installed.

It's a good idea to run ./build_all.sh in order to test that each version builds successfully with Stack.