module SwarmClusterCliOpe::Kubernetes::SyncConfigs::BaseDecorator

Public Instance Methods

container() click to toggle source

@return [SwarmClusterCliOpe::Kubernetes::Pod]

# File lib/swarm_cluster_cli_ope/kubernetes/sync_configs/base_decorator.rb, line 15
def container
  return @service if @service.is_a? SwarmClusterCliOpe::Kubernetes::Pod
  @_container ||= Pod.find_by_selector(service, namespace: namespace, context: context)
end