kube-dsl 0.1.0 → 0.2.0
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 +4 -4
- data/CHANGELOG.md +5 -0
- data/lib/kube-dsl/builder.rb +1 -1
- data/lib/kube-dsl/dsl/admissionregistration/v1/mutating_webhook.rb +2 -3
- data/lib/kube-dsl/dsl/admissionregistration/v1/rule_with_operations.rb +2 -6
- data/lib/kube-dsl/dsl/admissionregistration/v1/validating_webhook.rb +2 -3
- data/lib/kube-dsl/dsl/admissionregistration/v1beta1/mutating_webhook.rb +2 -3
- data/lib/kube-dsl/dsl/admissionregistration/v1beta1/rule_with_operations.rb +2 -6
- data/lib/kube-dsl/dsl/admissionregistration/v1beta1/validating_webhook.rb +2 -3
- data/lib/kube-dsl/dsl/apiextensions/v1/custom_resource_definition_names.rb +3 -5
- data/lib/kube-dsl/dsl/apiextensions/v1/custom_resource_definition_status.rb +2 -2
- data/lib/kube-dsl/dsl/apiextensions/v1/json_schema_props.rb +3 -5
- data/lib/kube-dsl/dsl/apiextensions/v1/webhook_conversion.rb +1 -1
- data/lib/kube-dsl/dsl/apiextensions/v1beta1/custom_resource_conversion.rb +2 -3
- data/lib/kube-dsl/dsl/apiextensions/v1beta1/custom_resource_definition_names.rb +3 -5
- data/lib/kube-dsl/dsl/apiextensions/v1beta1/custom_resource_definition_status.rb +2 -2
- data/lib/kube-dsl/dsl/apiextensions/v1beta1/json_schema_props.rb +3 -5
- data/lib/kube-dsl/dsl/auditregistration/v1alpha1/policy.rb +1 -2
- data/lib/kube-dsl/dsl/authentication/v1/token_request_spec.rb +2 -3
- data/lib/kube-dsl/dsl/authentication/v1/token_review_spec.rb +2 -3
- data/lib/kube-dsl/dsl/authentication/v1/token_review_status.rb +2 -3
- data/lib/kube-dsl/dsl/authentication/v1/user_info.rb +2 -3
- data/lib/kube-dsl/dsl/authentication/v1beta1/token_review_spec.rb +2 -3
- data/lib/kube-dsl/dsl/authentication/v1beta1/token_review_status.rb +2 -3
- data/lib/kube-dsl/dsl/authentication/v1beta1/user_info.rb +2 -3
- data/lib/kube-dsl/dsl/authorization/v1/non_resource_rule.rb +2 -3
- data/lib/kube-dsl/dsl/authorization/v1/resource_rule.rb +1 -4
- data/lib/kube-dsl/dsl/authorization/v1/subject_access_review_spec.rb +2 -3
- data/lib/kube-dsl/dsl/authorization/v1beta1/non_resource_rule.rb +2 -3
- data/lib/kube-dsl/dsl/authorization/v1beta1/resource_rule.rb +1 -4
- data/lib/kube-dsl/dsl/authorization/v1beta1/subject_access_review_spec.rb +2 -3
- data/lib/kube-dsl/dsl/certificates/v1beta1/certificate_signing_request_spec.rb +3 -5
- data/lib/kube-dsl/dsl/discovery/v1beta1/endpoint.rb +2 -3
- data/lib/kube-dsl/dsl/extensions/v1beta1/ingress_tls.rb +2 -3
- data/lib/kube-dsl/dsl/extensions/v1beta1/ip_block.rb +2 -3
- data/lib/kube-dsl/dsl/extensions/v1beta1/network_policy_spec.rb +2 -2
- data/lib/kube-dsl/dsl/extensions/v1beta1/pod_security_policy_spec.rb +8 -15
- data/lib/kube-dsl/dsl/extensions/v1beta1/runtime_class_strategy_options.rb +2 -3
- data/lib/kube-dsl/dsl/flowcontrol/v1alpha1/non_resource_policy_rule.rb +2 -3
- data/lib/kube-dsl/dsl/flowcontrol/v1alpha1/resource_policy_rule.rb +2 -6
- data/lib/kube-dsl/dsl/meta/v1/api_resource.rb +4 -7
- data/lib/kube-dsl/dsl/meta/v1/api_versions.rb +2 -2
- data/lib/kube-dsl/dsl/meta/v1/delete_options.rb +2 -3
- data/lib/kube-dsl/dsl/meta/v1/label_selector_requirement.rb +1 -2
- data/lib/kube-dsl/dsl/meta/v1/object_meta.rb +2 -3
- data/lib/kube-dsl/dsl/networking/v1/ip_block.rb +2 -3
- data/lib/kube-dsl/dsl/networking/v1/network_policy_spec.rb +2 -2
- data/lib/kube-dsl/dsl/networking/v1beta1/ingress_tls.rb +2 -3
- data/lib/kube-dsl/dsl/policy/v1beta1/pod_security_policy_spec.rb +8 -15
- data/lib/kube-dsl/dsl/policy/v1beta1/runtime_class_strategy_options.rb +2 -3
- data/lib/kube-dsl/dsl/rbac/v1/policy_rule.rb +2 -6
- data/lib/kube-dsl/dsl/rbac/v1alpha1/policy_rule.rb +2 -6
- data/lib/kube-dsl/dsl/rbac/v1beta1/policy_rule.rb +2 -6
- data/lib/kube-dsl/dsl/storage/v1/csi_node_driver.rb +1 -2
- data/lib/kube-dsl/dsl/storage/v1/storage_class.rb +2 -3
- data/lib/kube-dsl/dsl/storage/v1beta1/csi_driver_spec.rb +1 -2
- data/lib/kube-dsl/dsl/storage/v1beta1/csi_node_driver.rb +1 -2
- data/lib/kube-dsl/dsl/storage/v1beta1/storage_class.rb +2 -3
- data/lib/kube-dsl/dsl/v1/capabilities.rb +3 -4
- data/lib/kube-dsl/dsl/v1/ceph_fs_persistent_volume_source.rb +2 -3
- data/lib/kube-dsl/dsl/v1/ceph_fs_volume_source.rb +2 -3
- data/lib/kube-dsl/dsl/v1/container.rb +3 -5
- data/lib/kube-dsl/dsl/v1/container_image.rb +2 -3
- data/lib/kube-dsl/dsl/v1/ephemeral_container.rb +3 -5
- data/lib/kube-dsl/dsl/v1/exec_action.rb +2 -2
- data/lib/kube-dsl/dsl/v1/fc_volume_source.rb +2 -4
- data/lib/kube-dsl/dsl/v1/host_alias.rb +2 -3
- data/lib/kube-dsl/dsl/v1/iscsi_persistent_volume_source.rb +2 -3
- data/lib/kube-dsl/dsl/v1/iscsi_volume_source.rb +2 -3
- data/lib/kube-dsl/dsl/v1/namespace_spec.rb +1 -1
- data/lib/kube-dsl/dsl/v1/node_selector_requirement.rb +1 -2
- data/lib/kube-dsl/dsl/v1/node_spec.rb +2 -3
- data/lib/kube-dsl/dsl/v1/node_status.rb +2 -3
- data/lib/kube-dsl/dsl/v1/persistent_volume_claim_spec.rb +2 -3
- data/lib/kube-dsl/dsl/v1/persistent_volume_claim_status.rb +2 -3
- data/lib/kube-dsl/dsl/v1/persistent_volume_spec.rb +3 -5
- data/lib/kube-dsl/dsl/v1/pod_affinity_term.rb +2 -3
- data/lib/kube-dsl/dsl/v1/pod_dns_config.rb +2 -3
- data/lib/kube-dsl/dsl/v1/pod_security_context.rb +1 -2
- data/lib/kube-dsl/dsl/v1/rbd_persistent_volume_source.rb +2 -3
- data/lib/kube-dsl/dsl/v1/rbd_volume_source.rb +2 -3
- data/lib/kube-dsl/dsl/v1/resource_quota_spec.rb +1 -1
- data/lib/kube-dsl/dsl/v1/scoped_resource_selector_requirement.rb +1 -2
- data/lib/kube-dsl/dsl/v1/service_spec.rb +4 -7
- data/lib/kube-dsl/dsl/v1/topology_selector_label_requirement.rb +1 -2
- data/lib/kube-dsl/version.rb +1 -1
- metadata +2 -2
@@ -1,17 +1,10 @@
|
|
1
1
|
module KubeDSL::DSL::Policy::V1beta1
|
2
2
|
class PodSecurityPolicySpec < ::KubeDSL::DSLObject
|
3
|
-
value_fields :allow_privilege_escalation, :default_allow_privilege_escalation, :host_ipc, :host_network, :host_pid, :privileged, :read_only_root_filesystem
|
3
|
+
value_fields :allow_privilege_escalation, :allowed_capabilities, :allowed_proc_mount_types, :allowed_unsafe_sysctls, :default_add_capabilities, :default_allow_privilege_escalation, :forbidden_sysctls, :host_ipc, :host_network, :host_pid, :privileged, :read_only_root_filesystem, :required_drop_capabilities, :volumes
|
4
4
|
array_field(:allowed_csi_driver) { KubeDSL::DSL::Policy::V1beta1::AllowedCSIDriver.new }
|
5
|
-
array_field :allowed_capability
|
6
5
|
array_field(:allowed_flex_volume) { KubeDSL::DSL::Policy::V1beta1::AllowedFlexVolume.new }
|
7
6
|
array_field(:allowed_host_path) { KubeDSL::DSL::Policy::V1beta1::AllowedHostPath.new }
|
8
|
-
array_field :allowed_proc_mount_type
|
9
|
-
array_field :allowed_unsafe_sysctls
|
10
|
-
array_field :default_add_capability
|
11
|
-
array_field :forbidden_sysctls
|
12
7
|
array_field(:host_port) { KubeDSL::DSL::Policy::V1beta1::HostPortRange.new }
|
13
|
-
array_field :required_drop_capability
|
14
|
-
array_field :volume
|
15
8
|
object_field(:fs_group) { KubeDSL::DSL::Policy::V1beta1::FSGroupStrategyOptions.new }
|
16
9
|
object_field(:run_as_group) { KubeDSL::DSL::Policy::V1beta1::RunAsGroupStrategyOptions.new }
|
17
10
|
object_field(:run_as_user) { KubeDSL::DSL::Policy::V1beta1::RunAsUserStrategyOptions.new }
|
@@ -22,23 +15,23 @@ module KubeDSL::DSL::Policy::V1beta1
|
|
22
15
|
def serialize
|
23
16
|
{}.tap do |result|
|
24
17
|
result[:allowPrivilegeEscalation] = allow_privilege_escalation
|
18
|
+
result[:allowedCapabilities] = allowed_capabilities
|
19
|
+
result[:allowedProcMountTypes] = allowed_proc_mount_types
|
20
|
+
result[:allowedUnsafeSysctls] = allowed_unsafe_sysctls
|
21
|
+
result[:defaultAddCapabilities] = default_add_capabilities
|
25
22
|
result[:defaultAllowPrivilegeEscalation] = default_allow_privilege_escalation
|
23
|
+
result[:forbiddenSysctls] = forbidden_sysctls
|
26
24
|
result[:hostIPC] = host_ipc
|
27
25
|
result[:hostNetwork] = host_network
|
28
26
|
result[:hostPID] = host_pid
|
29
27
|
result[:privileged] = privileged
|
30
28
|
result[:readOnlyRootFilesystem] = read_only_root_filesystem
|
29
|
+
result[:requiredDropCapabilities] = required_drop_capabilities
|
30
|
+
result[:volumes] = volumes
|
31
31
|
result[:allowedCSIDrivers] = allowed_csi_drivers.map(&:serialize)
|
32
|
-
result[:allowedCapabilities] = allowed_capabilities
|
33
32
|
result[:allowedFlexVolumes] = allowed_flex_volumes.map(&:serialize)
|
34
33
|
result[:allowedHostPaths] = allowed_host_paths.map(&:serialize)
|
35
|
-
result[:allowedProcMountTypes] = allowed_proc_mount_types
|
36
|
-
result[:allowedUnsafeSysctls] = allowed_unsafe_sysctlses
|
37
|
-
result[:defaultAddCapabilities] = default_add_capabilities
|
38
|
-
result[:forbiddenSysctls] = forbidden_sysctlses
|
39
34
|
result[:hostPorts] = host_ports.map(&:serialize)
|
40
|
-
result[:requiredDropCapabilities] = required_drop_capabilities
|
41
|
-
result[:volumes] = volumes
|
42
35
|
result[:fsGroup] = fs_group.serialize
|
43
36
|
result[:runAsGroup] = run_as_group.serialize
|
44
37
|
result[:runAsUser] = run_as_user.serialize
|
@@ -1,12 +1,11 @@
|
|
1
1
|
module KubeDSL::DSL::Policy::V1beta1
|
2
2
|
class RuntimeClassStrategyOptions < ::KubeDSL::DSLObject
|
3
|
-
value_fields :default_runtime_class_name
|
4
|
-
array_field :allowed_runtime_class_name
|
3
|
+
value_fields :allowed_runtime_class_names, :default_runtime_class_name
|
5
4
|
|
6
5
|
def serialize
|
7
6
|
{}.tap do |result|
|
8
|
-
result[:defaultRuntimeClassName] = default_runtime_class_name
|
9
7
|
result[:allowedRuntimeClassNames] = allowed_runtime_class_names
|
8
|
+
result[:defaultRuntimeClassName] = default_runtime_class_name
|
10
9
|
end
|
11
10
|
end
|
12
11
|
|
@@ -1,15 +1,11 @@
|
|
1
1
|
module KubeDSL::DSL::Rbac::V1
|
2
2
|
class PolicyRule < ::KubeDSL::DSLObject
|
3
|
-
|
4
|
-
array_field :non_resource_url
|
5
|
-
array_field :resource_name
|
6
|
-
array_field :resource
|
7
|
-
array_field :verb
|
3
|
+
value_fields :api_groups, :non_resource_ur_ls, :resource_names, :resources, :verbs
|
8
4
|
|
9
5
|
def serialize
|
10
6
|
{}.tap do |result|
|
11
7
|
result[:apiGroups] = api_groups
|
12
|
-
result[:nonResourceURLs] =
|
8
|
+
result[:nonResourceURLs] = non_resource_ur_ls
|
13
9
|
result[:resourceNames] = resource_names
|
14
10
|
result[:resources] = resources
|
15
11
|
result[:verbs] = verbs
|
@@ -1,15 +1,11 @@
|
|
1
1
|
module KubeDSL::DSL::Rbac::V1alpha1
|
2
2
|
class PolicyRule < ::KubeDSL::DSLObject
|
3
|
-
|
4
|
-
array_field :non_resource_url
|
5
|
-
array_field :resource_name
|
6
|
-
array_field :resource
|
7
|
-
array_field :verb
|
3
|
+
value_fields :api_groups, :non_resource_ur_ls, :resource_names, :resources, :verbs
|
8
4
|
|
9
5
|
def serialize
|
10
6
|
{}.tap do |result|
|
11
7
|
result[:apiGroups] = api_groups
|
12
|
-
result[:nonResourceURLs] =
|
8
|
+
result[:nonResourceURLs] = non_resource_ur_ls
|
13
9
|
result[:resourceNames] = resource_names
|
14
10
|
result[:resources] = resources
|
15
11
|
result[:verbs] = verbs
|
@@ -1,15 +1,11 @@
|
|
1
1
|
module KubeDSL::DSL::Rbac::V1beta1
|
2
2
|
class PolicyRule < ::KubeDSL::DSLObject
|
3
|
-
|
4
|
-
array_field :non_resource_url
|
5
|
-
array_field :resource_name
|
6
|
-
array_field :resource
|
7
|
-
array_field :verb
|
3
|
+
value_fields :api_groups, :non_resource_ur_ls, :resource_names, :resources, :verbs
|
8
4
|
|
9
5
|
def serialize
|
10
6
|
{}.tap do |result|
|
11
7
|
result[:apiGroups] = api_groups
|
12
|
-
result[:nonResourceURLs] =
|
8
|
+
result[:nonResourceURLs] = non_resource_ur_ls
|
13
9
|
result[:resourceNames] = resource_names
|
14
10
|
result[:resources] = resources
|
15
11
|
result[:verbs] = verbs
|
@@ -1,7 +1,6 @@
|
|
1
1
|
module KubeDSL::DSL::Storage::V1
|
2
2
|
class CSINodeDriver < ::KubeDSL::DSLObject
|
3
|
-
value_fields :name, :node_id
|
4
|
-
array_field :topology_key
|
3
|
+
value_fields :name, :node_id, :topology_keys
|
5
4
|
object_field(:allocatable) { KubeDSL::DSL::Storage::V1::VolumeNodeResources.new }
|
6
5
|
|
7
6
|
def serialize
|
@@ -1,8 +1,7 @@
|
|
1
1
|
module KubeDSL::DSL::Storage::V1
|
2
2
|
class StorageClass < ::KubeDSL::DSLObject
|
3
|
-
value_fields :allow_volume_expansion, :provisioner, :reclaim_policy, :volume_binding_mode
|
3
|
+
value_fields :allow_volume_expansion, :mount_options, :provisioner, :reclaim_policy, :volume_binding_mode
|
4
4
|
array_field(:allowed_topology) { KubeDSL::DSL::V1::TopologySelectorTerm.new }
|
5
|
-
array_field :mount_option
|
6
5
|
object_field(:metadata) { KubeDSL::DSL::Meta::V1::ObjectMeta.new }
|
7
6
|
object_field(:parameters) { ::KubeDSL::KeyValueFields.new(format: :string) }
|
8
7
|
|
@@ -11,11 +10,11 @@ module KubeDSL::DSL::Storage::V1
|
|
11
10
|
result[:apiVersion] = "storage.k8s.io/v1"
|
12
11
|
result[:kind] = "StorageClass"
|
13
12
|
result[:allowVolumeExpansion] = allow_volume_expansion
|
13
|
+
result[:mountOptions] = mount_options
|
14
14
|
result[:provisioner] = provisioner
|
15
15
|
result[:reclaimPolicy] = reclaim_policy
|
16
16
|
result[:volumeBindingMode] = volume_binding_mode
|
17
17
|
result[:allowedTopologies] = allowed_topologies.map(&:serialize)
|
18
|
-
result[:mountOptions] = mount_options
|
19
18
|
result[:metadata] = metadata.serialize
|
20
19
|
result[:parameters] = parameters.serialize
|
21
20
|
end
|
@@ -1,7 +1,6 @@
|
|
1
1
|
module KubeDSL::DSL::Storage::V1beta1
|
2
2
|
class CSIDriverSpec < ::KubeDSL::DSLObject
|
3
|
-
value_fields :attach_required, :pod_info_on_mount
|
4
|
-
array_field :volume_lifecycle_mode
|
3
|
+
value_fields :attach_required, :pod_info_on_mount, :volume_lifecycle_modes
|
5
4
|
|
6
5
|
def serialize
|
7
6
|
{}.tap do |result|
|
@@ -1,7 +1,6 @@
|
|
1
1
|
module KubeDSL::DSL::Storage::V1beta1
|
2
2
|
class CSINodeDriver < ::KubeDSL::DSLObject
|
3
|
-
value_fields :name, :node_id
|
4
|
-
array_field :topology_key
|
3
|
+
value_fields :name, :node_id, :topology_keys
|
5
4
|
object_field(:allocatable) { KubeDSL::DSL::Storage::V1beta1::VolumeNodeResources.new }
|
6
5
|
|
7
6
|
def serialize
|
@@ -1,8 +1,7 @@
|
|
1
1
|
module KubeDSL::DSL::Storage::V1beta1
|
2
2
|
class StorageClass < ::KubeDSL::DSLObject
|
3
|
-
value_fields :allow_volume_expansion, :provisioner, :reclaim_policy, :volume_binding_mode
|
3
|
+
value_fields :allow_volume_expansion, :mount_options, :provisioner, :reclaim_policy, :volume_binding_mode
|
4
4
|
array_field(:allowed_topology) { KubeDSL::DSL::V1::TopologySelectorTerm.new }
|
5
|
-
array_field :mount_option
|
6
5
|
object_field(:metadata) { KubeDSL::DSL::Meta::V1::ObjectMeta.new }
|
7
6
|
object_field(:parameters) { ::KubeDSL::KeyValueFields.new(format: :string) }
|
8
7
|
|
@@ -11,11 +10,11 @@ module KubeDSL::DSL::Storage::V1beta1
|
|
11
10
|
result[:apiVersion] = "storage.k8s.io/v1beta1"
|
12
11
|
result[:kind] = "StorageClass"
|
13
12
|
result[:allowVolumeExpansion] = allow_volume_expansion
|
13
|
+
result[:mountOptions] = mount_options
|
14
14
|
result[:provisioner] = provisioner
|
15
15
|
result[:reclaimPolicy] = reclaim_policy
|
16
16
|
result[:volumeBindingMode] = volume_binding_mode
|
17
17
|
result[:allowedTopologies] = allowed_topologies.map(&:serialize)
|
18
|
-
result[:mountOptions] = mount_options
|
19
18
|
result[:metadata] = metadata.serialize
|
20
19
|
result[:parameters] = parameters.serialize
|
21
20
|
end
|
@@ -1,12 +1,11 @@
|
|
1
1
|
module KubeDSL::DSL::V1
|
2
2
|
class Capabilities < ::KubeDSL::DSLObject
|
3
|
-
|
4
|
-
array_field :drop
|
3
|
+
value_fields :add, :drop
|
5
4
|
|
6
5
|
def serialize
|
7
6
|
{}.tap do |result|
|
8
|
-
result[:add] =
|
9
|
-
result[:drop] =
|
7
|
+
result[:add] = add
|
8
|
+
result[:drop] = drop
|
10
9
|
end
|
11
10
|
end
|
12
11
|
|
@@ -1,16 +1,15 @@
|
|
1
1
|
module KubeDSL::DSL::V1
|
2
2
|
class CephFSPersistentVolumeSource < ::KubeDSL::DSLObject
|
3
|
-
value_fields :path, :read_only, :secret_file, :user
|
4
|
-
array_field :monitor
|
3
|
+
value_fields :monitors, :path, :read_only, :secret_file, :user
|
5
4
|
object_field(:secret_ref) { KubeDSL::DSL::V1::SecretReference.new }
|
6
5
|
|
7
6
|
def serialize
|
8
7
|
{}.tap do |result|
|
8
|
+
result[:monitors] = monitors
|
9
9
|
result[:path] = path
|
10
10
|
result[:readOnly] = read_only
|
11
11
|
result[:secretFile] = secret_file
|
12
12
|
result[:user] = user
|
13
|
-
result[:monitors] = monitors
|
14
13
|
result[:secretRef] = secret_ref.serialize
|
15
14
|
end
|
16
15
|
end
|
@@ -1,16 +1,15 @@
|
|
1
1
|
module KubeDSL::DSL::V1
|
2
2
|
class CephFSVolumeSource < ::KubeDSL::DSLObject
|
3
|
-
value_fields :path, :read_only, :secret_file, :user
|
4
|
-
array_field :monitor
|
3
|
+
value_fields :monitors, :path, :read_only, :secret_file, :user
|
5
4
|
object_field(:secret_ref) { KubeDSL::DSL::V1::LocalObjectReference.new }
|
6
5
|
|
7
6
|
def serialize
|
8
7
|
{}.tap do |result|
|
8
|
+
result[:monitors] = monitors
|
9
9
|
result[:path] = path
|
10
10
|
result[:readOnly] = read_only
|
11
11
|
result[:secretFile] = secret_file
|
12
12
|
result[:user] = user
|
13
|
-
result[:monitors] = monitors
|
14
13
|
result[:secretRef] = secret_ref.serialize
|
15
14
|
end
|
16
15
|
end
|
@@ -1,8 +1,6 @@
|
|
1
1
|
module KubeDSL::DSL::V1
|
2
2
|
class Container < ::KubeDSL::DSLObject
|
3
|
-
value_fields :image, :image_pull_policy, :name, :stdin, :stdin_once, :termination_message_path, :termination_message_policy, :tty, :working_dir
|
4
|
-
array_field :arg
|
5
|
-
array_field :command
|
3
|
+
value_fields :args, :command, :image, :image_pull_policy, :name, :stdin, :stdin_once, :termination_message_path, :termination_message_policy, :tty, :working_dir
|
6
4
|
array_field(:env) { KubeDSL::DSL::V1::EnvVar.new }
|
7
5
|
array_field(:env_from) { KubeDSL::DSL::V1::EnvFromSource.new }
|
8
6
|
array_field(:port) { KubeDSL::DSL::V1::ContainerPort.new }
|
@@ -17,6 +15,8 @@ module KubeDSL::DSL::V1
|
|
17
15
|
|
18
16
|
def serialize
|
19
17
|
{}.tap do |result|
|
18
|
+
result[:args] = args
|
19
|
+
result[:command] = command
|
20
20
|
result[:image] = image
|
21
21
|
result[:imagePullPolicy] = image_pull_policy
|
22
22
|
result[:name] = name
|
@@ -26,8 +26,6 @@ module KubeDSL::DSL::V1
|
|
26
26
|
result[:terminationMessagePolicy] = termination_message_policy
|
27
27
|
result[:tty] = tty
|
28
28
|
result[:workingDir] = working_dir
|
29
|
-
result[:args] = args
|
30
|
-
result[:command] = commands
|
31
29
|
result[:env] = envs.map(&:serialize)
|
32
30
|
result[:envFrom] = env_froms.map(&:serialize)
|
33
31
|
result[:ports] = ports.map(&:serialize)
|
@@ -1,12 +1,11 @@
|
|
1
1
|
module KubeDSL::DSL::V1
|
2
2
|
class ContainerImage < ::KubeDSL::DSLObject
|
3
|
-
value_fields :size_bytes
|
4
|
-
array_field :name
|
3
|
+
value_fields :names, :size_bytes
|
5
4
|
|
6
5
|
def serialize
|
7
6
|
{}.tap do |result|
|
8
|
-
result[:sizeBytes] = size_bytes
|
9
7
|
result[:names] = names
|
8
|
+
result[:sizeBytes] = size_bytes
|
10
9
|
end
|
11
10
|
end
|
12
11
|
|
@@ -1,8 +1,6 @@
|
|
1
1
|
module KubeDSL::DSL::V1
|
2
2
|
class EphemeralContainer < ::KubeDSL::DSLObject
|
3
|
-
value_fields :image, :image_pull_policy, :name, :stdin, :stdin_once, :target_container_name, :termination_message_path, :termination_message_policy, :tty, :working_dir
|
4
|
-
array_field :arg
|
5
|
-
array_field :command
|
3
|
+
value_fields :args, :command, :image, :image_pull_policy, :name, :stdin, :stdin_once, :target_container_name, :termination_message_path, :termination_message_policy, :tty, :working_dir
|
6
4
|
array_field(:env) { KubeDSL::DSL::V1::EnvVar.new }
|
7
5
|
array_field(:env_from) { KubeDSL::DSL::V1::EnvFromSource.new }
|
8
6
|
array_field(:port) { KubeDSL::DSL::V1::ContainerPort.new }
|
@@ -17,6 +15,8 @@ module KubeDSL::DSL::V1
|
|
17
15
|
|
18
16
|
def serialize
|
19
17
|
{}.tap do |result|
|
18
|
+
result[:args] = args
|
19
|
+
result[:command] = command
|
20
20
|
result[:image] = image
|
21
21
|
result[:imagePullPolicy] = image_pull_policy
|
22
22
|
result[:name] = name
|
@@ -27,8 +27,6 @@ module KubeDSL::DSL::V1
|
|
27
27
|
result[:terminationMessagePolicy] = termination_message_policy
|
28
28
|
result[:tty] = tty
|
29
29
|
result[:workingDir] = working_dir
|
30
|
-
result[:args] = args
|
31
|
-
result[:command] = commands
|
32
30
|
result[:env] = envs.map(&:serialize)
|
33
31
|
result[:envFrom] = env_froms.map(&:serialize)
|
34
32
|
result[:ports] = ports.map(&:serialize)
|
@@ -1,15 +1,13 @@
|
|
1
1
|
module KubeDSL::DSL::V1
|
2
2
|
class FCVolumeSource < ::KubeDSL::DSLObject
|
3
|
-
value_fields :fs_type, :lun, :read_only
|
4
|
-
array_field :target_wwn
|
5
|
-
array_field :wwid
|
3
|
+
value_fields :fs_type, :lun, :read_only, :target_ww_ns, :wwids
|
6
4
|
|
7
5
|
def serialize
|
8
6
|
{}.tap do |result|
|
9
7
|
result[:fsType] = fs_type
|
10
8
|
result[:lun] = lun
|
11
9
|
result[:readOnly] = read_only
|
12
|
-
result[:targetWWNs] =
|
10
|
+
result[:targetWWNs] = target_ww_ns
|
13
11
|
result[:wwids] = wwids
|
14
12
|
end
|
15
13
|
end
|
@@ -1,12 +1,11 @@
|
|
1
1
|
module KubeDSL::DSL::V1
|
2
2
|
class HostAlias < ::KubeDSL::DSLObject
|
3
|
-
value_fields :ip
|
4
|
-
array_field :hostname
|
3
|
+
value_fields :hostnames, :ip
|
5
4
|
|
6
5
|
def serialize
|
7
6
|
{}.tap do |result|
|
8
|
-
result[:ip] = ip
|
9
7
|
result[:hostnames] = hostnames
|
8
|
+
result[:ip] = ip
|
10
9
|
end
|
11
10
|
end
|
12
11
|
|
@@ -1,7 +1,6 @@
|
|
1
1
|
module KubeDSL::DSL::V1
|
2
2
|
class ISCSIPersistentVolumeSource < ::KubeDSL::DSLObject
|
3
|
-
value_fields :chap_auth_discovery, :chap_auth_session, :fs_type, :initiator_name, :iqn, :iscsi_interface, :lun, :read_only, :target_portal
|
4
|
-
array_field :portal
|
3
|
+
value_fields :chap_auth_discovery, :chap_auth_session, :fs_type, :initiator_name, :iqn, :iscsi_interface, :lun, :portals, :read_only, :target_portal
|
5
4
|
object_field(:secret_ref) { KubeDSL::DSL::V1::SecretReference.new }
|
6
5
|
|
7
6
|
def serialize
|
@@ -13,9 +12,9 @@ module KubeDSL::DSL::V1
|
|
13
12
|
result[:iqn] = iqn
|
14
13
|
result[:iscsiInterface] = iscsi_interface
|
15
14
|
result[:lun] = lun
|
15
|
+
result[:portals] = portals
|
16
16
|
result[:readOnly] = read_only
|
17
17
|
result[:targetPortal] = target_portal
|
18
|
-
result[:portals] = portals
|
19
18
|
result[:secretRef] = secret_ref.serialize
|
20
19
|
end
|
21
20
|
end
|
@@ -1,7 +1,6 @@
|
|
1
1
|
module KubeDSL::DSL::V1
|
2
2
|
class ISCSIVolumeSource < ::KubeDSL::DSLObject
|
3
|
-
value_fields :chap_auth_discovery, :chap_auth_session, :fs_type, :initiator_name, :iqn, :iscsi_interface, :lun, :read_only, :target_portal
|
4
|
-
array_field :portal
|
3
|
+
value_fields :chap_auth_discovery, :chap_auth_session, :fs_type, :initiator_name, :iqn, :iscsi_interface, :lun, :portals, :read_only, :target_portal
|
5
4
|
object_field(:secret_ref) { KubeDSL::DSL::V1::LocalObjectReference.new }
|
6
5
|
|
7
6
|
def serialize
|
@@ -13,9 +12,9 @@ module KubeDSL::DSL::V1
|
|
13
12
|
result[:iqn] = iqn
|
14
13
|
result[:iscsiInterface] = iscsi_interface
|
15
14
|
result[:lun] = lun
|
15
|
+
result[:portals] = portals
|
16
16
|
result[:readOnly] = read_only
|
17
17
|
result[:targetPortal] = target_portal
|
18
|
-
result[:portals] = portals
|
19
18
|
result[:secretRef] = secret_ref.serialize
|
20
19
|
end
|
21
20
|
end
|
@@ -1,7 +1,6 @@
|
|
1
1
|
module KubeDSL::DSL::V1
|
2
2
|
class NodeSpec < ::KubeDSL::DSLObject
|
3
|
-
value_fields :external_id, :pod_cidr, :provider_id, :unschedulable
|
4
|
-
array_field :pod_cidr
|
3
|
+
value_fields :external_id, :pod_cidr, :pod_cid_rs, :provider_id, :unschedulable
|
5
4
|
array_field(:taint) { KubeDSL::DSL::V1::Taint.new }
|
6
5
|
object_field(:config_source) { KubeDSL::DSL::V1::NodeConfigSource.new }
|
7
6
|
|
@@ -9,9 +8,9 @@ module KubeDSL::DSL::V1
|
|
9
8
|
{}.tap do |result|
|
10
9
|
result[:externalID] = external_id
|
11
10
|
result[:podCIDR] = pod_cidr
|
11
|
+
result[:podCIDRs] = pod_cid_rs
|
12
12
|
result[:providerID] = provider_id
|
13
13
|
result[:unschedulable] = unschedulable
|
14
|
-
result[:podCIDRs] = pod_cidrs
|
15
14
|
result[:taints] = taints.map(&:serialize)
|
16
15
|
result[:configSource] = config_source.serialize
|
17
16
|
end
|