Skip to content

kitrerp/clojure-kubernetes-client

 
 

Repository files navigation

clojure-kubernetes-client

Clojure client for Kubernetes API

Build Status Clojars Project

Usage

Example

Start kubernetes proxy on localhost:8080

The client can be used as follows:

(ns example
  (:require [clojure-kubernetes-client.core :as core]
            [clojure-kubernetes-client.api.core-v1 :refer [list-node create-namespace]]))

;; Set end-point for the the client
(core/set-api-context {:base-url "http://localhost:8080"})

;; List nodes
(list-node)

;; Create a new namespace
(create-namespace {:metadata {:name "a"}})

Development

Update the generated code.

The client is autogenerated using openapi-generator for the API spec fetched from kubernetes repository.

To modify/upgrade the client to a different kubernetes version, change KUBERNETES_BRANCH in settings and run ./scripts/clojure.sh to autogenerate the client-source code.

About

Clojure client for Kubernetes API

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Clojure 99.6%
  • Other 0.4%