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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 9ef3173237fce7df49533629d8ddfd619469a83a
4
- data.tar.gz: 9c23e67dadb300f050d5231c44019064bad31715
3
+ metadata.gz: 09c4a1cbf9b9f03d8c5b9ef0d91489b1126f42b7
4
+ data.tar.gz: 7ad82e5526d0b0aa5167288bb9c8858a91ab6239
5
5
  SHA512:
6
- metadata.gz: bd3f16364cc3d802f6889f7755caf5dc836c95c9862dc1f1acaadc9da21f7cfe7f7d767c9b3eb8a5fc6bf9f26652cbaca5a909f71fdd069d92a1f255637670b9
7
- data.tar.gz: bcd3fffa66af809f6542570c5b6ce44b8b37b12581a5299edf32855bc3dfdfe540e5d4d34326e919ea75eeb834140884a1e0d894e42eb491be49e33e76a86687
6
+ metadata.gz: 8cb54ac11512de2bf055d1880b8ed02bc32e20163dbacb471d8e478aef2a0d42a3ad4983ef06c31320a43548b8fa181d2c49a84d4842786a326eb5593af85305
7
+ data.tar.gz: 39e65ba0c5064b86277017300ad723710fe44b6b80b32238acb6ec4d519e22bf38d9423fa3a3009dde7b896251e74adc6450c69c8f63b130da2cbe3248ec2b32
@@ -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
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: dtk_crd_parser
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.131
4
+ version: 0.0.132
5
5
  platform: ruby
6
6
  authors:
7
7
  - DTK