Class: OodCore::Job::Adapters::Kubernetes::Resources::PodSpec

Inherits:
Object
  • Object
show all
Defined in:
lib/ood_core/job/adapters/kubernetes/resources.rb

Overview

Utility class for kuberenetes podspec object.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(container, init_containers: nil) ⇒ PodSpec

Returns a new instance of PodSpec.



115
116
117
118
# File 'lib/ood_core/job/adapters/kubernetes/resources.rb', line 115

def initialize(container, init_containers: nil)
  @container = container
  @init_containers = init_containers
end

Instance Attribute Details

#containerObject

Returns the value of attribute container.



114
115
116
# File 'lib/ood_core/job/adapters/kubernetes/resources.rb', line 114

def container
  @container
end

#init_containersObject

Returns the value of attribute init_containers.



114
115
116
# File 'lib/ood_core/job/adapters/kubernetes/resources.rb', line 114

def init_containers
  @init_containers
end