dtk_crd_parser 0.0.30 → 0.0.31
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/action.rb +10 -1
- 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: 971db1e5d81997692d802e342b10ed199cde68c65820812b7b8bb19f8ced4399
|
4
|
+
data.tar.gz: 8c4395a709959067d939555c4796f76e15531ffe454a2f2bbacaab7025765a65
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 124a41517b031495cdf09c4c6713d8e68d91fab34317dd775c590e332355cf0903e59295b47dc08fbb4c04a0d513c732d2a128daa1f159faf314a1a709a972c1
|
7
|
+
data.tar.gz: 491929946a777669367736e7296093b4478086d02de22c84e50339494897e510ba7be1aa175e4af66fc7c0971a6aa81d7371415adc8bf59d6456b3c32f96e193
|
data/lib/crd_parser/action.rb
CHANGED
@@ -2,16 +2,25 @@ module DTK::CrdParser
|
|
2
2
|
class Action < BaseClass
|
3
3
|
|
4
4
|
def initialize(name, id, component)
|
5
|
+
Logger.new('/proc/1/fd/1').info "INITIALIZE"
|
6
|
+
|
5
7
|
@name = name #
|
6
8
|
@component = component #this wil point to the corresponding component
|
7
9
|
@id = id #action subtask id
|
8
10
|
end
|
9
11
|
|
10
12
|
def self.create_from_kube(client, component_instance, action_instance)
|
13
|
+
Logger.new('/proc/1/fd/1').info "GET ACTION"
|
11
14
|
action_obj = client.get_action(action_instance[:name], action_instance[:namespace])
|
12
|
-
|
15
|
+
Logger.new('/proc/1/fd/1').info action_instance[:id]
|
16
|
+
Logger.new('/proc/1/fd/1').info action_instance[:id].to_sym
|
17
|
+
|
13
18
|
component_name = action_obj[:spec][:action][:subtasks][action_instance[:id].to_sym]
|
19
|
+
Logger.new('/proc/1/fd/1').info component_name
|
20
|
+
|
14
21
|
component = Component.create_from_kube(client, component_instance, component_name)
|
22
|
+
Logger.new('/proc/1/fd/1').info component
|
23
|
+
|
15
24
|
Action.new(action_instance[:name], action_instance[:id], component)
|
16
25
|
end
|
17
26
|
|