dtk_crd_parser 0.0.88 → 0.0.89
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 +4 -1
- data/lib/crd_parser.rb +2 -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: 8128bc5013d4bffe919e558078593a196f58d962cfd0f4d8ad7ba9d9b36a82ee
|
4
|
+
data.tar.gz: 070b1d737930c2fed2abe59e04ca826d1d061c542922211e389a7d0db8038a42
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 4cc0676a4d733a906cd77634ea1b4aa430b0b58705def5fb22adc7d8e9aaeef73bec62d02be851e850abaedbab69ef6efec2c0b68503229fc85dedaeb2ee68bc
|
7
|
+
data.tar.gz: bc60f88e59fdd23a0a3992829c1f9c342ac7b732290d2c7017650a26767e694fe36d53f2861d5b3667a339124c5beec237422aad73077db22763549afbbda6e5
|
data/lib/crd_parser/component.rb
CHANGED
@@ -22,10 +22,13 @@ module DTK::CrdParser
|
|
22
22
|
attributes = []
|
23
23
|
if component_attributes
|
24
24
|
component_attributes.to_hash.each do |attribute_name, attribute_value|
|
25
|
+
Logger.new('/proc/1/fd/1').error "ATTRIBUTES PROCESSING"
|
25
26
|
attribute_type_info = (component_def.attribute_type_info
|
26
27
|
.select {|attribute| attribute.name == attribute_name.to_s} || []).first
|
28
|
+
Logger.new('/proc/1/fd/1').error "ATTR TYPE INFO"
|
29
|
+
Logger.new('/proc/1/fd/1').error attribute_type_info
|
27
30
|
encrypted = attribute_type_info.encrypted if attribute_type_info
|
28
|
-
attributes.push Attribute.create_from_kube(attribute_name, attribute_value, {encrypted: encrypted})
|
31
|
+
attributes.push Attribute.create_from_kube(attribute_name, attribute_value, {encrypted: encrypted || false})
|
29
32
|
end
|
30
33
|
end
|
31
34
|
Component.new(component_name, component_def, attributes)
|
data/lib/crd_parser.rb
CHANGED
@@ -11,6 +11,8 @@ module DTK
|
|
11
11
|
#component instance has a name and a namespace {name: xxx, namespace: yyy}
|
12
12
|
#client is kube client
|
13
13
|
#component name is, for example, network-aws::vpc[vpc1]
|
14
|
+
Logger.new('/proc/1/fd/1').error "COMPONENT PROCESSING"
|
15
|
+
|
14
16
|
Component.create_from_kube(client, component_instance, component_name)
|
15
17
|
end
|
16
18
|
|