Class: KubeDSL::DSL::V1::PodSpec
Instance Method Summary
collapse
#initialize, #to_resource
extended
extended
Instance Method Details
#kind_sym ⇒ Object
119
120
121
|
# File 'lib/kube-dsl/dsl/v1/pod_spec.rb', line 119
def kind_sym
:pod_spec
end
|
#serialize ⇒ Object
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
111
112
113
114
115
116
117
|
# File 'lib/kube-dsl/dsl/v1/pod_spec.rb', line 79
def serialize
{}.tap do |result|
result[:activeDeadlineSeconds] = active_deadline_seconds
result[:affinity] = affinity.serialize
result[:automountServiceAccountToken] = automount_service_account_token
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] = service_account
result[:serviceAccountName] = service_account_name
result[:setHostnameAsFQDN] = set_hostname_as_fqdn
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
|