Skip to content

Instantly share code, notes, and snippets.

@ilackarms
Created June 6, 2017 14:31
Show Gist options
  • Save ilackarms/5e864113673f40fdf275e1175f01b895 to your computer and use it in GitHub Desktop.
Save ilackarms/5e864113673f40fdf275e1175f01b895 to your computer and use it in GitHub Desktop.
test script for kubeclient
require 'kubeclient'
kc = Kubeclient::Client.new("http://localhost:8001")
kc.discover
klass = "Kubeclient::Namespace".split('::').inject(Object) {|o,c| o.const_get c}
ns = kc.get_entities("namespaces", klass, "namespaces")
p ns
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment