Skip to content

kubernetes-client/ruby

Folders and files

NameName
Last commit message
Last commit date

Latest commit

3386109 · Mar 4, 2021

History

85 Commits
May 9, 2019
May 4, 2020
May 7, 2017
May 11, 2019
Aug 23, 2018
May 7, 2017
Mar 4, 2021
Feb 15, 2019
Jan 5, 2019
Aug 23, 2018
Feb 15, 2019

Kubernetes Ruby Client

Ruby client for the kubernetes API.

Usage

require 'kubernetes'
require 'pp'

kube_config = Kubernetes::KubeConfig.new("#{ENV['HOME']}/.kube/config")
config = Kubernetes::Configuration.new()

kube_config.configure(config)

client = Kubernetes::CoreV1Api.new(Kubernetes::ApiClient.new(config))

pp client.list_namespaced_pod('default')

Contribute

Please see CONTRIBUTING.md for instructions on how to contribute.

Code of conduct

Participation in the Kubernetes community is governed by the Kubernetes Code of Conduct.

Development

Update client

to update the client clone the gen repo and run this command at the root of the client repo:

${GEN_REPO_BASE}/openapi/ruby.sh kubernetes settings

License

This program follows the Apache License version 2.0 (http://www.apache.org/licenses/ ). See LICENSE file included with the distribution for details.