dtk_crd_parser 0.0.122 → 0.0.123
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 +2 -1
- data/lib/crd_parser/component_def.rb +1 -1
- 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: 25d84550574398f93d2e127bb55a5630f2d9f95f9daaf79dacce27a45854fc50
|
4
|
+
data.tar.gz: 2605f9c7ac6cda06d8827a93aa8d5e06afd12346288d0b1a453f519b3e5a2499
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 8e515ad1b597f8f450181d9214d40edb0241decdc8913335a95700496df6e6d5d36931b241447b408e726f0e05f718c525862499285a9c8927660deb1a363668
|
7
|
+
data.tar.gz: ed461858f7f32dc3de7d5eda67ac039b9e0a448852e9355b5345065a6202041cc4da942135ec3dbd0e55f750f51df65ee73e6e12fd4fe2714ff64e371d304663
|
data/lib/crd_parser/component.rb
CHANGED
@@ -19,7 +19,8 @@ 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
|
-
|
22
|
+
Logger.new('/proc/1/fd/1').info "Destructure"
|
23
|
+
name_value = BaseClass::Helper::ClassAndInstanceMixin.destructureActionComponent(component_name)[:attributeName]
|
23
24
|
Logger.new('/proc/1/fd/1').info "Name value: #{name_value}"
|
24
25
|
attributes = []
|
25
26
|
attributes.push(Attribute.create_from_kube("name", name_value))
|
@@ -16,7 +16,7 @@ module DTK::CrdParser
|
|
16
16
|
end
|
17
17
|
|
18
18
|
def self.create_from_kube(client, component_instance, component_def_name)
|
19
|
-
destructured_component = BaseClass.destructureActionComponent(component_def_name)
|
19
|
+
destructured_component = BaseClass::Helper::ClassAndInstanceMixin.destructureActionComponent(component_def_name)
|
20
20
|
module_ref = resolveModuleReference(component_instance[:references][:module_refs], component_def_name, destructured_component[:moduleName])
|
21
21
|
|
22
22
|
componentDef = client.get_componentdef("#{destructured_component[:moduleName]}-#{destructured_component[:componentName]}", module_ref[:namespace])
|