Class: CronKubernetes::KubernetesClient

Inherits:
Object
  • Object
show all
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_clientObject



6
7
8
# File 'lib/cron_kubernetes/kubernetes_client.rb', line 6

def batch_client
  @batch_client ||= client("/apis/batch", "v1")
end

#namespaceObject



10
11
12
# File 'lib/cron_kubernetes/kubernetes_client.rb', line 10

def namespace
  context&.namespace
end