dtk_crd_parser 0.0.64 → 0.0.65
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 +5 -3
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 460780c0d1ab4e17303e5fe4a72bc3ef5451b921
|
4
|
+
data.tar.gz: 9fa32debc9d00253297a95973d20acc39eda44d7
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 4a78cc54b87406028dcae91971e0d42ee7c94a530de19ccbf4aaefe92e2decb40db0954624d181ff35ae2403117db45ef2b53ee087a5fd4a5c8a7e00f8c99865
|
7
|
+
data.tar.gz: 89787badc3b66aeb8ce71643678402585795be702b09df1f9092aa43fa7477d9d662090c7b20e95df6154a7ab11f50e65bce66f99c9c687b0500cca77944edb8
|
data/lib/crd_parser/component.rb
CHANGED
@@ -18,10 +18,12 @@ module DTK::CrdParser
|
|
18
18
|
component_def = ComponentDef.create_from_kube(client, component_instance_obj, component_name)
|
19
19
|
component_attributes = getComponentAttributes(component_name, component_instance_obj[:spec][:components])
|
20
20
|
attributes = []
|
21
|
-
|
22
|
-
|
21
|
+
if component_attributes
|
22
|
+
component_attributes.to_hash.each do |attribute_name, attribute_value|
|
23
|
+
attributes.push Attribute.create_from_kube(attribute_name, attribute_value)
|
24
|
+
end
|
23
25
|
end
|
24
|
-
|
26
|
+
Component.new(component_name, component_def, attributes)
|
25
27
|
end
|
26
28
|
|
27
29
|
|