Class: Kubes::Compiler::Dsl::Syntax::RoleBinding
- Inherits:
-
Resource
- Object
- Core::Base
- Resource
- Kubes::Compiler::Dsl::Syntax::RoleBinding
show all
- Defined in:
- lib/kubes/compiler/dsl/syntax/role_binding.rb
Instance Attribute Summary
Attributes inherited from Resource
#kind_from_block
Instance Method Summary
collapse
Methods inherited from Resource
#default_apiVersion, #default_kind, #default_metadata, #default_result, #default_result_append, #field, #top
#extract_type, #normalize_kind
Instance Method Details
#apiVersion ⇒ Object
12
13
14
|
# File 'lib/kubes/compiler/dsl/syntax/role_binding.rb', line 12
def apiVersion
"rbac.authorization.k8s.io/v1"
end
|
#default_apiGroup ⇒ Object
39
40
41
|
# File 'lib/kubes/compiler/dsl/syntax/role_binding.rb', line 39
def default_apiGroup
"rbac.authorization.k8s.io"
end
|
#default_roleKind ⇒ Object
35
36
37
|
# File 'lib/kubes/compiler/dsl/syntax/role_binding.rb', line 35
def default_roleKind
"Role"
end
|
#default_roleRef ⇒ Object
27
28
29
30
31
32
33
|
# File 'lib/kubes/compiler/dsl/syntax/role_binding.rb', line 27
def default_roleRef
{
apiGroup: apiGroup,
kind: roleKind,
name: roleName,
}
end
|
#default_top ⇒ Object
override superclass method - no spec
17
18
19
20
21
22
23
24
25
|
# File 'lib/kubes/compiler/dsl/syntax/role_binding.rb', line 17
def default_top
{
apiVersion: apiVersion,
kind: kind,
metadata: metadata,
roleRef: roleRef,
subjects: subjects,
}
end
|