Module: DTK::CrdParser

Defined in:
lib/crd_parser.rb,
lib/crd_parser/error.rb,
lib/crd_parser/action.rb,
lib/crd_parser/component.rb,
lib/crd_parser/base_class.rb,
lib/crd_parser/error/usage.rb,
lib/crd_parser/component_def.rb,
lib/crd_parser/component/attribute.rb,
lib/crd_parser/action/executable_action.rb,
lib/crd_parser/base_class/helper_mixins.rb,
lib/crd_parser/component_def/attribute_type_info.rb

Defined Under Namespace

Classes: Action, BaseClass, Component, ComponentDef, Error, ExecutableAction

Class Method Summary collapse

Class Method Details

.parse_crd_to_actions(client, component_instance, component_name) ⇒ Object



17
18
19
# File 'lib/crd_parser.rb', line 17

def self.parse_crd_to_actions(client, component_instance, component_name)
  Action.ndxExecutableActions(client, component_instance, component_name)
end

.parse_crd_to_component(client, component_instance, component_name) ⇒ Object



10
11
12
13
14
15
# File 'lib/crd_parser.rb', line 10

def self.parse_crd_to_component(client, component_instance, component_name) 
  #component instance has a name and a namespace {name: xxx, namespace: yyy}
  #client is kube client
  #component name is, for example, network-aws::vpc[vpc1]
  Component.create_from_kube(client, component_instance, component_name)
end