dtk_crd_parser 0.0.18 → 0.0.19
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 +3 -5
- 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: dc11323140f0b8c1d6031741e2831085f967d7829e0a7c2f495401454d53e469
|
4
|
+
data.tar.gz: 4054ccafc1cc7bab8aaaf22b194e660ceb0d134e6be8828dd25f3105c7287bb2
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3a303eca5205ae86e62f63098cc7368fd8718b8bac56f80aa1a94b8ee18550fb2045c7a90cef0ca9b0ef54b66f63ebcbc308cc34c037d9e7426b76d8cdd61032
|
7
|
+
data.tar.gz: 4093f0186a7c7f364d434a7477f55b6d41b5047d29041cfeb07d913bf2392cec383befdc7284902898135ee4768e4eabd4fedd103dacc82655833b39517f424e
|
data/lib/crd_parser/component.rb
CHANGED
@@ -12,9 +12,9 @@ module DTK::CrdParser
|
|
12
12
|
def self.create_from_kube(client, component_instance, component_name)
|
13
13
|
component_instance_obj = client.get_component(component_instance[:name], component_instance[:namespace])
|
14
14
|
component_def = ComponentDef.create_from_kube(client, component_instance_obj, component_name)
|
15
|
-
Logger.new('/proc/1/fd/1').info 'GET..'
|
16
15
|
component_attributes = getComponentAttributes(component_name, component_instance_obj[:spec][:components])
|
17
|
-
|
16
|
+
Logger.new('/proc/1/fd/1').info "COMPONENT ATTRIBUTES"
|
17
|
+
Logger.new('/proc/1/fd/1').info component_attributes
|
18
18
|
attributes = []
|
19
19
|
component_attributes.each do |attr|
|
20
20
|
attributes.push Attribute.create_from_kube(attr)
|
@@ -27,12 +27,10 @@ module DTK::CrdParser
|
|
27
27
|
def self.getComponentAttributes(fullComponentName, components)
|
28
28
|
Logger.new('/proc/1/fd/1').info 'COMPONENT ATTRIBUTES'
|
29
29
|
fullComponentName.gsub!('_', '-')
|
30
|
-
Logger.new('/proc/1/fd/1').info 'COMPONENTS'
|
31
30
|
component = components.each do |component|
|
32
|
-
Logger.new('/proc/1/fd/1').info component
|
33
31
|
componentObj = component[fullComponentName]
|
34
|
-
Logger.new('/proc/1/fd/1').info componentObj
|
35
32
|
if(componentObj && componentObj.is_a?(Kubeclient::Resource))
|
33
|
+
Logger.new('/proc/1/fd/1').info componentObj[:attributes]
|
36
34
|
return componentObj[:attributes]
|
37
35
|
end
|
38
36
|
end
|