dtk_crd_parser 0.0.118 → 0.0.119
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 -8
- data/lib/crd_parser/component_def.rb +0 -2
- 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: '09f76186279f724068a8af9cc40ea26911f9ec21f2693e6d4832f182054826c3'
|
4
|
+
data.tar.gz: 02b20b98f5e8fba5896a0340d9a11d30e7238f7100eb599cb5714b4901c7c5d5
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 235167ca40dc072d872e186b97abdd339845d538e33616cac5dddd1f0890d5758f6f6bec3ae1a3e77c795494f3489f593e074f150dd933c632501ac351c442f2
|
7
|
+
data.tar.gz: 4f1275153aeff5045bba2dbe8d7f6324cd59e7ed7f26ad330f525c799dcc6f9f27e5587f38fbd6c670daaff835f3a0195a22ff209b5cdb73a0dfc613d66f7609
|
data/lib/crd_parser/component.rb
CHANGED
@@ -36,16 +36,9 @@ module DTK::CrdParser
|
|
36
36
|
protected
|
37
37
|
|
38
38
|
def self.getComponentAttributes(fullComponentName, components)
|
39
|
-
Logger.new('/proc/1/fd/1').error "Components: #{components}"
|
40
39
|
component = (components || []).each do |component|
|
41
40
|
name = (component.to_h).keys.first.to_s.gsub!('_', '-')
|
42
|
-
|
43
|
-
Logger.new('/proc/1/fd/1').error "Fullcomponentname: #{fullComponentName}"
|
44
|
-
|
45
|
-
if (fullComponentName == name)
|
46
|
-
componentObj = component[(component.to_h).keys.first.to_s]
|
47
|
-
end
|
48
|
-
Logger.new('/proc/1/fd/1').error "Componentobj: #{componentObj}"
|
41
|
+
componentObj = component[(component.to_h).keys.first.to_s] if (fullComponentName == name)
|
49
42
|
if(componentObj && componentObj.is_a?(Kubeclient::Resource))
|
50
43
|
return componentObj[:attributes]
|
51
44
|
end
|
@@ -28,8 +28,6 @@ module DTK::CrdParser
|
|
28
28
|
resourceVersion = componentMetadata[:resourceVersion]
|
29
29
|
|
30
30
|
componentDefSpec = componentDef[:spec] || {}
|
31
|
-
Logger.new('/proc/1/fd/1').info "Component def spec is: : #{componentDefSpec}"
|
32
|
-
|
33
31
|
if destructured_component[:action] && componentDefSpec[:actions]
|
34
32
|
componentDefAction = componentDefSpec[:actions][destructured_component[:action].to_sym]
|
35
33
|
else
|