Class: KubeDSL::DSL::V1::EphemeralContainer

Inherits:
KubeDSL::DSLObject show all
Defined in:
lib/kube-dsl/dsl/v1/ephemeral_container.rb

Instance Method Summary collapse

Methods inherited from KubeDSL::DSLObject

#initialize, #to_resource

Methods included from ValueFields

extended

Methods included from Validations

extended

Constructor Details

This class inherits a constructor from KubeDSL::DSLObject

Instance Method Details

#kind_symObject



79
80
81
# File 'lib/kube-dsl/dsl/v1/ephemeral_container.rb', line 79

def kind_sym
  :ephemeral_container
end

#serializeObject



51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
# File 'lib/kube-dsl/dsl/v1/ephemeral_container.rb', line 51

def serialize
  {}.tap do |result|
    result[:args] = args
    result[:command] = command
    result[:env] = envs.map(&:serialize)
    result[:envFrom] = env_froms.map(&:serialize)
    result[:image] = image
    result[:imagePullPolicy] = image_pull_policy
    result[:lifecycle] = lifecycle.serialize
    result[:livenessProbe] = liveness_probe.serialize
    result[:name] = name
    result[:ports] = ports.map(&:serialize)
    result[:readinessProbe] = readiness_probe.serialize
    result[:resources] = resources.serialize
    result[:securityContext] = security_context.serialize
    result[:startupProbe] = startup_probe.serialize
    result[:stdin] = stdin
    result[:stdinOnce] = stdin_once
    result[:targetContainerName] = target_container_name
    result[:terminationMessagePath] = termination_message_path
    result[:terminationMessagePolicy] = termination_message_policy
    result[:tty] = tty
    result[:volumeDevices] = volume_devices.map(&:serialize)
    result[:volumeMounts] = volume_mounts.map(&:serialize)
    result[:workingDir] = working_dir
  end
end