class Kbt::Container

Attributes

command[R]
env[R]
image[R]
name[R]
template[R]

Public Class Methods

new(args = {}) click to toggle source
# File lib/kbt/container.rb, line 4
def initialize(args = {})
  @template = args.fetch(:template)
  @name = args.fetch(:name)
  @image = args.fetch(:image)
  @command = args.fetch(:command)
  @env = args.fetch(:env)
end

Public Instance Methods

call() click to toggle source
# File lib/kbt/container.rb, line 29
def call
end
overrides() click to toggle source
# File lib/kbt/container.rb, line 19
def overrides
  {
    "name"=> name,
    "image"=> image,
    "command" => command,
    "env" => env.to_h
  }
  # TODO add volumeMounts
end
to_h() click to toggle source
# File lib/kbt/container.rb, line 12
def to_h
  Fusu::Hash.deep_merge(
    template.value,
    overrides
  )
end