Skip to content

getkuby/kubernetes-cli

Repository files navigation

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

About

Ruby wrapper around the Kubernetes CLI.

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages