dtk_crd_parser 0.0.38 → 0.0.39

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/lib/crd_parser/component.rb +5 -3
  3. metadata +1 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 9de80d9037e4bed45532b1b6da392468a42ee1db
4
- data.tar.gz: 190c410fa8e7631ab7c3d1d60b698113053211d6
3
+ metadata.gz: c8ceb73c7c7afa1da34bde108bf15f50935e219e
4
+ data.tar.gz: 3f96f18f547b482fc57ea9367b37d949632112bb
5
5
  SHA512:
6
- metadata.gz: 6b2feb0d6ed5df0c9d3cf8c5576d4ce2271db35e06ad16055f236a787917c963096a5b650201cab7258b207c32dc4a2426d66f9b787f7caeb4c6a47f32ab6bf2
7
- data.tar.gz: 2204a12dcd2573c1586dbd2d3b521e76a476652d11994ee9d43a0234e46daa740497b6a4c77c8899780b4e6587c0d065ebe62d6fee3faeb2bca88cc4b48f9ad6
6
+ metadata.gz: 42c0636f99184b6e3630f7cfd511268674cb00adec2d6ab96d2937a4332a707ee840b5eb25f58fe0bd7e96009917c18d93e81fbe871190e2285d180aa553fae6
7
+ data.tar.gz: d99c3a00a40dd812abd733dd1cad49357a6b0855e0765cd4b89eb637b720b5f066f7836b73d4317284db313a7ec137551f25943137cd74240231846d86438659
@@ -15,10 +15,12 @@ module DTK::CrdParser
15
15
  component_name.gsub!('_', '-')
16
16
  component_instance_obj = client.get_component(component_instance[:name], component_instance[:namespace])
17
17
  component_def = ComponentDef.create_from_kube(client, component_instance_obj, component_name)
18
- component_attributes = getComponentAttributes(component_name, component_instance_obj[:spec][:components]) || []
18
+ component_attributes = getComponentAttributes(component_name, component_instance_obj[:spec][:components])
19
19
  attributes = []
20
- component_attributes.to_hash.each do |attribute_name, attribute_value|
21
- attributes.push Attribute.create_from_kube(attribute_name, attribute_value)
20
+ if component_attributes
21
+ component_attributes.to_hash.each do |attribute_name, attribute_value|
22
+ attributes.push Attribute.create_from_kube(attribute_name, attribute_value)
23
+ end
22
24
  end
23
25
  Component.new(component_name, component_def, attributes)
24
26
  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.38
4
+ version: 0.0.39
5
5
  platform: ruby
6
6
  authors:
7
7
  - DTK