kube-dsl 0.7.1 → 0.7.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile +3 -2
- data/Rakefile +0 -1
- data/lib/kube-dsl/allow_blank.rb +1 -0
- data/lib/kube-dsl/dsl/v1/pod_security_context.rb +1 -1
- data/lib/kube-dsl/object_field_res.rb +4 -1
- data/lib/kube-dsl/resource.rb +1 -1
- data/lib/kube-dsl/resource_meta.rb +4 -0
- data/lib/kube-dsl/serialize_handler.rb +1 -1
- data/lib/kube-dsl/version.rb +1 -1
- data/rbi/kube-dsl.rbi +3793 -10
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 2932064fb6c82c612248313f1fd0c24cf878e8e85d54f14e19d64aa2c1a51ae1
|
4
|
+
data.tar.gz: 417677a4fa12b37099a1fe650f0abf2b6a01330f09526c39a68e52bdccf06935
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 7cb08079dccbf9bd1744e535ab5db716052048a0d89b7e56986a1f5eec32a48832da9271747d6af21ed56667304f6f3258ad1f70387fee67b53ff4db48104bad
|
7
|
+
data.tar.gz: 8eb398de8117dc33fe5cde6333056eda4c18f1cf0b53dd19f9face1a26c452561755327d34e0f30404d8fb1d5027938b7d92c8cbb0ae7e443bd2ce15d0bc9ffa
|
data/Gemfile
CHANGED
@@ -9,8 +9,9 @@ end
|
|
9
9
|
|
10
10
|
group :development do
|
11
11
|
# lock to a specific version to prevent breaking CI when new versions come out
|
12
|
-
gem 'sorbet'
|
13
|
-
gem '
|
12
|
+
gem 'sorbet'
|
13
|
+
gem 'tapioca', '~> 0.7'
|
14
|
+
gem 'parlour', github: 'camertron/parlour', branch: 'initialize_void' # '~> 7.0'
|
14
15
|
end
|
15
16
|
|
16
17
|
group :test do
|
data/Rakefile
CHANGED
data/lib/kube-dsl/allow_blank.rb
CHANGED
@@ -22,7 +22,7 @@ module KubeDSL
|
|
22
22
|
validates :run_as_user, field: { format: :integer }, presence: false
|
23
23
|
validates :se_linux_options, object: { kind_of: KubeDSL::DSL::V1::SELinuxOptions }
|
24
24
|
validates :seccomp_profile, object: { kind_of: KubeDSL::DSL::V1::SeccompProfile }
|
25
|
-
validates :supplemental_groups, field: { format: :
|
25
|
+
validates :supplemental_groups, field: { format: :integer }, presence: false
|
26
26
|
validates :sysctlses, array: { kind_of: KubeDSL::DSL::V1::Sysctl }, presence: false
|
27
27
|
validates :windows_options, object: { kind_of: KubeDSL::DSL::V1::WindowsSecurityContextOptions }
|
28
28
|
|
@@ -19,7 +19,10 @@ module KubeDSL
|
|
19
19
|
def fields_to_rbi(_inflector)
|
20
20
|
[
|
21
21
|
"T::Sig::WithoutRuntime.sig { returns(#{ruby_type}) }",
|
22
|
-
"def #{ruby_safe_name}; end"
|
22
|
+
"def #{ruby_safe_name}; end",
|
23
|
+
"",
|
24
|
+
"T::Sig::WithoutRuntime.sig { returns(T::Boolean) }",
|
25
|
+
"def #{ruby_safe_name}_present?; end"
|
23
26
|
]
|
24
27
|
end
|
25
28
|
|
data/lib/kube-dsl/resource.rb
CHANGED
@@ -58,6 +58,10 @@ module KubeDSL
|
|
58
58
|
indent("module #{mod}", idx)
|
59
59
|
end,
|
60
60
|
*indent("class #{ref.kind} < ::KubeDSL::DSLObject", level + 1),
|
61
|
+
*indent("extend KubeDSL::ValueFields::ClassMethods", level + 2),
|
62
|
+
*indent("extend KubeDSL::Validations::ClassMethods", level + 2),
|
63
|
+
*indent("include KubeDSL::ValueFields::InstanceMethods", level + 2),
|
64
|
+
'',
|
61
65
|
*indent(
|
62
66
|
'T::Sig::WithoutRuntime.sig {',
|
63
67
|
' returns(',
|
data/lib/kube-dsl/version.rb
CHANGED