dtk_crd_parser 0.0.14 → 0.0.15
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/component_def.rb +2 -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: 04f7516aa0086807ee7e2e00de1f8a12e02e55e884a173bf9864f492301e05fb
|
4
|
+
data.tar.gz: 530acd30634fba7a3fd4fcd987e1ab093f6ac0a0c698c950abf9522bf7aae4c0
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d26760a2139ba5450efeceb827f4d42d44a77ac1a6d5f201a40f55bb5038227db2a2560be6440a21991382e53b05a7f128eba978018ea6e89d8ec6692cceeeb5
|
7
|
+
data.tar.gz: edfea964c9d125b93d2a18e427c471e4d99f5dec9c04c380a8c5b2278dc86d73b9fd1e7b4f7dcbb39e0d83b6b19afac6ae94b7b63c28f610fc76dc941b624652
|
@@ -19,6 +19,7 @@ module DTK::CrdParser
|
|
19
19
|
def self.create_from_kube(client, component_instance, component_def_name)
|
20
20
|
module_name = destructureActionComponent(component_def_name)[:moduleName]
|
21
21
|
component_name = destructureActionComponent(component_def_name)[:componentName]
|
22
|
+
action = destructureActionComponent(component_def_name)[:action]
|
22
23
|
module_ref = resolveModuleReference(component_instance[:references][:module_refs], component_def_name, module_name)
|
23
24
|
|
24
25
|
componentDef = client.get_componentdef("#{module_name}-#{component_name}", module_ref[:namespace])
|
@@ -28,7 +29,7 @@ module DTK::CrdParser
|
|
28
29
|
resourceVersion = componentDef[:metadata][:namespace]
|
29
30
|
|
30
31
|
componentDefSpec = componentDef[:spec]
|
31
|
-
componentDefAction = componentDefSpec[:actions][
|
32
|
+
componentDefAction = componentDefSpec[:actions][action.to_sym]
|
32
33
|
componentDefAttributes = []
|
33
34
|
|
34
35
|
componentDefSpec[:attributes].each do |attribute|
|