kuby-crdb 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/Gemfile +7 -1
- data/Rakefile +7 -1
- data/kuby-crdb.gemspec +1 -1
- data/lib/kuby/crdb/dsl/crdb/v1alpha1/crdb_cluster.rb +32 -22
- data/lib/kuby/crdb/dsl/crdb/v1alpha1/crdb_cluster_list.rb +29 -19
- data/lib/kuby/crdb/dsl/crdb/v1alpha1/crdb_cluster_spec.rb +90 -0
- data/lib/kuby/crdb/dsl/crdb/v1alpha1/crdb_cluster_spec_affinity.rb +33 -0
- data/lib/kuby/crdb/dsl/crdb/v1alpha1/crdb_cluster_spec_affinity_node_affinity.rb +30 -0
- data/lib/kuby/crdb/dsl/crdb/v1alpha1/crdb_cluster_spec_affinity_node_affinity_preferred_during_scheduling_ignored_during_exec_8b78f2b1.rb +33 -0
- data/lib/kuby/crdb/dsl/crdb/v1alpha1/crdb_cluster_spec_affinity_node_affinity_preferred_during_scheduling_ignored_during_exec_8d2a4565.rb +30 -0
- data/lib/kuby/crdb/dsl/crdb/v1alpha1/crdb_cluster_spec_affinity_node_affinity_preferred_during_scheduling_ignored_during_exec_f85e726e.rb +33 -0
- data/lib/kuby/crdb/dsl/crdb/v1alpha1/crdb_cluster_spec_affinity_node_affinity_preferred_during_scheduling_ignored_during_execution.rb +30 -0
- data/lib/kuby/crdb/dsl/crdb/v1alpha1/crdb_cluster_spec_affinity_node_affinity_required_during_scheduling_ignored_during_execu_05ab423d.rb +33 -0
- data/lib/kuby/crdb/dsl/crdb/v1alpha1/crdb_cluster_spec_affinity_node_affinity_required_during_scheduling_ignored_during_execu_48b642ac.rb +30 -0
- data/lib/kuby/crdb/dsl/crdb/v1alpha1/crdb_cluster_spec_affinity_node_affinity_required_during_scheduling_ignored_during_execu_bb695e66.rb +33 -0
- data/lib/kuby/crdb/dsl/crdb/v1alpha1/crdb_cluster_spec_affinity_node_affinity_required_during_scheduling_ignored_during_execution.rb +27 -0
- data/lib/kuby/crdb/dsl/crdb/v1alpha1/crdb_cluster_spec_affinity_pod_affinity.rb +30 -0
- data/lib/kuby/crdb/dsl/crdb/v1alpha1/crdb_cluster_spec_affinity_pod_affinity_preferred_during_scheduling_ignored_during_execu_17815603.rb +33 -0
- data/lib/kuby/crdb/dsl/crdb/v1alpha1/crdb_cluster_spec_affinity_pod_affinity_preferred_during_scheduling_ignored_during_execu_89c72c0d.rb +33 -0
- data/lib/kuby/crdb/dsl/crdb/v1alpha1/crdb_cluster_spec_affinity_pod_affinity_preferred_during_scheduling_ignored_during_execu_c9250bb0.rb +30 -0
- data/lib/kuby/crdb/dsl/crdb/v1alpha1/crdb_cluster_spec_affinity_pod_affinity_preferred_during_scheduling_ignored_during_execution.rb +30 -0
- data/lib/kuby/crdb/dsl/crdb/v1alpha1/crdb_cluster_spec_affinity_pod_affinity_required_during_scheduling_ignored_during_execut_288baf8e.rb +33 -0
- data/lib/kuby/crdb/dsl/crdb/v1alpha1/crdb_cluster_spec_affinity_pod_affinity_required_during_scheduling_ignored_during_execut_68d750ca.rb +30 -0
- data/lib/kuby/crdb/dsl/crdb/v1alpha1/crdb_cluster_spec_affinity_pod_affinity_required_during_scheduling_ignored_during_execution.rb +33 -0
- data/lib/kuby/crdb/dsl/crdb/v1alpha1/crdb_cluster_spec_affinity_pod_anti_affinity.rb +30 -0
- data/lib/kuby/crdb/dsl/crdb/v1alpha1/crdb_cluster_spec_affinity_pod_anti_affinity_preferred_during_scheduling_ignored_during__7005510b.rb +30 -0
- data/lib/kuby/crdb/dsl/crdb/v1alpha1/crdb_cluster_spec_affinity_pod_anti_affinity_preferred_during_scheduling_ignored_during__eef14bfd.rb +33 -0
- data/lib/kuby/crdb/dsl/crdb/v1alpha1/crdb_cluster_spec_affinity_pod_anti_affinity_preferred_during_scheduling_ignored_during__ffa31ee1.rb +33 -0
- data/lib/kuby/crdb/dsl/crdb/v1alpha1/crdb_cluster_spec_affinity_pod_anti_affinity_preferred_during_scheduling_ignored_during_execution.rb +30 -0
- data/lib/kuby/crdb/dsl/crdb/v1alpha1/crdb_cluster_spec_affinity_pod_anti_affinity_required_during_scheduling_ignored_during_e_a054a9d0.rb +30 -0
- data/lib/kuby/crdb/dsl/crdb/v1alpha1/crdb_cluster_spec_affinity_pod_anti_affinity_required_during_scheduling_ignored_during_e_e3e2a2ff.rb +33 -0
- data/lib/kuby/crdb/dsl/crdb/v1alpha1/crdb_cluster_spec_affinity_pod_anti_affinity_required_during_scheduling_ignored_during_execution.rb +33 -0
- data/lib/kuby/crdb/dsl/crdb/v1alpha1/crdb_cluster_spec_data_store.rb +33 -0
- data/lib/kuby/crdb/dsl/crdb/v1alpha1/crdb_cluster_spec_data_store_host_path.rb +30 -0
- data/lib/kuby/crdb/dsl/crdb/v1alpha1/crdb_cluster_spec_data_store_pvc.rb +30 -0
- data/lib/kuby/crdb/dsl/crdb/v1alpha1/crdb_cluster_spec_data_store_pvc_source.rb +30 -0
- data/lib/kuby/crdb/dsl/crdb/v1alpha1/crdb_cluster_spec_data_store_pvc_spec.rb +45 -0
- data/lib/kuby/crdb/dsl/crdb/v1alpha1/crdb_cluster_spec_data_store_pvc_spec_data_source.rb +33 -0
- data/lib/kuby/crdb/dsl/crdb/v1alpha1/crdb_cluster_spec_data_store_pvc_spec_resources.rb +30 -0
- data/lib/kuby/crdb/dsl/crdb/v1alpha1/crdb_cluster_spec_data_store_pvc_spec_selector.rb +30 -0
- data/lib/kuby/crdb/dsl/crdb/v1alpha1/crdb_cluster_spec_data_store_pvc_spec_selector_match_expressions.rb +33 -0
- data/lib/kuby/crdb/dsl/crdb/v1alpha1/crdb_cluster_spec_image.rb +33 -0
- data/lib/kuby/crdb/dsl/crdb/v1alpha1/crdb_cluster_spec_pod_env_variables.rb +33 -0
- data/lib/kuby/crdb/dsl/crdb/v1alpha1/crdb_cluster_spec_pod_env_variables_value_from.rb +36 -0
- data/lib/kuby/crdb/dsl/crdb/v1alpha1/crdb_cluster_spec_pod_env_variables_value_from_config_map_key_ref.rb +33 -0
- data/lib/kuby/crdb/dsl/crdb/v1alpha1/crdb_cluster_spec_pod_env_variables_value_from_field_ref.rb +30 -0
- data/lib/kuby/crdb/dsl/crdb/v1alpha1/crdb_cluster_spec_pod_env_variables_value_from_resource_field_ref.rb +30 -0
- data/lib/kuby/crdb/dsl/crdb/v1alpha1/crdb_cluster_spec_pod_env_variables_value_from_secret_key_ref.rb +33 -0
- data/lib/kuby/crdb/dsl/crdb/v1alpha1/crdb_cluster_spec_resources.rb +30 -0
- data/lib/kuby/crdb/dsl/crdb/v1alpha1/crdb_cluster_spec_tolerations.rb +39 -0
- data/lib/kuby/crdb/dsl/crdb/v1alpha1/crdb_cluster_status.rb +39 -0
- data/lib/kuby/crdb/dsl/crdb/v1alpha1/crdb_cluster_status_conditions.rb +33 -0
- data/lib/kuby/crdb/dsl/crdb/v1alpha1/crdb_cluster_status_operator_actions.rb +36 -0
- data/lib/kuby/crdb/dsl/crdb/v1alpha1.rb +48 -17
- data/lib/kuby/crdb/version.rb +1 -1
- data/rbi/kuby-crdb.rbi +1177 -0
- metadata +51 -19
- data/lib/kuby/crdb/dsl/crdb/v1alpha1/spec.rb +0 -80
- data/lib/kuby/crdb/dsl/crdb/v1alpha1/spec_affinity.rb +0 -23
- data/lib/kuby/crdb/dsl/crdb/v1alpha1/spec_affinity_node_affinity.rb +0 -20
- data/lib/kuby/crdb/dsl/crdb/v1alpha1/spec_affinity_node_affinity_required_during_scheduling_ignored_during_execution.rb +0 -17
- data/lib/kuby/crdb/dsl/crdb/v1alpha1/spec_affinity_pod_affinity.rb +0 -20
- data/lib/kuby/crdb/dsl/crdb/v1alpha1/spec_affinity_pod_anti_affinity.rb +0 -20
- data/lib/kuby/crdb/dsl/crdb/v1alpha1/spec_data_store.rb +0 -23
- data/lib/kuby/crdb/dsl/crdb/v1alpha1/spec_data_store_host_path.rb +0 -20
- data/lib/kuby/crdb/dsl/crdb/v1alpha1/spec_data_store_pvc.rb +0 -20
- data/lib/kuby/crdb/dsl/crdb/v1alpha1/spec_data_store_pvc_source.rb +0 -20
- data/lib/kuby/crdb/dsl/crdb/v1alpha1/spec_data_store_pvc_spec.rb +0 -35
- data/lib/kuby/crdb/dsl/crdb/v1alpha1/spec_data_store_pvc_spec_data_source.rb +0 -23
- data/lib/kuby/crdb/dsl/crdb/v1alpha1/spec_data_store_pvc_spec_resources.rb +0 -20
- data/lib/kuby/crdb/dsl/crdb/v1alpha1/spec_data_store_pvc_spec_selector.rb +0 -20
- data/lib/kuby/crdb/dsl/crdb/v1alpha1/spec_image.rb +0 -23
- data/lib/kuby/crdb/dsl/crdb/v1alpha1/spec_resources.rb +0 -20
- data/lib/kuby/crdb/dsl/crdb/v1alpha1/status.rb +0 -29
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
# typed: true
|
|
2
|
+
|
|
3
|
+
module Kuby
|
|
4
|
+
module CRDB
|
|
5
|
+
module DSL
|
|
6
|
+
module CRDB
|
|
7
|
+
module V1alpha1
|
|
8
|
+
class CrdbClusterSpecAffinityPodAffinityPreferredDuringSchedulingIgnoredDuringExecutionPodAffinityTerm < ::KubeDSL::DSLObject
|
|
9
|
+
object_field(:label_selector) { Kuby::CRDB::DSL::CRDB::V1alpha1::CrdbClusterSpecAffinityPodAffinityPreferredDuringSchedulingIgnoredDuringExecutionPodAffinityTermLabelSelector.new }
|
|
10
|
+
value_field :namespaces
|
|
11
|
+
value_field :topology_key
|
|
12
|
+
|
|
13
|
+
validates :label_selector, object: { kind_of: Kuby::CRDB::DSL::CRDB::V1alpha1::CrdbClusterSpecAffinityPodAffinityPreferredDuringSchedulingIgnoredDuringExecutionPodAffinityTermLabelSelector }
|
|
14
|
+
validates :namespaces, field: { format: :string }, presence: false
|
|
15
|
+
validates :topology_key, field: { format: :string }, presence: true
|
|
16
|
+
|
|
17
|
+
def serialize
|
|
18
|
+
{}.tap do |result|
|
|
19
|
+
result[:labelSelector] = label_selector.serialize
|
|
20
|
+
result[:namespaces] = namespaces
|
|
21
|
+
result[:topologyKey] = topology_key
|
|
22
|
+
end
|
|
23
|
+
end
|
|
24
|
+
|
|
25
|
+
def kind_sym
|
|
26
|
+
:crdb_cluster_spec_affinity_pod_affinity_preferred_during_scheduling_ignored_during_execution_pod_affinity_term
|
|
27
|
+
end
|
|
28
|
+
end
|
|
29
|
+
end
|
|
30
|
+
end
|
|
31
|
+
end
|
|
32
|
+
end
|
|
33
|
+
end
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
# typed: true
|
|
2
|
+
|
|
3
|
+
module Kuby
|
|
4
|
+
module CRDB
|
|
5
|
+
module DSL
|
|
6
|
+
module CRDB
|
|
7
|
+
module V1alpha1
|
|
8
|
+
class CrdbClusterSpecAffinityPodAffinityPreferredDuringSchedulingIgnoredDuringExecutionPodAffinityTermLabelSelector < ::KubeDSL::DSLObject
|
|
9
|
+
key_value_field(:match_labels, format: :string)
|
|
10
|
+
array_field(:match_expression) { Kuby::CRDB::DSL::CRDB::V1alpha1::CrdbClusterSpecAffinityPodAffinityPreferredDuringSchedulingIgnoredDuringExecutionPodAffinityTermLabelSelectorMatchExpressions.new }
|
|
11
|
+
|
|
12
|
+
validates :match_labels, kv: { value_format: :string }, presence: true
|
|
13
|
+
validates :match_expressions, array: { kind_of: Kuby::CRDB::DSL::CRDB::V1alpha1::CrdbClusterSpecAffinityPodAffinityPreferredDuringSchedulingIgnoredDuringExecutionPodAffinityTermLabelSelectorMatchExpressions }, presence: false
|
|
14
|
+
|
|
15
|
+
def serialize
|
|
16
|
+
{}.tap do |result|
|
|
17
|
+
result[:matchLabels] = match_labels.serialize
|
|
18
|
+
result[:matchExpressions] = match_expressions.map(&:serialize)
|
|
19
|
+
end
|
|
20
|
+
end
|
|
21
|
+
|
|
22
|
+
def kind_sym
|
|
23
|
+
:crdb_cluster_spec_affinity_pod_affinity_preferred_during_scheduling_ignored_during_execution_pod_affinity_term_label_selector
|
|
24
|
+
end
|
|
25
|
+
end
|
|
26
|
+
end
|
|
27
|
+
end
|
|
28
|
+
end
|
|
29
|
+
end
|
|
30
|
+
end
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
# typed: true
|
|
2
|
+
|
|
3
|
+
module Kuby
|
|
4
|
+
module CRDB
|
|
5
|
+
module DSL
|
|
6
|
+
module CRDB
|
|
7
|
+
module V1alpha1
|
|
8
|
+
class CrdbClusterSpecAffinityPodAffinityPreferredDuringSchedulingIgnoredDuringExecution < ::KubeDSL::DSLObject
|
|
9
|
+
object_field(:pod_affinity_term) { Kuby::CRDB::DSL::CRDB::V1alpha1::CrdbClusterSpecAffinityPodAffinityPreferredDuringSchedulingIgnoredDuringExecutionPodAffinityTerm.new }
|
|
10
|
+
value_field :weight
|
|
11
|
+
|
|
12
|
+
validates :pod_affinity_term, object: { kind_of: Kuby::CRDB::DSL::CRDB::V1alpha1::CrdbClusterSpecAffinityPodAffinityPreferredDuringSchedulingIgnoredDuringExecutionPodAffinityTerm }
|
|
13
|
+
validates :weight, field: { format: :integer }, presence: true
|
|
14
|
+
|
|
15
|
+
def serialize
|
|
16
|
+
{}.tap do |result|
|
|
17
|
+
result[:podAffinityTerm] = pod_affinity_term.serialize
|
|
18
|
+
result[:weight] = weight
|
|
19
|
+
end
|
|
20
|
+
end
|
|
21
|
+
|
|
22
|
+
def kind_sym
|
|
23
|
+
:crdb_cluster_spec_affinity_pod_affinity_preferred_during_scheduling_ignored_during_execution
|
|
24
|
+
end
|
|
25
|
+
end
|
|
26
|
+
end
|
|
27
|
+
end
|
|
28
|
+
end
|
|
29
|
+
end
|
|
30
|
+
end
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
# typed: true
|
|
2
|
+
|
|
3
|
+
module Kuby
|
|
4
|
+
module CRDB
|
|
5
|
+
module DSL
|
|
6
|
+
module CRDB
|
|
7
|
+
module V1alpha1
|
|
8
|
+
class CrdbClusterSpecAffinityPodAffinityRequiredDuringSchedulingIgnoredDuringExecutionLabelSelectorMatchExpressions < ::KubeDSL::DSLObject
|
|
9
|
+
value_field :operator
|
|
10
|
+
value_field :values
|
|
11
|
+
value_field :key
|
|
12
|
+
|
|
13
|
+
validates :operator, field: { format: :string }, presence: true
|
|
14
|
+
validates :values, field: { format: :string }, presence: false
|
|
15
|
+
validates :key, field: { format: :string }, presence: true
|
|
16
|
+
|
|
17
|
+
def serialize
|
|
18
|
+
{}.tap do |result|
|
|
19
|
+
result[:operator] = operator
|
|
20
|
+
result[:values] = values
|
|
21
|
+
result[:key] = key
|
|
22
|
+
end
|
|
23
|
+
end
|
|
24
|
+
|
|
25
|
+
def kind_sym
|
|
26
|
+
:crdb_cluster_spec_affinity_pod_affinity_required_during_scheduling_ignored_during_execution_label_selector_match_expressions
|
|
27
|
+
end
|
|
28
|
+
end
|
|
29
|
+
end
|
|
30
|
+
end
|
|
31
|
+
end
|
|
32
|
+
end
|
|
33
|
+
end
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
# typed: true
|
|
2
|
+
|
|
3
|
+
module Kuby
|
|
4
|
+
module CRDB
|
|
5
|
+
module DSL
|
|
6
|
+
module CRDB
|
|
7
|
+
module V1alpha1
|
|
8
|
+
class CrdbClusterSpecAffinityPodAffinityRequiredDuringSchedulingIgnoredDuringExecutionLabelSelector < ::KubeDSL::DSLObject
|
|
9
|
+
key_value_field(:match_labels, format: :string)
|
|
10
|
+
array_field(:match_expression) { Kuby::CRDB::DSL::CRDB::V1alpha1::CrdbClusterSpecAffinityPodAffinityRequiredDuringSchedulingIgnoredDuringExecutionLabelSelectorMatchExpressions.new }
|
|
11
|
+
|
|
12
|
+
validates :match_labels, kv: { value_format: :string }, presence: true
|
|
13
|
+
validates :match_expressions, array: { kind_of: Kuby::CRDB::DSL::CRDB::V1alpha1::CrdbClusterSpecAffinityPodAffinityRequiredDuringSchedulingIgnoredDuringExecutionLabelSelectorMatchExpressions }, presence: false
|
|
14
|
+
|
|
15
|
+
def serialize
|
|
16
|
+
{}.tap do |result|
|
|
17
|
+
result[:matchLabels] = match_labels.serialize
|
|
18
|
+
result[:matchExpressions] = match_expressions.map(&:serialize)
|
|
19
|
+
end
|
|
20
|
+
end
|
|
21
|
+
|
|
22
|
+
def kind_sym
|
|
23
|
+
:crdb_cluster_spec_affinity_pod_affinity_required_during_scheduling_ignored_during_execution_label_selector
|
|
24
|
+
end
|
|
25
|
+
end
|
|
26
|
+
end
|
|
27
|
+
end
|
|
28
|
+
end
|
|
29
|
+
end
|
|
30
|
+
end
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
# typed: true
|
|
2
|
+
|
|
3
|
+
module Kuby
|
|
4
|
+
module CRDB
|
|
5
|
+
module DSL
|
|
6
|
+
module CRDB
|
|
7
|
+
module V1alpha1
|
|
8
|
+
class CrdbClusterSpecAffinityPodAffinityRequiredDuringSchedulingIgnoredDuringExecution < ::KubeDSL::DSLObject
|
|
9
|
+
object_field(:label_selector) { Kuby::CRDB::DSL::CRDB::V1alpha1::CrdbClusterSpecAffinityPodAffinityRequiredDuringSchedulingIgnoredDuringExecutionLabelSelector.new }
|
|
10
|
+
value_field :namespaces
|
|
11
|
+
value_field :topology_key
|
|
12
|
+
|
|
13
|
+
validates :label_selector, object: { kind_of: Kuby::CRDB::DSL::CRDB::V1alpha1::CrdbClusterSpecAffinityPodAffinityRequiredDuringSchedulingIgnoredDuringExecutionLabelSelector }
|
|
14
|
+
validates :namespaces, field: { format: :string }, presence: false
|
|
15
|
+
validates :topology_key, field: { format: :string }, presence: true
|
|
16
|
+
|
|
17
|
+
def serialize
|
|
18
|
+
{}.tap do |result|
|
|
19
|
+
result[:labelSelector] = label_selector.serialize
|
|
20
|
+
result[:namespaces] = namespaces
|
|
21
|
+
result[:topologyKey] = topology_key
|
|
22
|
+
end
|
|
23
|
+
end
|
|
24
|
+
|
|
25
|
+
def kind_sym
|
|
26
|
+
:crdb_cluster_spec_affinity_pod_affinity_required_during_scheduling_ignored_during_execution
|
|
27
|
+
end
|
|
28
|
+
end
|
|
29
|
+
end
|
|
30
|
+
end
|
|
31
|
+
end
|
|
32
|
+
end
|
|
33
|
+
end
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
# typed: true
|
|
2
|
+
|
|
3
|
+
module Kuby
|
|
4
|
+
module CRDB
|
|
5
|
+
module DSL
|
|
6
|
+
module CRDB
|
|
7
|
+
module V1alpha1
|
|
8
|
+
class CrdbClusterSpecAffinityPodAntiAffinity < ::KubeDSL::DSLObject
|
|
9
|
+
array_field(:required_during_scheduling_ignored_during_execution) { Kuby::CRDB::DSL::CRDB::V1alpha1::CrdbClusterSpecAffinityPodAntiAffinityRequiredDuringSchedulingIgnoredDuringExecution.new }
|
|
10
|
+
array_field(:preferred_during_scheduling_ignored_during_execution) { Kuby::CRDB::DSL::CRDB::V1alpha1::CrdbClusterSpecAffinityPodAntiAffinityPreferredDuringSchedulingIgnoredDuringExecution.new }
|
|
11
|
+
|
|
12
|
+
validates :required_during_scheduling_ignored_during_executions, array: { kind_of: Kuby::CRDB::DSL::CRDB::V1alpha1::CrdbClusterSpecAffinityPodAntiAffinityRequiredDuringSchedulingIgnoredDuringExecution }, presence: false
|
|
13
|
+
validates :preferred_during_scheduling_ignored_during_executions, array: { kind_of: Kuby::CRDB::DSL::CRDB::V1alpha1::CrdbClusterSpecAffinityPodAntiAffinityPreferredDuringSchedulingIgnoredDuringExecution }, presence: false
|
|
14
|
+
|
|
15
|
+
def serialize
|
|
16
|
+
{}.tap do |result|
|
|
17
|
+
result[:requiredDuringSchedulingIgnoredDuringExecution] = required_during_scheduling_ignored_during_executions.map(&:serialize)
|
|
18
|
+
result[:preferredDuringSchedulingIgnoredDuringExecution] = preferred_during_scheduling_ignored_during_executions.map(&:serialize)
|
|
19
|
+
end
|
|
20
|
+
end
|
|
21
|
+
|
|
22
|
+
def kind_sym
|
|
23
|
+
:crdb_cluster_spec_affinity_pod_anti_affinity
|
|
24
|
+
end
|
|
25
|
+
end
|
|
26
|
+
end
|
|
27
|
+
end
|
|
28
|
+
end
|
|
29
|
+
end
|
|
30
|
+
end
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
# typed: true
|
|
2
|
+
|
|
3
|
+
module Kuby
|
|
4
|
+
module CRDB
|
|
5
|
+
module DSL
|
|
6
|
+
module CRDB
|
|
7
|
+
module V1alpha1
|
|
8
|
+
class CrdbClusterSpecAffinityPodAntiAffinityPreferredDuringSchedulingIgnoredDuringExecutionPodAffinityTermLabelSelector < ::KubeDSL::DSLObject
|
|
9
|
+
key_value_field(:match_labels, format: :string)
|
|
10
|
+
array_field(:match_expression) { Kuby::CRDB::DSL::CRDB::V1alpha1::CrdbClusterSpecAffinityPodAntiAffinityPreferredDuringSchedulingIgnoredDuringExecutionPodAffinityTermLabelSelectorMatchExpressions.new }
|
|
11
|
+
|
|
12
|
+
validates :match_labels, kv: { value_format: :string }, presence: true
|
|
13
|
+
validates :match_expressions, array: { kind_of: Kuby::CRDB::DSL::CRDB::V1alpha1::CrdbClusterSpecAffinityPodAntiAffinityPreferredDuringSchedulingIgnoredDuringExecutionPodAffinityTermLabelSelectorMatchExpressions }, presence: false
|
|
14
|
+
|
|
15
|
+
def serialize
|
|
16
|
+
{}.tap do |result|
|
|
17
|
+
result[:matchLabels] = match_labels.serialize
|
|
18
|
+
result[:matchExpressions] = match_expressions.map(&:serialize)
|
|
19
|
+
end
|
|
20
|
+
end
|
|
21
|
+
|
|
22
|
+
def kind_sym
|
|
23
|
+
:crdb_cluster_spec_affinity_pod_anti_affinity_preferred_during_scheduling_ignored_during_execution_pod_affinity_term_label_selector
|
|
24
|
+
end
|
|
25
|
+
end
|
|
26
|
+
end
|
|
27
|
+
end
|
|
28
|
+
end
|
|
29
|
+
end
|
|
30
|
+
end
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
# typed: true
|
|
2
|
+
|
|
3
|
+
module Kuby
|
|
4
|
+
module CRDB
|
|
5
|
+
module DSL
|
|
6
|
+
module CRDB
|
|
7
|
+
module V1alpha1
|
|
8
|
+
class CrdbClusterSpecAffinityPodAntiAffinityPreferredDuringSchedulingIgnoredDuringExecutionPodAffinityTermLabelSelectorMatchExpressions < ::KubeDSL::DSLObject
|
|
9
|
+
value_field :operator
|
|
10
|
+
value_field :values
|
|
11
|
+
value_field :key
|
|
12
|
+
|
|
13
|
+
validates :operator, field: { format: :string }, presence: true
|
|
14
|
+
validates :values, field: { format: :string }, presence: false
|
|
15
|
+
validates :key, field: { format: :string }, presence: true
|
|
16
|
+
|
|
17
|
+
def serialize
|
|
18
|
+
{}.tap do |result|
|
|
19
|
+
result[:operator] = operator
|
|
20
|
+
result[:values] = values
|
|
21
|
+
result[:key] = key
|
|
22
|
+
end
|
|
23
|
+
end
|
|
24
|
+
|
|
25
|
+
def kind_sym
|
|
26
|
+
:crdb_cluster_spec_affinity_pod_anti_affinity_preferred_during_scheduling_ignored_during_execution_pod_affinity_term_label_selector_match_expressions
|
|
27
|
+
end
|
|
28
|
+
end
|
|
29
|
+
end
|
|
30
|
+
end
|
|
31
|
+
end
|
|
32
|
+
end
|
|
33
|
+
end
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
# typed: true
|
|
2
|
+
|
|
3
|
+
module Kuby
|
|
4
|
+
module CRDB
|
|
5
|
+
module DSL
|
|
6
|
+
module CRDB
|
|
7
|
+
module V1alpha1
|
|
8
|
+
class CrdbClusterSpecAffinityPodAntiAffinityPreferredDuringSchedulingIgnoredDuringExecutionPodAffinityTerm < ::KubeDSL::DSLObject
|
|
9
|
+
object_field(:label_selector) { Kuby::CRDB::DSL::CRDB::V1alpha1::CrdbClusterSpecAffinityPodAntiAffinityPreferredDuringSchedulingIgnoredDuringExecutionPodAffinityTermLabelSelector.new }
|
|
10
|
+
value_field :namespaces
|
|
11
|
+
value_field :topology_key
|
|
12
|
+
|
|
13
|
+
validates :label_selector, object: { kind_of: Kuby::CRDB::DSL::CRDB::V1alpha1::CrdbClusterSpecAffinityPodAntiAffinityPreferredDuringSchedulingIgnoredDuringExecutionPodAffinityTermLabelSelector }
|
|
14
|
+
validates :namespaces, field: { format: :string }, presence: false
|
|
15
|
+
validates :topology_key, field: { format: :string }, presence: true
|
|
16
|
+
|
|
17
|
+
def serialize
|
|
18
|
+
{}.tap do |result|
|
|
19
|
+
result[:labelSelector] = label_selector.serialize
|
|
20
|
+
result[:namespaces] = namespaces
|
|
21
|
+
result[:topologyKey] = topology_key
|
|
22
|
+
end
|
|
23
|
+
end
|
|
24
|
+
|
|
25
|
+
def kind_sym
|
|
26
|
+
:crdb_cluster_spec_affinity_pod_anti_affinity_preferred_during_scheduling_ignored_during_execution_pod_affinity_term
|
|
27
|
+
end
|
|
28
|
+
end
|
|
29
|
+
end
|
|
30
|
+
end
|
|
31
|
+
end
|
|
32
|
+
end
|
|
33
|
+
end
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
# typed: true
|
|
2
|
+
|
|
3
|
+
module Kuby
|
|
4
|
+
module CRDB
|
|
5
|
+
module DSL
|
|
6
|
+
module CRDB
|
|
7
|
+
module V1alpha1
|
|
8
|
+
class CrdbClusterSpecAffinityPodAntiAffinityPreferredDuringSchedulingIgnoredDuringExecution < ::KubeDSL::DSLObject
|
|
9
|
+
object_field(:pod_affinity_term) { Kuby::CRDB::DSL::CRDB::V1alpha1::CrdbClusterSpecAffinityPodAntiAffinityPreferredDuringSchedulingIgnoredDuringExecutionPodAffinityTerm.new }
|
|
10
|
+
value_field :weight
|
|
11
|
+
|
|
12
|
+
validates :pod_affinity_term, object: { kind_of: Kuby::CRDB::DSL::CRDB::V1alpha1::CrdbClusterSpecAffinityPodAntiAffinityPreferredDuringSchedulingIgnoredDuringExecutionPodAffinityTerm }
|
|
13
|
+
validates :weight, field: { format: :integer }, presence: true
|
|
14
|
+
|
|
15
|
+
def serialize
|
|
16
|
+
{}.tap do |result|
|
|
17
|
+
result[:podAffinityTerm] = pod_affinity_term.serialize
|
|
18
|
+
result[:weight] = weight
|
|
19
|
+
end
|
|
20
|
+
end
|
|
21
|
+
|
|
22
|
+
def kind_sym
|
|
23
|
+
:crdb_cluster_spec_affinity_pod_anti_affinity_preferred_during_scheduling_ignored_during_execution
|
|
24
|
+
end
|
|
25
|
+
end
|
|
26
|
+
end
|
|
27
|
+
end
|
|
28
|
+
end
|
|
29
|
+
end
|
|
30
|
+
end
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
# typed: true
|
|
2
|
+
|
|
3
|
+
module Kuby
|
|
4
|
+
module CRDB
|
|
5
|
+
module DSL
|
|
6
|
+
module CRDB
|
|
7
|
+
module V1alpha1
|
|
8
|
+
class CrdbClusterSpecAffinityPodAntiAffinityRequiredDuringSchedulingIgnoredDuringExecutionLabelSelector < ::KubeDSL::DSLObject
|
|
9
|
+
key_value_field(:match_labels, format: :string)
|
|
10
|
+
array_field(:match_expression) { Kuby::CRDB::DSL::CRDB::V1alpha1::CrdbClusterSpecAffinityPodAntiAffinityRequiredDuringSchedulingIgnoredDuringExecutionLabelSelectorMatchExpressions.new }
|
|
11
|
+
|
|
12
|
+
validates :match_labels, kv: { value_format: :string }, presence: true
|
|
13
|
+
validates :match_expressions, array: { kind_of: Kuby::CRDB::DSL::CRDB::V1alpha1::CrdbClusterSpecAffinityPodAntiAffinityRequiredDuringSchedulingIgnoredDuringExecutionLabelSelectorMatchExpressions }, presence: false
|
|
14
|
+
|
|
15
|
+
def serialize
|
|
16
|
+
{}.tap do |result|
|
|
17
|
+
result[:matchLabels] = match_labels.serialize
|
|
18
|
+
result[:matchExpressions] = match_expressions.map(&:serialize)
|
|
19
|
+
end
|
|
20
|
+
end
|
|
21
|
+
|
|
22
|
+
def kind_sym
|
|
23
|
+
:crdb_cluster_spec_affinity_pod_anti_affinity_required_during_scheduling_ignored_during_execution_label_selector
|
|
24
|
+
end
|
|
25
|
+
end
|
|
26
|
+
end
|
|
27
|
+
end
|
|
28
|
+
end
|
|
29
|
+
end
|
|
30
|
+
end
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
# typed: true
|
|
2
|
+
|
|
3
|
+
module Kuby
|
|
4
|
+
module CRDB
|
|
5
|
+
module DSL
|
|
6
|
+
module CRDB
|
|
7
|
+
module V1alpha1
|
|
8
|
+
class CrdbClusterSpecAffinityPodAntiAffinityRequiredDuringSchedulingIgnoredDuringExecutionLabelSelectorMatchExpressions < ::KubeDSL::DSLObject
|
|
9
|
+
value_field :operator
|
|
10
|
+
value_field :values
|
|
11
|
+
value_field :key
|
|
12
|
+
|
|
13
|
+
validates :operator, field: { format: :string }, presence: true
|
|
14
|
+
validates :values, field: { format: :string }, presence: false
|
|
15
|
+
validates :key, field: { format: :string }, presence: true
|
|
16
|
+
|
|
17
|
+
def serialize
|
|
18
|
+
{}.tap do |result|
|
|
19
|
+
result[:operator] = operator
|
|
20
|
+
result[:values] = values
|
|
21
|
+
result[:key] = key
|
|
22
|
+
end
|
|
23
|
+
end
|
|
24
|
+
|
|
25
|
+
def kind_sym
|
|
26
|
+
:crdb_cluster_spec_affinity_pod_anti_affinity_required_during_scheduling_ignored_during_execution_label_selector_match_expressions
|
|
27
|
+
end
|
|
28
|
+
end
|
|
29
|
+
end
|
|
30
|
+
end
|
|
31
|
+
end
|
|
32
|
+
end
|
|
33
|
+
end
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
# typed: true
|
|
2
|
+
|
|
3
|
+
module Kuby
|
|
4
|
+
module CRDB
|
|
5
|
+
module DSL
|
|
6
|
+
module CRDB
|
|
7
|
+
module V1alpha1
|
|
8
|
+
class CrdbClusterSpecAffinityPodAntiAffinityRequiredDuringSchedulingIgnoredDuringExecution < ::KubeDSL::DSLObject
|
|
9
|
+
object_field(:label_selector) { Kuby::CRDB::DSL::CRDB::V1alpha1::CrdbClusterSpecAffinityPodAntiAffinityRequiredDuringSchedulingIgnoredDuringExecutionLabelSelector.new }
|
|
10
|
+
value_field :namespaces
|
|
11
|
+
value_field :topology_key
|
|
12
|
+
|
|
13
|
+
validates :label_selector, object: { kind_of: Kuby::CRDB::DSL::CRDB::V1alpha1::CrdbClusterSpecAffinityPodAntiAffinityRequiredDuringSchedulingIgnoredDuringExecutionLabelSelector }
|
|
14
|
+
validates :namespaces, field: { format: :string }, presence: false
|
|
15
|
+
validates :topology_key, field: { format: :string }, presence: true
|
|
16
|
+
|
|
17
|
+
def serialize
|
|
18
|
+
{}.tap do |result|
|
|
19
|
+
result[:labelSelector] = label_selector.serialize
|
|
20
|
+
result[:namespaces] = namespaces
|
|
21
|
+
result[:topologyKey] = topology_key
|
|
22
|
+
end
|
|
23
|
+
end
|
|
24
|
+
|
|
25
|
+
def kind_sym
|
|
26
|
+
:crdb_cluster_spec_affinity_pod_anti_affinity_required_during_scheduling_ignored_during_execution
|
|
27
|
+
end
|
|
28
|
+
end
|
|
29
|
+
end
|
|
30
|
+
end
|
|
31
|
+
end
|
|
32
|
+
end
|
|
33
|
+
end
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
# typed: true
|
|
2
|
+
|
|
3
|
+
module Kuby
|
|
4
|
+
module CRDB
|
|
5
|
+
module DSL
|
|
6
|
+
module CRDB
|
|
7
|
+
module V1alpha1
|
|
8
|
+
class CrdbClusterSpecDataStore < ::KubeDSL::DSLObject
|
|
9
|
+
object_field(:pvc) { Kuby::CRDB::DSL::CRDB::V1alpha1::CrdbClusterSpecDataStorePvc.new }
|
|
10
|
+
value_field :supports_auto_resize
|
|
11
|
+
object_field(:host_path) { Kuby::CRDB::DSL::CRDB::V1alpha1::CrdbClusterSpecDataStoreHostPath.new }
|
|
12
|
+
|
|
13
|
+
validates :pvc, object: { kind_of: Kuby::CRDB::DSL::CRDB::V1alpha1::CrdbClusterSpecDataStorePvc }
|
|
14
|
+
validates :supports_auto_resize, field: { format: :boolean }, presence: true
|
|
15
|
+
validates :host_path, object: { kind_of: Kuby::CRDB::DSL::CRDB::V1alpha1::CrdbClusterSpecDataStoreHostPath }
|
|
16
|
+
|
|
17
|
+
def serialize
|
|
18
|
+
{}.tap do |result|
|
|
19
|
+
result[:pvc] = pvc.serialize
|
|
20
|
+
result[:supportsAutoResize] = supports_auto_resize
|
|
21
|
+
result[:hostPath] = host_path.serialize
|
|
22
|
+
end
|
|
23
|
+
end
|
|
24
|
+
|
|
25
|
+
def kind_sym
|
|
26
|
+
:crdb_cluster_spec_data_store
|
|
27
|
+
end
|
|
28
|
+
end
|
|
29
|
+
end
|
|
30
|
+
end
|
|
31
|
+
end
|
|
32
|
+
end
|
|
33
|
+
end
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
# typed: true
|
|
2
|
+
|
|
3
|
+
module Kuby
|
|
4
|
+
module CRDB
|
|
5
|
+
module DSL
|
|
6
|
+
module CRDB
|
|
7
|
+
module V1alpha1
|
|
8
|
+
class CrdbClusterSpecDataStoreHostPath < ::KubeDSL::DSLObject
|
|
9
|
+
value_field :path
|
|
10
|
+
value_field :type
|
|
11
|
+
|
|
12
|
+
validates :path, field: { format: :string }, presence: true
|
|
13
|
+
validates :type, field: { format: :string }, presence: false
|
|
14
|
+
|
|
15
|
+
def serialize
|
|
16
|
+
{}.tap do |result|
|
|
17
|
+
result[:path] = path
|
|
18
|
+
result[:type] = type
|
|
19
|
+
end
|
|
20
|
+
end
|
|
21
|
+
|
|
22
|
+
def kind_sym
|
|
23
|
+
:crdb_cluster_spec_data_store_host_path
|
|
24
|
+
end
|
|
25
|
+
end
|
|
26
|
+
end
|
|
27
|
+
end
|
|
28
|
+
end
|
|
29
|
+
end
|
|
30
|
+
end
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
# typed: true
|
|
2
|
+
|
|
3
|
+
module Kuby
|
|
4
|
+
module CRDB
|
|
5
|
+
module DSL
|
|
6
|
+
module CRDB
|
|
7
|
+
module V1alpha1
|
|
8
|
+
class CrdbClusterSpecDataStorePvc < ::KubeDSL::DSLObject
|
|
9
|
+
object_field(:source) { Kuby::CRDB::DSL::CRDB::V1alpha1::CrdbClusterSpecDataStorePvcSource.new }
|
|
10
|
+
object_field(:spec) { Kuby::CRDB::DSL::CRDB::V1alpha1::CrdbClusterSpecDataStorePvcSpec.new }
|
|
11
|
+
|
|
12
|
+
validates :source, object: { kind_of: Kuby::CRDB::DSL::CRDB::V1alpha1::CrdbClusterSpecDataStorePvcSource }
|
|
13
|
+
validates :spec, object: { kind_of: Kuby::CRDB::DSL::CRDB::V1alpha1::CrdbClusterSpecDataStorePvcSpec }
|
|
14
|
+
|
|
15
|
+
def serialize
|
|
16
|
+
{}.tap do |result|
|
|
17
|
+
result[:source] = source.serialize
|
|
18
|
+
result[:spec] = spec.serialize
|
|
19
|
+
end
|
|
20
|
+
end
|
|
21
|
+
|
|
22
|
+
def kind_sym
|
|
23
|
+
:crdb_cluster_spec_data_store_pvc
|
|
24
|
+
end
|
|
25
|
+
end
|
|
26
|
+
end
|
|
27
|
+
end
|
|
28
|
+
end
|
|
29
|
+
end
|
|
30
|
+
end
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
# typed: true
|
|
2
|
+
|
|
3
|
+
module Kuby
|
|
4
|
+
module CRDB
|
|
5
|
+
module DSL
|
|
6
|
+
module CRDB
|
|
7
|
+
module V1alpha1
|
|
8
|
+
class CrdbClusterSpecDataStorePvcSource < ::KubeDSL::DSLObject
|
|
9
|
+
value_field :read_only
|
|
10
|
+
value_field :claim_name
|
|
11
|
+
|
|
12
|
+
validates :read_only, field: { format: :boolean }, presence: true
|
|
13
|
+
validates :claim_name, field: { format: :string }, presence: true
|
|
14
|
+
|
|
15
|
+
def serialize
|
|
16
|
+
{}.tap do |result|
|
|
17
|
+
result[:readOnly] = read_only
|
|
18
|
+
result[:claimName] = claim_name
|
|
19
|
+
end
|
|
20
|
+
end
|
|
21
|
+
|
|
22
|
+
def kind_sym
|
|
23
|
+
:crdb_cluster_spec_data_store_pvc_source
|
|
24
|
+
end
|
|
25
|
+
end
|
|
26
|
+
end
|
|
27
|
+
end
|
|
28
|
+
end
|
|
29
|
+
end
|
|
30
|
+
end
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
# typed: true
|
|
2
|
+
|
|
3
|
+
module Kuby
|
|
4
|
+
module CRDB
|
|
5
|
+
module DSL
|
|
6
|
+
module CRDB
|
|
7
|
+
module V1alpha1
|
|
8
|
+
class CrdbClusterSpecDataStorePvcSpec < ::KubeDSL::DSLObject
|
|
9
|
+
value_field :storage_class_name
|
|
10
|
+
value_field :volume_mode
|
|
11
|
+
object_field(:selector) { Kuby::CRDB::DSL::CRDB::V1alpha1::CrdbClusterSpecDataStorePvcSpecSelector.new }
|
|
12
|
+
value_field :access_modes
|
|
13
|
+
object_field(:data_source) { Kuby::CRDB::DSL::CRDB::V1alpha1::CrdbClusterSpecDataStorePvcSpecDataSource.new }
|
|
14
|
+
value_field :volume_name
|
|
15
|
+
object_field(:resources) { Kuby::CRDB::DSL::CRDB::V1alpha1::CrdbClusterSpecDataStorePvcSpecResources.new }
|
|
16
|
+
|
|
17
|
+
validates :storage_class_name, field: { format: :string }, presence: false
|
|
18
|
+
validates :volume_mode, field: { format: :string }, presence: false
|
|
19
|
+
validates :selector, object: { kind_of: Kuby::CRDB::DSL::CRDB::V1alpha1::CrdbClusterSpecDataStorePvcSpecSelector }
|
|
20
|
+
validates :access_modes, field: { format: :string }, presence: false
|
|
21
|
+
validates :data_source, object: { kind_of: Kuby::CRDB::DSL::CRDB::V1alpha1::CrdbClusterSpecDataStorePvcSpecDataSource }
|
|
22
|
+
validates :volume_name, field: { format: :string }, presence: false
|
|
23
|
+
validates :resources, object: { kind_of: Kuby::CRDB::DSL::CRDB::V1alpha1::CrdbClusterSpecDataStorePvcSpecResources }
|
|
24
|
+
|
|
25
|
+
def serialize
|
|
26
|
+
{}.tap do |result|
|
|
27
|
+
result[:storageClassName] = storage_class_name
|
|
28
|
+
result[:volumeMode] = volume_mode
|
|
29
|
+
result[:selector] = selector.serialize
|
|
30
|
+
result[:accessModes] = access_modes
|
|
31
|
+
result[:dataSource] = data_source.serialize
|
|
32
|
+
result[:volumeName] = volume_name
|
|
33
|
+
result[:resources] = resources.serialize
|
|
34
|
+
end
|
|
35
|
+
end
|
|
36
|
+
|
|
37
|
+
def kind_sym
|
|
38
|
+
:crdb_cluster_spec_data_store_pvc_spec
|
|
39
|
+
end
|
|
40
|
+
end
|
|
41
|
+
end
|
|
42
|
+
end
|
|
43
|
+
end
|
|
44
|
+
end
|
|
45
|
+
end
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
# typed: true
|
|
2
|
+
|
|
3
|
+
module Kuby
|
|
4
|
+
module CRDB
|
|
5
|
+
module DSL
|
|
6
|
+
module CRDB
|
|
7
|
+
module V1alpha1
|
|
8
|
+
class CrdbClusterSpecDataStorePvcSpecDataSource < ::KubeDSL::DSLObject
|
|
9
|
+
value_field :api_group
|
|
10
|
+
value_field :kind
|
|
11
|
+
value_field :name
|
|
12
|
+
|
|
13
|
+
validates :api_group, field: { format: :string }, presence: false
|
|
14
|
+
validates :kind, field: { format: :string }, presence: true
|
|
15
|
+
validates :name, field: { format: :string }, presence: true
|
|
16
|
+
|
|
17
|
+
def serialize
|
|
18
|
+
{}.tap do |result|
|
|
19
|
+
result[:apiGroup] = api_group
|
|
20
|
+
result[:kind] = kind
|
|
21
|
+
result[:name] = name
|
|
22
|
+
end
|
|
23
|
+
end
|
|
24
|
+
|
|
25
|
+
def kind_sym
|
|
26
|
+
:crdb_cluster_spec_data_store_pvc_spec_data_source
|
|
27
|
+
end
|
|
28
|
+
end
|
|
29
|
+
end
|
|
30
|
+
end
|
|
31
|
+
end
|
|
32
|
+
end
|
|
33
|
+
end
|