dtk_crd_parser 0.0.63 → 0.0.64
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.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: eae06c10e8810885d39f6f93a6b39298202bb58e
|
4
|
+
data.tar.gz: e8e4ecb9d2b3a299da40ed912e2557ec5ad0b15d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f0e18915b985751b2fb9b03430730bd08e85e175beb0ca3d1d2dbf75adfdbd4c8dc1fdccc2513aa6944236ead91dc99397f497f58f0d42da7097c89884e5e06c
|
7
|
+
data.tar.gz: b8213f054d96793d2af765b45fd057e41df364cec407c10d7874a39ac2431e25ef7009fd7c112503ab1979c4eeea52ecabbcba3bff0854271a18112a74c08804
|
data/lib/crd_parser/component.rb
CHANGED
@@ -13,6 +13,7 @@ module DTK::CrdParser
|
|
13
13
|
end
|
14
14
|
|
15
15
|
def self.create_from_kube(client, component_instance, component_name)
|
16
|
+
component_name.gsub!('_', '-')
|
16
17
|
component_instance_obj = client.get_component(component_instance[:name], component_instance[:namespace])
|
17
18
|
component_def = ComponentDef.create_from_kube(client, component_instance_obj, component_name)
|
18
19
|
component_attributes = getComponentAttributes(component_name, component_instance_obj[:spec][:components])
|
@@ -27,7 +28,6 @@ module DTK::CrdParser
|
|
27
28
|
protected
|
28
29
|
|
29
30
|
def self.getComponentAttributes(fullComponentName, components)
|
30
|
-
fullComponentName.gsub!('_', '-')
|
31
31
|
component = components.each do |component|
|
32
32
|
componentObj = component[fullComponentName]
|
33
33
|
if(componentObj && componentObj.is_a?(Kubeclient::Resource))
|