yanatan16 / clj-kubernetes-api Goto Github PK
View Code? Open in Web Editor NEWKubernetes API Client library in Clojure
License: MIT License
Kubernetes API Client library in Clojure
License: MIT License
When I do :
(def ctx (k8s/make-context "https://api.x.x.x")) (<!! (k8s/list-namespaced-node ctx))
It gives me the following error:
{:success false, :error {:cause "unable to find valid certification path to requested target", :via [{:type javax.net.ssl.SSLHandshakeException, :at [sun.security.ssl.Handshaker checkThrown "Handshaker.java" 1529], :message "General SSLEngine problem"} {:type javax.net.ssl.SSLHandshakeException, :at [sun.security.ssl.Alerts getSSLException "Alerts.java" 192], :message "General SSLEngine problem"} {:type sun.security.validator.ValidatorException, :at [sun.security.validator.PKIXValidator doBuild "PKIXValidator.java" 397], :message "PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target"} {:type sun.security.provider.certpath.SunCertPathBuilderException, :at [sun.security.provider.certpath.SunCertPathBuilder build "SunCertPathBuilder.java" 141], :message "unable to find valid certification path to requested target"}], :trace [[sun.security.provider.certpath.SunCertPathBuilder build "SunCertPathBuilder.java" 141] [sun.security.provider.certpath.SunCertPathBuilder engineBuild "SunCertPathBuilder.java" 126] [java.security.cert.CertPathBuilder build "CertPathBuilder.java" 280] [sun.security.validator.PKIXValidator doBuild "PKIXValidator.java" 392] [sun.security.validator.PKIXValidator engineValidate "PKIXValidator.java" 302] [sun.security.validator.Validator validate "Validator.java" 260] [sun.security.ssl.X509TrustManagerImpl validate "X509TrustManagerImpl.java" 324] [sun.security.ssl.X509TrustManagerImpl checkTrusted "X509TrustManagerImpl.java" 281] [sun.security.ssl.X509TrustManagerImpl checkServerTrusted "X509TrustManagerImpl.java" 136] [sun.security.ssl.ClientHandshaker serverCertificate "ClientHandshaker.java" 1601] [sun.security.ssl.ClientHandshaker processMessage "ClientHandshaker.java" 216] [sun.security.ssl.Handshaker processLoop "Handshaker.java" 1052] [sun.security.ssl.Handshaker$1 run "Handshaker.java" 992] [sun.security.ssl.Handshaker$1 run "Handshaker.java" 989] [java.security.AccessController doPrivileged "AccessController.java" -2] [sun.security.ssl.Handshaker$DelegatedTask run "Handshaker.java" 1467] [org.httpkit.client.HttpsRequest doHandshake "HttpsRequest.java" 89] [org.httpkit.client.HttpClient doRead "HttpClient.java" 177] [org.httpkit.client.HttpClient run "HttpClient.java" 474] [java.lang.Thread run "Thread.java" 748]]}}
I am unable to connect to the cluster.
When I do (require '[kubernetes.api.v1 :as k8s])
, I get the following error:
CompilerException clojure.lang.ExceptionInfo: Call to clojure.core/refer-clojure did not conform to spec: In: [2 1] val: :as fails at: [:args :exclude :op :quoted-spec :spec] predicate: #{:exclude} In: [2 1] val: :as fails at: [:args :only :op :quoted-spec :spec] predicate: #{:only} In: [2 1] val: :as fails at: [:args :rename :op :quoted-spec :spec] predicate: #{:rename} In: [2] val: (quote :as) fails at: [:args :exclude :op :spec] predicate: #{:exclude} In: [2] val: (quote :as) fails at: [:args :only :op :spec] predicate: #{:only} In: [2] val: (quote :as) fails at: [:args :rename :op :spec] predicate: #{:rename} #:clojure.spec.alpha{:problems ({:path [:args :exclude :op :spec], :pred #{:exclude}, :val (quote :as), :via [], :in [2]} {:path [:args :exclude :op :quoted-spec :spec], :pred #{:exclude}, :val :as, :via [], :in [2 1]} {:path [:args :only :op :spec], :pred #{:only}, :val (quote :as), :via [], :in [2]} {:path [:args :only :op :quoted-spec :spec], :pred #{:only}, :val :as, :via [], :in [2 1]} {:path [:args :rename :op :spec], :pred #{:rename}, :val (quote :as), :via [], :in [2]} {:path [:args :rename :op :quoted-spec :spec], :pred #{:rename}, :val :as, :via [], :in [2 1]}), :spec #object[clojure.spec.alpha$regex_spec_impl$reify__2436 0x29a373ec "clojure.spec.alpha$regex_spec_impl$reify__2436@29a373ec"], :value ((quote :exclude) (quote [reduce into merge map take partition partition-by]) (quote :as) (quote core)), :args ((quote :exclude) (quote [reduce into merge map take partition partition-by]) (quote :as) (quote core))}, compiling:(clojure/core/async.clj:9:1)
Going through the README I stumbled across an error that seems to just be in the instructions
cid.core=> (<!! (k8s/list-namespaced-nodes ctx {:namespace "default"}))
CompilerException java.lang.RuntimeException: No such var: k8s/list-namespaced-nodes, compiling
(/private/var/folders/tb/xwdxg40120xg3pl0s1vv7_yh0000gn/T/form-init1202866452870163565.clj:1:6)
Looks to me like the README just needs to change list-namespaced-nodes
to list-namespaced-node
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.