dtk_crd_parser 0.0.44 → 0.0.45

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: bbb23a6509a68409dfa65e2f1b3be3ec1398d9eb52bf140dba8351741728e9e5
4
- data.tar.gz: 480c95c6f9db91bc00774c1176798e51b2cb3aaf7d367391df5632e8507209e0
3
+ metadata.gz: 20c9263b642c4112dea7091561fa1e5d11f807b6d080325c5a959242822084a0
4
+ data.tar.gz: 2a866a1fdd9428ef0ca12e6737ba8fd0cf7860366ec775e746c1513a1554584b
5
5
  SHA512:
6
- metadata.gz: 84d24834a49e1e716e12b9210c53b4b9172f3ebe606005636e12b7b80d7c0eafd376e5f22cf8c56d321e91a8ec81558458475ad9ec81974277c8eea9a2f8d52b
7
- data.tar.gz: 56edb7a125fdf3c5c8ddeb882c664c26ffd49d74b3f23e138d394241cb1c1262d97065e4345ef3542551e9f854b8b04b4b8969fd3f1c202ade998919ce7c43c5
6
+ metadata.gz: bcb81ea09f81ece2041273048f4b431a2f3503da54a0a0823b032be5018b600b330d7f2affa38000801e24cb74ed4ca6c43795a8142f351df6db170b1caa9ffa
7
+ data.tar.gz: 8b8b0a24e9e447243dd2e52f0fe066f2621af67df31a59a1675c6d3fce17a22011926ecce3a78eba4381ae6f554600956c038556e2d5692f5d32a95b4d7ddfb8
@@ -11,7 +11,7 @@ module DTK::CrdParser
11
11
  def self.create_from_kube(client, component_instance, component_name)
12
12
  Logger.new('/proc/1/fd/1').info 'Action.create_from-kube'
13
13
  component_obj = Component.create_from_kube(client, component_instance, component_name)
14
- Logger.new('/proc/1/fd/1').info "Component object is: #{component_obj}"
14
+ Logger.new('/proc/1/fd/1').info "Component object is: #{component_obj.to_hash}"
15
15
  actions = component_obj[:component_def][:executable_actions]
16
16
  Logger.new('/proc/1/fd/1').info "actions are: #{actions}"
17
17
  actions_hash = Hash.new
@@ -21,6 +21,8 @@ module DTK::CrdParser
21
21
  Component.new(component_name, component_def, attributes)
22
22
  end
23
23
 
24
+ attr_reader :name, :component_def, :attributes
25
+
24
26
  protected
25
27
 
26
28
  def self.getComponentAttributes(fullComponentName, components)
@@ -33,7 +35,5 @@ module DTK::CrdParser
33
35
  end
34
36
  return nil
35
37
  end
36
-
37
- attr_reader :name, :component_def, :attributes
38
38
  end
39
39
  end
@@ -4,7 +4,7 @@ module DTK::CrdParser
4
4
  require_relative('error')
5
5
 
6
6
  MODE_DEFAULT = :component_instance
7
-
7
+ attr_reader :name, :namespace, :executable_actions, :attribute_type_info
8
8
  def initialize(metadata, componentDefActions, componentDefAttributes)
9
9
  @name = fail_if_nil(metadata[:name], 'metadata[:name]')
10
10
  @namespace = fail_if_nil(metadata[:namespace], 'metadata[:namespace]')
@@ -85,7 +85,7 @@ module DTK::CrdParser
85
85
 
86
86
  protected
87
87
 
88
- attr_reader :name, :namespace, :resource_version, :attribute_type_info, :bash_script, :entrypoint, :type
88
+ attr_reader :resource_version, :attribute_type_info, :bash_script, :entrypoint, :type
89
89
 
90
90
  def self.metadata(componentDef)
91
91
  componentDef[:metadata]
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: dtk_crd_parser
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.44
4
+ version: 0.0.45
5
5
  platform: ruby
6
6
  authors:
7
7
  - DTK