Class: CronKubernetes::KubernetesClient
- Inherits:
-
Object
- Object
- CronKubernetes::KubernetesClient
- Defined in:
- lib/cron_kubernetes/kubernetes_client.rb
Overview
Encapsulate access to Kubernetes API for different API versions.
Instance Method Summary collapse
Instance Method Details
#batch_client ⇒ Object
6 7 8 |
# File 'lib/cron_kubernetes/kubernetes_client.rb', line 6 def batch_client @batch_client ||= client("/apis/batch", "v1") end |
#namespace ⇒ Object
10 11 12 |
# File 'lib/cron_kubernetes/kubernetes_client.rb', line 10 def namespace context&.namespace end |