Class: OodCore::Job::Adapters::Kubernetes::Resources::PodSpec
- Inherits:
-
Object
- Object
- OodCore::Job::Adapters::Kubernetes::Resources::PodSpec
- Defined in:
- lib/ood_core/job/adapters/kubernetes/resources.rb
Overview
Utility class for kuberenetes podspec object.
Instance Attribute Summary collapse
-
#container ⇒ Object
Returns the value of attribute container.
-
#init_containers ⇒ Object
Returns the value of attribute init_containers.
Instance Method Summary collapse
-
#initialize(container, init_containers: nil) ⇒ PodSpec
constructor
A new instance of PodSpec.
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
#container ⇒ Object
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_containers ⇒ Object
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 |