dtk_crd_parser 0.0.19 → 0.0.20
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.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: c437e4384c0f54eb1abf8a422c2e0de2750494e0bce949abf169148d7e919b42
|
4
|
+
data.tar.gz: 283a6ad991d4806e7b8b7bc0057fa8c450075835bf4f454b90509c03b4ce7294
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 51256ed2e68690f2e4984542fda731b42c68e1f39b6357a937832bccf64a11ff292e55e7b1a0d4f824565a120b441838d3e7880c95324a84aeca94ca3f5bc284
|
7
|
+
data.tar.gz: 8e7ed67b747854f18ba87015b482b92fbf5d10c92aab6ec84addfeb367c547a1600a59705f184162f2c9aa70252831c7eff8ab0a51001568be0f2747cdf93f35
|
data/lib/crd_parser/component.rb
CHANGED
@@ -17,20 +17,22 @@ module DTK::CrdParser
|
|
17
17
|
Logger.new('/proc/1/fd/1').info component_attributes
|
18
18
|
attributes = []
|
19
19
|
component_attributes.each do |attr|
|
20
|
+
Logger.new('/proc/1/fd/1').info "ATTRIBUTE"
|
21
|
+
Logger.new('/proc/1/fd/1').info attr
|
20
22
|
attributes.push Attribute.create_from_kube(attr)
|
21
23
|
end
|
24
|
+
Logger.new('/proc/1/fd/1').info "ATTRIBUTES"
|
25
|
+
Logger.new('/proc/1/fd/1').info attributes
|
22
26
|
Component.new(component_name, component_def, attributes)
|
23
27
|
end
|
24
28
|
|
25
29
|
protected
|
26
30
|
|
27
31
|
def self.getComponentAttributes(fullComponentName, components)
|
28
|
-
Logger.new('/proc/1/fd/1').info 'COMPONENT ATTRIBUTES'
|
29
32
|
fullComponentName.gsub!('_', '-')
|
30
33
|
component = components.each do |component|
|
31
34
|
componentObj = component[fullComponentName]
|
32
35
|
if(componentObj && componentObj.is_a?(Kubeclient::Resource))
|
33
|
-
Logger.new('/proc/1/fd/1').info componentObj[:attributes]
|
34
36
|
return componentObj[:attributes]
|
35
37
|
end
|
36
38
|
end
|