Class: Kuby::Redis::DSL::Databases::V1::RedisFailoverSpecSentinel

Inherits:
KubeDSL::DSLObject
  • Object
show all
Defined in:
lib/kuby/redis/dsl/databases/v1/redis_failover_spec_sentinel.rb

Instance Method Summary collapse

Instance Method Details

#kind_symObject



70
71
72
# File 'lib/kuby/redis/dsl/databases/v1/redis_failover_spec_sentinel.rb', line 70

def kind_sym
  :redis_failover_spec_sentinel
end

#serializeObject



47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
# File 'lib/kuby/redis/dsl/databases/v1/redis_failover_spec_sentinel.rb', line 47

def serialize
  {}.tap do |result|
    result[:priorityClassName] = priority_class_name
    result[:dnsPolicy] = dns_policy
    result[:exporter] = exporter.serialize
    result[:securityContext] = security_context.serialize
    result[:serviceAccountName] = 
    result[:podAnnotations] = pod_annotations.serialize
    result[:image] = image
    result[:hostNetwork] = host_network
    result[:nodeSelector] = node_selector.serialize
    result[:tolerations] = tolerations.map(&:serialize)
    result[:serviceAnnotations] = service_annotations.serialize
    result[:command] = command
    result[:replicas] = replicas
    result[:imagePullPolicy] = image_pull_policy
    result[:affinity] = affinity.serialize
    result[:customConfig] = custom_config
    result[:imagePullSecrets] = image_pull_secrets.map(&:serialize)
    result[:resources] = resources.serialize
  end
end