dtk_crd_parser 0.0.107 → 0.0.108

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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 1a233391303f4495f2e22959a124be17cafa736dd9c4d9e2708855c56b226322
4
- data.tar.gz: dadf79a5a916f2438554dbb3eb64af010b41f70c78f9811b00504c36f6cc1fb5
3
+ metadata.gz: 05f9eb39988d3de4d05249d5532a627b911129dd65480eed0dfcd5a794102cbe
4
+ data.tar.gz: 9b7ec04a508ba3860f2c461495d65b2f691185452c5a42a4947309456b27f83b
5
5
  SHA512:
6
- metadata.gz: 03cf8dba3a5d4d89b9299f68662846cbe7f3873518bbd86f47a698d7e54e91587a84a67654c4f98041f11d33edebdf755f59858b35a02f5c16a7f61ac860e717
7
- data.tar.gz: b44886601604297c7e3f6e47ffdb2a12cda625a1efc2a27f24d47e98ceb60923aabc012a0e8398d85b5fb466133ca16360ab071fd9442f88cf847445adf9d993
6
+ metadata.gz: 433dc9d7516772cb4a03b0217f93b63b5f1783653e0b90d92b09f002556775f0d6f7563310e010e503d01ee7b41c793b635d70b4742dfbc93999ac316f705c78
7
+ data.tar.gz: 7145400022c1ba3cce8ee5ce5e2ce7ab846e2edffe9ee08f61e6e5cb8e7a710224ae50b50ae9bcd83b9bf278d0e059597dd1129599c7dc62114a61bbb552b371
@@ -28,8 +28,6 @@ module DTK::CrdParser
28
28
  end
29
29
 
30
30
  def decrypt_if_encrypted(data_to_decrypt, encrypted)
31
- Logger.new('/proc/1/fd/1').info "Encrypted is: #{encrypted}"
32
- Logger.new('/proc/1/fd/1').info "Data to decrypt is is: #{data_to_decrypt}"
33
31
  return nil unless data_to_decrypt
34
32
  return data_to_decrypt unless encrypted
35
33
  #get secret to get the key
@@ -19,6 +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
+ Logger.new('/proc/1/fd/1').info component_attributes
23
+ component_attributes
22
24
  attributes = []
23
25
  if component_attributes
24
26
  (component_attributes.to_hash || []).each do |attribute_name, attribute_value|
@@ -36,8 +38,11 @@ module DTK::CrdParser
36
38
 
37
39
  def self.getComponentAttributes(fullComponentName, components)
38
40
  component = (components || []).each do |component|
41
+ Logger.new('/proc/1/fd/1').info component
39
42
  componentObj = component[fullComponentName]
43
+ Logger.new('/proc/1/fd/1').info componentObj
40
44
  if(componentObj && componentObj.is_a?(Kubeclient::Resource))
45
+ Logger.new('/proc/1/fd/1').info 'IF: YES'
41
46
  return componentObj[:attributes]
42
47
  end
43
48
  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.107
4
+ version: 0.0.108
5
5
  platform: ruby
6
6
  authors:
7
7
  - DTK