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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 243650b8eb49153c0d62fba811d4ee825e091b1d463713dbe9cff4714e84cc3c
4
- data.tar.gz: 50822a3d05017b8b336cdb994b3a6f62499fed4c15c76f4b0a8c9b1a3a7e48d4
3
+ metadata.gz: 04f7516aa0086807ee7e2e00de1f8a12e02e55e884a173bf9864f492301e05fb
4
+ data.tar.gz: 530acd30634fba7a3fd4fcd987e1ab093f6ac0a0c698c950abf9522bf7aae4c0
5
5
  SHA512:
6
- metadata.gz: 290a55209de46108cfa475570b20f32817ee86cdd75c9cc5f017130fa84abd6b40751e011cd04583ab9a68ac8cf7cf9bc34f202bc26628d547e484ded0fbf913
7
- data.tar.gz: 4a4d7e22330e9e89edbba4e5eced28356113e2983b9d3c8bab8c4658f2705d3c3c54144dcd832956ffa18145642c8de00d74c6c68bfc7bcca0da28bb4c7b102d
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][component.action.to_sym]
32
+ componentDefAction = componentDefSpec[:actions][action.to_sym]
32
33
  componentDefAttributes = []
33
34
 
34
35
  componentDefSpec[:attributes].each do |attribute|
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.14
4
+ version: 0.0.15
5
5
  platform: ruby
6
6
  authors:
7
7
  - DTK