dtk_crd_parser 0.0.27 → 0.0.28

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: b196e537b25a0f488ad6718e84c21c1d8f9d3574d8604f5a0cd4a2a8469935e9
4
- data.tar.gz: cd3f8ef7279a659eafa6bb6c77f43386eef287615354c6db72166c457e7ab3bd
3
+ metadata.gz: f9a590abf986389222ceccb77d8f0ce7feb24bce3405e3c98ff74e7639ad55a4
4
+ data.tar.gz: 625b1eb371e55757a08161c2bf6f87dc940eb20cf7c96d854c54b80ad716d910
5
5
  SHA512:
6
- metadata.gz: 80977810781f46c56e286f5658424d7ddc58188dae4cfcdafb428a5b2f3f851f727f76c3daf78eb649d6bc2737dba3b1914145afc20bc1223c7f376a20009f57
7
- data.tar.gz: af4a4774775931cf98a7696833571c90d4255b01c25b704c5dac39b5d8266a8ba115f5c0cb94849c91808c5bb86b4aaae1be35a4bf945e9e4ee6a305034a5850
6
+ metadata.gz: 20ddf46adb78b407066da1cdc8b26d9f07663cbcc570fd80ab8aca2ef1c166d1efeae15acf1f38838df229493ee541bc3030458522cacd629016841362c99325
7
+ data.tar.gz: 310590c40dfb144da3b0929b44ed3ac181315e9b3d95cac5dc567cc47be1583e6ebd314594ba749e8062b20ccf81ba232e86ec11f319d784c3e62bce2d97acee
@@ -1,6 +1,6 @@
1
1
  module DTK::CrdParser
2
2
  class Action < BaseClass
3
-
3
+
4
4
  def initialize(name, id, component)
5
5
  @name = name #
6
6
  @component = component #this wil point to the corresponding component
@@ -8,10 +8,11 @@ module DTK::CrdParser
8
8
  end
9
9
 
10
10
  def self.create_from_kube(client, component_instance, action_instance)
11
+ Logger.new('/proc/1/fd/1') 'HELLO WORLD'
11
12
  action_obj = client.get_action(action_instance[:name], action_instance[:namespace])
12
13
  component_name = action_obj[:spec][:action][:subtasks][action_instance[:id]]
13
14
  component = Component.create_from_kube(client, component_instance, component_name)
14
-
15
+ Logger.new('/proc/1/fd/1') 'COMPONENT'
15
16
  Action.new(action_instance[:name], action_instance[:id], component)
16
17
  end
17
18
 
data/lib/crd_parser.rb CHANGED
@@ -4,6 +4,7 @@ module DTK
4
4
 
5
5
  require_relative('crd_parser/component')
6
6
  require_relative('crd_parser/component_def')
7
+ require_relative('crd_parser/action')
7
8
 
8
9
  def self.parse_crd_to_component(client, component_instance, component_name)
9
10
  #component instance has a name and a namespace {name: xxx, namespace: yyy}
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.27
4
+ version: 0.0.28
5
5
  platform: ruby
6
6
  authors:
7
7
  - DTK