dtk_crd_parser 0.0.110 → 0.0.111
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 +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: 7fcfebdd0c07555f28be8106134a1b2ed7d838525417b6277317f0ee8000c39c
|
4
|
+
data.tar.gz: ed5ca8588d797cb8f61e1499a8731ae3bef138a15adcdfc53e39c17ef87bdd5d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 7d73861e22ee4b2b97cd743e149f756d2a89fd2925e0ec5962469334b91a6fd41ebcd2290dd50edddbdcb6690947fccf26100098809c9dae4767cdc8811186b5
|
7
|
+
data.tar.gz: e03803823d33911ad2aaf156277181b4414c8f3f949887d6584e7de710d4635150e1a60d3947968359dbc9ccae1b56e30155e223d938c278f38d9be0d3e5961b
|
data/lib/crd_parser/component.rb
CHANGED
@@ -36,9 +36,11 @@ module DTK::CrdParser
|
|
36
36
|
protected
|
37
37
|
|
38
38
|
def self.getComponentAttributes(fullComponentName, components)
|
39
|
-
component = (components || []).each do |component|
|
40
|
-
|
41
|
-
|
39
|
+
component = (components || []).each do |name, component|
|
40
|
+
name.gsub!('_', '-')
|
41
|
+
if (name == fullComponentName)
|
42
|
+
componentObj = component
|
43
|
+
end
|
42
44
|
Logger.new('/proc/1/fd/1').error "Componentobj: #{componentObj}"
|
43
45
|
if(componentObj && componentObj.is_a?(Kubeclient::Resource))
|
44
46
|
return componentObj[:attributes]
|