0.0
No release in over a year
Ruby wrapper around the Kubernetes CLI.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Runtime

 Project Readme

kubernetes-cli

Unit Tests Integration Tests

A Ruby wrapper around the Kubernetes CLI.

Usage

Create a new instance by passing the path to your Kube config (usually ~/.kube/config) and optionally the path to the kubectl executable (by default, the executable path comes from the kubectl-rb gem).

cli = KubernetesCLI(File.join(ENV['HOME'], '.kube', 'config'))

Available Methods

  • annotate
  • api_resources
  • apply
  • apply_uri
  • current_context
  • delete_object
  • delete_objects
  • exec_cmd
  • executable
  • get_object
  • get_objects
  • kubeconfig_path
  • last_status
  • logtail
  • patch_object
  • restart_deployment
  • run_cmd
  • system_cmd

Please see the source code for available options.

Running Tests

bundle exec rspec should do the trick. Requires that you have Docker installed.

License

Licensed under the MIT license. See LICENSE for details.

Authors