dtk_crd_parser 0.0.108 → 0.0.109
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/component.rb +4 -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: 3ca021ec1ec13ea462ea7fbf6e74e0db4fbd373ed5ea92a82649d3203bf2f9b8
|
4
|
+
data.tar.gz: 755ec2ca9054ee8087e836cbeba25fd1e67455256eece19daf72b3a0514998bc
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 29756afbe1fa398def5d8bddfd4cc9587869dbc531a7f4abc969b44a33eec63273be8e7433346901580cd8132b995e18bd4dbfe444c422539d0bdaffbf32fa71
|
7
|
+
data.tar.gz: 62fa2441f14085b25dd3b6b394996463a664cba5b0891e4171da97b31ee6f1f3f012e879626e56cf59a8973d6ee5d92747f0145b34f1c572812bb018a74cddf4
|
data/lib/crd_parser/component.rb
CHANGED
@@ -18,7 +18,9 @@ module DTK::CrdParser
|
|
18
18
|
component_name.gsub!('_', '-')
|
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
|
+
Logger.new('/proc/1/fd/1').info "Checking component attributes ..."
|
21
22
|
component_attributes = getComponentAttributes(component_name, component_instance_obj[:spec][:components])
|
23
|
+
Logger.new('/proc/1/fd/1').info "Component attributes are: "
|
22
24
|
Logger.new('/proc/1/fd/1').info component_attributes
|
23
25
|
component_attributes
|
24
26
|
attributes = []
|
@@ -37,12 +39,12 @@ module DTK::CrdParser
|
|
37
39
|
protected
|
38
40
|
|
39
41
|
def self.getComponentAttributes(fullComponentName, components)
|
42
|
+
Logger.new('/proc/1/fd/1').info "Get comp attr method"
|
40
43
|
component = (components || []).each do |component|
|
44
|
+
Logger.new('/proc/1/fd/1').info "Component is:"
|
41
45
|
Logger.new('/proc/1/fd/1').info component
|
42
46
|
componentObj = component[fullComponentName]
|
43
|
-
Logger.new('/proc/1/fd/1').info componentObj
|
44
47
|
if(componentObj && componentObj.is_a?(Kubeclient::Resource))
|
45
|
-
Logger.new('/proc/1/fd/1').info 'IF: YES'
|
46
48
|
return componentObj[:attributes]
|
47
49
|
end
|
48
50
|
end
|