class Resque::Kubernetes::ContextFactory
Create a context for `Kubeclient` depending on the environment.
Constants
- Context
Public Class Methods
context()
click to toggle source
# File lib/resque/kubernetes/context_factory.rb, line 12 def context [ Resque::Kubernetes::Context::WellKnown, Resque::Kubernetes::Context::Kubectl ].each do |context_type| context = context_type.new return context.context if context.applicable? end nil end