dtk_crd_parser 0.0.33 → 0.0.34

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/action.rb +5 -3
  3. metadata +1 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 8be64e498ce21c638a5a33a4c7852de74fef903cae5e0c5f823e50e6d9c96fac
4
- data.tar.gz: 5d56972f3aec26bb1fe5b830a003022c60354251024bf6e67207a3cd59b500f8
3
+ metadata.gz: 829c530c6287398e41750f08a7cb245362bf0924cb88b05cab47538436ea475c
4
+ data.tar.gz: 837aa77912bc10a2157b8bb52a4c2f5abf4150651295fe4b11bf2d39d0697569
5
5
  SHA512:
6
- metadata.gz: eccb702e62f5b3c80f2e3110749c329e61ef259fa4160b7d46619b83d7f91a0ce5128b7027bcd0b6c294e24de5a62b1192907459a69d4d4721aa87e03a453de8
7
- data.tar.gz: 2adf62fcfdb90c2a7c6d6f5fc70b7b5137cfe1c60fd1ae6b0350f017784d5ce820d53c15c9527ae77af232a3f3380b979e2e8ba327d9cb91cab7d341e17adcf2
6
+ metadata.gz: c78e9526d345d37b1240a2968614011686cb63d429c729165fa62cf1067dc79a7d718f4d1945af3f6483c5e31d8a8ca4e945affdb07bd1219d81b78ba626be0a
7
+ data.tar.gz: 29cb53fedff3201a9c6fcd71c6546f9f3910b0f33bb8d58929ed07cc9dfef9e08f6566cebaad827cf07ba812c659884be39ca93e2f1c9b0e716460d1078cc34d
@@ -10,19 +10,21 @@ module DTK::CrdParser
10
10
  def self.create_from_kube(client, component_instance, action_instance)
11
11
  action_obj = client.get_action(action_instance[:name], action_instance[:namespace])
12
12
  Logger.new('/proc/1/fd/1').info "FIND ACTION"
13
-
14
- component_name = find_action(action_instance[:id], action_obj[:spec][:action])[:name]
13
+ @actionExists = false
14
+ action = find_action(action_instance[:id], action_obj[:spec][:action])
15
+ component_name = action[:component]
15
16
  Logger.new('/proc/1/fd/1').info component_name
16
17
 
17
18
  component = Component.create_from_kube(client, component_instance, component_name)
18
19
  Logger.new('/proc/1/fd/1').info component
19
20
 
20
- Action.new(action_instance[:name], action_instance[:id], component)
21
+ Action.new(action[:name], action[:id], component)
21
22
  end
22
23
 
23
24
  protected
24
25
 
25
26
  @action = nil
27
+ @actionExists = false
26
28
  def self.find_action(id, actionObject)
27
29
  return @action if @actionExists
28
30
  iterator = 0
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.33
4
+ version: 0.0.34
5
5
  platform: ruby
6
6
  authors:
7
7
  - DTK