Class: Kubes::Compiler::Dsl::Syntax::RoleBinding

Inherits:
Resource
  • Object
show all
Defined in:
lib/kubes/compiler/dsl/syntax/role_binding.rb

Direct Known Subclasses

ClusterRoleBinding

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

Methods included from Util::Normalize

#extract_type, #normalize_kind

Instance Method Details

#apiVersionObject



12
13
14
# File 'lib/kubes/compiler/dsl/syntax/role_binding.rb', line 12

def apiVersion
  "rbac.authorization.k8s.io/v1"
end

#default_apiGroupObject



39
40
41
# File 'lib/kubes/compiler/dsl/syntax/role_binding.rb', line 39

def default_apiGroup
  "rbac.authorization.k8s.io"
end

#default_roleKindObject



35
36
37
# File 'lib/kubes/compiler/dsl/syntax/role_binding.rb', line 35

def default_roleKind
  "Role"
end

#default_roleRefObject



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_topObject

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: ,
    roleRef: roleRef,
    subjects: subjects,
  }
end