dtk_crd_parser 0.0.33 → 0.0.34
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 +5 -3
- 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: 829c530c6287398e41750f08a7cb245362bf0924cb88b05cab47538436ea475c
|
4
|
+
data.tar.gz: 837aa77912bc10a2157b8bb52a4c2f5abf4150651295fe4b11bf2d39d0697569
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c78e9526d345d37b1240a2968614011686cb63d429c729165fa62cf1067dc79a7d718f4d1945af3f6483c5e31d8a8ca4e945affdb07bd1219d81b78ba626be0a
|
7
|
+
data.tar.gz: 29cb53fedff3201a9c6fcd71c6546f9f3910b0f33bb8d58929ed07cc9dfef9e08f6566cebaad827cf07ba812c659884be39ca93e2f1c9b0e716460d1078cc34d
|
data/lib/crd_parser/action.rb
CHANGED
@@ -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
|
-
|
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(
|
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
|