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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 4da61a463f394a05654d2dd2218bb6fa3139fd2ebb165a4a7a44f7f249658129
4
- data.tar.gz: b997820d11cc5bce8e32f889505ff25f033dc75f251dcb01df70153ee767ccb2
3
+ metadata.gz: 8128bc5013d4bffe919e558078593a196f58d962cfd0f4d8ad7ba9d9b36a82ee
4
+ data.tar.gz: 070b1d737930c2fed2abe59e04ca826d1d061c542922211e389a7d0db8038a42
5
5
  SHA512:
6
- metadata.gz: 94b0d589be88b9088328ff149eb3a8a347d1a7164d1811f95023b25724f814b3b6b8d47e7f0c461a26ff90809d1256b0c65eed1bef19b6abd31e028d1c439b97
7
- data.tar.gz: 7562997e841aa244a1fc727461862b326fc91478800529265aeb78812a3f1693bb9b80ce5155b2631149ca28011ce9243bda14e22aef9f1d7c1bb919e88b6e51
6
+ metadata.gz: 4cc0676a4d733a906cd77634ea1b4aa430b0b58705def5fb22adc7d8e9aaeef73bec62d02be851e850abaedbab69ef6efec2c0b68503229fc85dedaeb2ee68bc
7
+ data.tar.gz: bc60f88e59fdd23a0a3992829c1f9c342ac7b732290d2c7017650a26767e694fe36d53f2861d5b3667a339124c5beec237422aad73077db22763549afbbda6e5
@@ -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
 
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.88
4
+ version: 0.0.89
5
5
  platform: ruby
6
6
  authors:
7
7
  - DTK