Class: KubeDSL::DSL::Rbac::V1::RoleBinding
Instance Method Summary
collapse
#initialize, #to_resource
extended
extended
Instance Method Details
#kind_sym ⇒ Object
21
22
23
|
# File 'lib/kube-dsl/dsl/rbac/v1/role_binding.rb', line 21
def kind_sym
:role_binding
end
|
#serialize ⇒ Object
11
12
13
14
15
16
17
18
19
|
# File 'lib/kube-dsl/dsl/rbac/v1/role_binding.rb', line 11
def serialize
{}.tap do |result|
result[:apiVersion] = "rbac.authorization.k8s.io/v1"
result[:kind] = "RoleBinding"
result[:metadata] = metadata.serialize
result[:roleRef] = role_ref.serialize
result[:subjects] = subjects.map(&:serialize)
end
end
|