class CronKubernetes::KubeclientContext
Create a context for `Kubeclient` depending on the environment.
Constants
- Context
Public Class Methods
context()
click to toggle source
# File lib/cron_kubernetes/kubeclient_context.rb, line 11 def context [ CronKubernetes::Context::WellKnown, CronKubernetes::Context::Kubectl ].each do |context_type| context = context_type.new return context.context if context.applicable? end end