Class: KubeDSL::DSL::V1::PodSpec

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

Instance Method Summary collapse

Methods inherited from KubeDSL::DSLObject

#initialize, #to_resource

Methods included from ValueFields

#array_field, #object_field, #value_field, #value_fields

Constructor Details

This class inherits a constructor from KubeDSL::DSLObject

Instance Method Details

#kind_symObject



58
59
60
# File 'lib/kube-dsl/dsl/v1/pod_spec.rb', line 58

def kind_sym
  :pod_spec
end

#serializeObject



19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
# File 'lib/kube-dsl/dsl/v1/pod_spec.rb', line 19

def serialize
  {}.tap do |result|
    result[:activeDeadlineSeconds] = active_deadline_seconds
    result[:automountServiceAccountToken] = 
    result[:dnsPolicy] = dns_policy
    result[:enableServiceLinks] = enable_service_links
    result[:hostIPC] = host_ipc
    result[:hostNetwork] = host_network
    result[:hostPID] = host_pid
    result[:hostname] = hostname
    result[:nodeName] = node_name
    result[:preemptionPolicy] = preemption_policy
    result[:priority] = priority
    result[:priorityClassName] = priority_class_name
    result[:restartPolicy] = restart_policy
    result[:runtimeClassName] = runtime_class_name
    result[:schedulerName] = scheduler_name
    result[:serviceAccount] = 
    result[:serviceAccountName] = 
    result[:shareProcessNamespace] = share_process_namespace
    result[:subdomain] = subdomain
    result[:terminationGracePeriodSeconds] = termination_grace_period_seconds
    result[:containers] = containers.map(&:serialize)
    result[:ephemeralContainers] = ephemeral_containers.map(&:serialize)
    result[:hostAliases] = host_aliases.map(&:serialize)
    result[:imagePullSecrets] = image_pull_secrets.map(&:serialize)
    result[:initContainers] = init_containers.map(&:serialize)
    result[:readinessGates] = readiness_gates.map(&:serialize)
    result[:tolerations] = tolerations.map(&:serialize)
    result[:topologySpreadConstraints] = topology_spread_constraints.map(&:serialize)
    result[:volumes] = volumes.map(&:serialize)
    result[:affinity] = affinity.serialize
    result[:dnsConfig] = dns_config.serialize
    result[:securityContext] = security_context.serialize
    result[:nodeSelector] = node_selector.serialize
    result[:overhead] = overhead.serialize
  end
end