Class: Kubernetes::ReplicationControllerSpec

Inherits:
Object
  • Object
show all
Defined in:
lib/kubernetes/replication_controller_spec.rb

Instance Method Summary collapse

Constructor Details

#initialize(data) ⇒ ReplicationControllerSpec

Returns a new instance of ReplicationControllerSpec.



5
6
7
8
9
# File 'lib/kubernetes/replication_controller_spec.rb', line 5

def initialize(data)
  @replicas = data.fetch("replicas")
  @selector = data.fetch("selector")
  @template = PodTemplateSpec.new(data.fetch("template"))
end