dtk_crd_parser 0.0.70 → 0.0.71
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: cf18fbed07eeb1a2635a7c03e0e570b70af1cb1f6e733ff3376f84fe7aca6f07
|
4
|
+
data.tar.gz: d0be05c29e9479e186522d9450dfb09027451dfdeac461c95cf2b725cdba2949
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 43f3f73fa05089c99f05ff26e3b9535f16ed00b78c4def10d047bf19c27dd07d7d13bd1209eb1de9961232e5a54df0cc50380dcd7f483774faa888289d86b88a
|
7
|
+
data.tar.gz: 6f011e815b8ae8509a251b8e737c9208da127a40726288e726404a4a34a219addd5f1ef710dae4e190f1fb3095e673dd6c81881b585e0e32a68f6ed4277b117a
|
data/lib/crd_parser/component.rb
CHANGED
@@ -28,10 +28,10 @@ module DTK::CrdParser
|
|
28
28
|
attributes = []
|
29
29
|
if component_attributes
|
30
30
|
component_attributes.to_hash.each do |attribute_name, attribute_value|
|
31
|
-
|
32
|
-
|
33
|
-
Logger.new('/proc/1/fd/1').info
|
34
|
-
encrypted =
|
31
|
+
Logger.new('/proc/1/fd/1').info component_def.methods-Object.methods
|
32
|
+
attrs = component_def[:attribute_type_info]
|
33
|
+
Logger.new('/proc/1/fd/1').info attrs
|
34
|
+
encrypted = attrs.select { |attribute|
|
35
35
|
attribute[:name] == attribute_name
|
36
36
|
}.first[:encrypted] || false
|
37
37
|
attributes.push Attribute.create_from_kube(attribute_name, attribute_value, {encrypted: encrypted})
|
@@ -2,7 +2,7 @@ module DTK::CrdParser
|
|
2
2
|
class ComponentDef
|
3
3
|
class AttributeTypeInfo < BaseClass
|
4
4
|
|
5
|
-
attr_reader :name, :type, :required, :dynamic
|
5
|
+
attr_reader :name, :type, :required, :dynamic, :encrypted
|
6
6
|
|
7
7
|
def initialize(params)
|
8
8
|
Logger.new('/proc/1/fd/1').info "AttrTypeInfo params"
|