Class: Kuby::Redis::DSL::Databases::V1::RedisFailoverSpecRedis

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

Instance Method Summary collapse

Instance Method Details

#kind_symObject



82
83
84
# File 'lib/kuby/redis/dsl/databases/v1/redis_failover_spec_redis.rb', line 82

def kind_sym
  :redis_failover_spec_redis
end

#serializeObject



55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
# File 'lib/kuby/redis/dsl/databases/v1/redis_failover_spec_redis.rb', line 55

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