dtk_crd_parser 0.0.125 → 0.0.126
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/crd_parser/component/attribute.rb +1 -0
- data/lib/crd_parser/component.rb +2 -4
- 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: 4df901b01d68cb0985738a1102354597f3af6ba4e40a4323489ad81c70caac88
|
4
|
+
data.tar.gz: b33ec0d5cfcec83139a4cda7b2e17602d8e399553ec7b7241382998fdf7f6d03
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d28733255b9c1fc437f6ae40b717c2102f86ee63bf436aaaa9ec67774e20d3b71b58a832b30396e13988de0f3e36fa2b51dba6751ebc0d99d828231657d1da6e
|
7
|
+
data.tar.gz: 4f68afd3d92bc7ff5f8915548a47dca48422c6d83f74f177c8f045bca1baf29af711e546f366cf14e24962ac563cfa7c15d31d1671ead1c2ee6e9239869e8c3c
|
@@ -10,6 +10,7 @@ module DTK::CrdParser
|
|
10
10
|
end
|
11
11
|
|
12
12
|
def self.create_from_kube(attribute_name, attribute_value, params)
|
13
|
+
Logger.new('/proc/1/fd/1').info "Attribute name: #{attribute_name}, value: #{attribute_value}"
|
13
14
|
Attribute.new(attribute_name, attribute_value, params)
|
14
15
|
end
|
15
16
|
|
data/lib/crd_parser/component.rb
CHANGED
@@ -19,11 +19,9 @@ module DTK::CrdParser
|
|
19
19
|
component_instance_obj = client.get_component(component_instance[:name], component_instance[:namespace])
|
20
20
|
component_def = ComponentDef.create_from_kube(client, component_instance_obj, component_name)
|
21
21
|
component_attributes = getComponentAttributes(component_name, component_instance_obj[:spec][:components])
|
22
|
-
|
23
|
-
name_value = BaseClass::Helper::ClassAndInstanceMixin.destructureActionComponent(component_name)[:attributeName]
|
24
|
-
Logger.new('/proc/1/fd/1').info "Name value: #{name_value}"
|
22
|
+
attribute_name_value = BaseClass::Helper::ClassAndInstanceMixin.destructureActionComponent(component_name)[:attributeName]
|
25
23
|
attributes = []
|
26
|
-
attributes.push(Attribute.create_from_kube("name",
|
24
|
+
attributes.push(Attribute.create_from_kube("name", attribute_name_value, {}))
|
27
25
|
if component_attributes
|
28
26
|
(component_attributes.to_hash || []).each do |attribute_name, attribute_value|
|
29
27
|
attribute_type_info = (component_def.attribute_type_info
|