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

extended

Methods included from Validations

extended

Constructor Details

This class inherits a constructor from KubeDSL::DSLObject

Instance Method Details

#kind_symObject



112
113
114
# File 'lib/kube-dsl/dsl/v1/pod_spec.rb', line 112

def kind_sym
  :pod_spec
end

#serializeObject



73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
# File 'lib/kube-dsl/dsl/v1/pod_spec.rb', line 73

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