module DTK::CrdParser

Public Class Methods

parse_crd_to_actions(client, component_instance, component_name) click to toggle source
# 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) click to toggle source
# 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