Class: Kuby::Redis::DSL::Databases::V1::RedisFailoverSpecRedisSecurityContext

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

Instance Method Summary collapse

Instance Method Details

#kind_symObject



46
47
48
# File 'lib/kuby/redis/dsl/databases/v1/redis_failover_spec_redis_security_context.rb', line 46

def kind_sym
  :redis_failover_spec_redis_security_context
end

#serializeObject



31
32
33
34
35
36
37
38
39
40
41
42
43
44
# File 'lib/kuby/redis/dsl/databases/v1/redis_failover_spec_redis_security_context.rb', line 31

def serialize
  {}.tap do |result|
    result[:seccompProfile] = seccomp_profile.serialize
    result[:runAsGroup] = run_as_group
    result[:runAsUser] = run_as_user
    result[:supplementalGroups] = supplemental_groups
    result[:fsGroup] = fs_group
    result[:sysctls] = sysctls.map(&:serialize)
    result[:runAsNonRoot] = run_as_non_root
    result[:windowsOptions] = windows_options.serialize
    result[:seLinuxOptions] = se_linux_options.serialize
    result[:fsGroupChangePolicy] = fs_group_change_policy
  end
end