dtk_crd_parser 0.0.107 → 0.0.108
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/base_class/helper_mixins.rb +0 -2
- data/lib/crd_parser/component.rb +5 -0
- 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: 05f9eb39988d3de4d05249d5532a627b911129dd65480eed0dfcd5a794102cbe
|
4
|
+
data.tar.gz: 9b7ec04a508ba3860f2c461495d65b2f691185452c5a42a4947309456b27f83b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
data/lib/crd_parser/component.rb
CHANGED
@@ -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
|