dtk_crd_parser 0.0.27 → 0.0.28
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.
- checksums.yaml +4 -4
- data/lib/crd_parser/action.rb +3 -2
- data/lib/crd_parser.rb +1 -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: f9a590abf986389222ceccb77d8f0ce7feb24bce3405e3c98ff74e7639ad55a4
|
4
|
+
data.tar.gz: 625b1eb371e55757a08161c2bf6f87dc940eb20cf7c96d854c54b80ad716d910
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 20ddf46adb78b407066da1cdc8b26d9f07663cbcc570fd80ab8aca2ef1c166d1efeae15acf1f38838df229493ee541bc3030458522cacd629016841362c99325
|
7
|
+
data.tar.gz: 310590c40dfb144da3b0929b44ed3ac181315e9b3d95cac5dc567cc47be1583e6ebd314594ba749e8062b20ccf81ba232e86ec11f319d784c3e62bce2d97acee
|
data/lib/crd_parser/action.rb
CHANGED
@@ -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}
|