Class: KubeDSL::DSL::V1::EphemeralContainer
Instance Method Summary
collapse
#initialize, #to_resource
extended
extended
Instance Method Details
#kind_sym ⇒ Object
79
80
81
|
# File 'lib/kube-dsl/dsl/v1/ephemeral_container.rb', line 79
def kind_sym
:ephemeral_container
end
|
#serialize ⇒ Object
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
|