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 +4 -4
- data/lib/crd_parser/action.rb +1 -1
- data/lib/crd_parser/component.rb +2 -2
- data/lib/crd_parser/component_def.rb +2 -2
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 20c9263b642c4112dea7091561fa1e5d11f807b6d080325c5a959242822084a0
|
4
|
+
data.tar.gz: 2a866a1fdd9428ef0ca12e6737ba8fd0cf7860366ec775e746c1513a1554584b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: bcb81ea09f81ece2041273048f4b431a2f3503da54a0a0823b032be5018b600b330d7f2affa38000801e24cb74ed4ca6c43795a8142f351df6db170b1caa9ffa
|
7
|
+
data.tar.gz: 8b8b0a24e9e447243dd2e52f0fe066f2621af67df31a59a1675c6d3fce17a22011926ecce3a78eba4381ae6f554600956c038556e2d5692f5d32a95b4d7ddfb8
|
data/lib/crd_parser/action.rb
CHANGED
@@ -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
|
data/lib/crd_parser/component.rb
CHANGED
@@ -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 :
|
88
|
+
attr_reader :resource_version, :attribute_type_info, :bash_script, :entrypoint, :type
|
89
89
|
|
90
90
|
def self.metadata(componentDef)
|
91
91
|
componentDef[:metadata]
|