dtk_crd_parser 0.0.170 → 0.0.171
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
- data/lib/crd_parser/component/attribute.rb +1 -1
- 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: 9696f32958f4f8a0614b61a28e4a7663c6bd6691cc94f2e44c3b56daac5ad664
|
4
|
+
data.tar.gz: 7fa6b5da4ebe520bd7e79f448a9fb5914be7b76e53636fc76712a5c659bb7cb2
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 9a750244af45bf3b30575feb66d95527a95b4e4570def27fb0401d086062614a0aee4fac8bca8a58cb983dce6e7511f529de2c7d0e9210ec7c59285ea3396204
|
7
|
+
data.tar.gz: 5fff059974609a5c3a1b64aba6fddaf2523721c70cb341c30bc9fd119c267c8d8b82257e1a74018e0c635319ce566c82584c1a686766b605747853aacf9abe46
|
data/lib/crd_parser/component.rb
CHANGED
@@ -32,7 +32,7 @@ module DTK::CrdParser
|
|
32
32
|
#set all attributes, not just ones with values
|
33
33
|
other_attrs = component_def.attribute_type_info.select {|attribute| attributes.find{|h| h.name.to_s == attribute.name.to_s }.nil?}
|
34
34
|
other_attrs.each do |attribute|
|
35
|
-
attributes.push Attribute.create_from_kube(attribute.name,
|
35
|
+
attributes.push Attribute.create_from_kube(attribute.name, nil, {encrypted: attribute.encrypted || false})
|
36
36
|
end
|
37
37
|
Component.new(component_name, component_def, attributes)
|
38
38
|
end
|
@@ -6,7 +6,7 @@ module DTK::CrdParser
|
|
6
6
|
|
7
7
|
def initialize(name, value, params = {})
|
8
8
|
@name = fail_if_nil(name, 'Attribute.name')
|
9
|
-
@value =
|
9
|
+
@value = decrypt_if_encrypted(value, params[:encrypted])
|
10
10
|
end
|
11
11
|
|
12
12
|
def self.create_from_kube(attribute_name, attribute_value, params)
|