dtk_crd_parser 0.0.131 → 0.0.132
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 +1 -0
- data/lib/crd_parser/component_def.rb +1 -1
- 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: 09c4a1cbf9b9f03d8c5b9ef0d91489b1126f42b7
|
4
|
+
data.tar.gz: 7ad82e5526d0b0aa5167288bb9c8858a91ab6239
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 8cb54ac11512de2bf055d1880b8ed02bc32e20163dbacb471d8e478aef2a0d42a3ad4983ef06c31320a43548b8fa181d2c49a84d4842786a326eb5593af85305
|
7
|
+
data.tar.gz: 39e65ba0c5064b86277017300ad723710fe44b6b80b32238acb6ec4d519e22bf38d9423fa3a3009dde7b896251e74adc6450c69c8f63b130da2cbe3248ec2b32
|
data/lib/crd_parser/component.rb
CHANGED
@@ -15,6 +15,7 @@ module DTK::CrdParser
|
|
15
15
|
end
|
16
16
|
|
17
17
|
def self.create_from_kube(client, component_instance, component_name)
|
18
|
+
component_name.gsub!('_', '-')
|
18
19
|
component_instance_obj = client.get_component(component_instance[:name], component_instance[:namespace])
|
19
20
|
component_def = ComponentDef.create_from_kube(client, component_instance_obj, component_name)
|
20
21
|
component_attributes = getComponentAttributes(component_name, component_instance_obj[:spec][:components])
|
@@ -52,7 +52,7 @@ module DTK::CrdParser
|
|
52
52
|
|
53
53
|
def self.resolveModuleReference(module_refs, component_full_name, module_name)
|
54
54
|
raise "There are no module refs for component #{component_full_name} in component instance." if module_refs.nil?
|
55
|
-
module_ref = module_refs.find { |module_ref| module_ref[:name] == module_name }
|
55
|
+
module_ref = module_refs.find { |module_ref| module_ref[:name].gsub!('_', '-') == module_name.gsub!('_', '-') }
|
56
56
|
if(module_ref.nil?)
|
57
57
|
raise "Could not resolve module reference for component #{component_full_name} in component instance. Expected to find: #{module_name}"
|
58
58
|
end
|