Class: Nvoi::Configuration::Deployment
- Inherits:
-
Object
- Object
- Nvoi::Configuration::Deployment
- Defined in:
- lib/nvoi/configuration/deployment.rb
Overview
Deployment is the normalized service definition ready for deployment Created by Configuration::Database and Configuration::Service
Instance Attribute Summary collapse
-
#command ⇒ Object
Returns the value of attribute command.
-
#env ⇒ Object
Returns the value of attribute env.
-
#healthcheck ⇒ Object
Returns the value of attribute healthcheck.
-
#image ⇒ Object
Returns the value of attribute image.
-
#mounts ⇒ Object
Returns the value of attribute mounts.
-
#name ⇒ Object
Returns the value of attribute name.
-
#port ⇒ Object
Returns the value of attribute port.
-
#replicas ⇒ Object
Returns the value of attribute replicas.
-
#secrets ⇒ Object
Returns the value of attribute secrets.
-
#servers ⇒ Object
Returns the value of attribute servers.
-
#stateful_set ⇒ Object
Returns the value of attribute stateful_set.
Instance Method Summary collapse
-
#initialize(name:, image:, port: 0, command: [], env: nil, mounts: nil, replicas: 1, healthcheck: nil, stateful_set: false, secrets: nil, servers: []) ⇒ Deployment
constructor
A new instance of Deployment.
Constructor Details
#initialize(name:, image:, port: 0, command: [], env: nil, mounts: nil, replicas: 1, healthcheck: nil, stateful_set: false, secrets: nil, servers: []) ⇒ Deployment
Returns a new instance of Deployment.
11 12 13 14 15 16 17 18 19 20 21 22 23 24 |
# File 'lib/nvoi/configuration/deployment.rb', line 11 def initialize(name:, image:, port: 0, command: [], env: nil, mounts: nil, replicas: 1, healthcheck: nil, stateful_set: false, secrets: nil, servers: []) @name = name @image = image @port = port @command = command || [] @env = env || {} @mounts = mounts || {} @replicas = replicas @healthcheck = healthcheck @stateful_set = stateful_set @secrets = secrets || {} @servers = servers || [] end |
Instance Attribute Details
#command ⇒ Object
Returns the value of attribute command.
8 9 10 |
# File 'lib/nvoi/configuration/deployment.rb', line 8 def command @command end |
#env ⇒ Object
Returns the value of attribute env.
8 9 10 |
# File 'lib/nvoi/configuration/deployment.rb', line 8 def env @env end |
#healthcheck ⇒ Object
Returns the value of attribute healthcheck.
8 9 10 |
# File 'lib/nvoi/configuration/deployment.rb', line 8 def healthcheck @healthcheck end |
#image ⇒ Object
Returns the value of attribute image.
8 9 10 |
# File 'lib/nvoi/configuration/deployment.rb', line 8 def image @image end |
#mounts ⇒ Object
Returns the value of attribute mounts.
8 9 10 |
# File 'lib/nvoi/configuration/deployment.rb', line 8 def mounts @mounts end |
#name ⇒ Object
Returns the value of attribute name.
8 9 10 |
# File 'lib/nvoi/configuration/deployment.rb', line 8 def name @name end |
#port ⇒ Object
Returns the value of attribute port.
8 9 10 |
# File 'lib/nvoi/configuration/deployment.rb', line 8 def port @port end |
#replicas ⇒ Object
Returns the value of attribute replicas.
8 9 10 |
# File 'lib/nvoi/configuration/deployment.rb', line 8 def replicas @replicas end |
#secrets ⇒ Object
Returns the value of attribute secrets.
8 9 10 |
# File 'lib/nvoi/configuration/deployment.rb', line 8 def secrets @secrets end |
#servers ⇒ Object
Returns the value of attribute servers.
8 9 10 |
# File 'lib/nvoi/configuration/deployment.rb', line 8 def servers @servers end |
#stateful_set ⇒ Object
Returns the value of attribute stateful_set.
8 9 10 |
# File 'lib/nvoi/configuration/deployment.rb', line 8 def stateful_set @stateful_set end |