kuby-kube-db 0.7.0 → 0.7.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile +2 -2
- data/Rakefile +30 -27
- data/kuby-kube-db.gemspec +1 -1
- data/lib/kuby/kube-db/dsl/api/v1/agent_spec.rb +14 -6
- data/lib/kuby/kube-db/dsl/api/v1/azure_spec.rb +8 -2
- data/lib/kuby/kube-db/dsl/api/v1/b2_spec.rb +8 -2
- data/lib/kuby/kube-db/dsl/api/v1/backend.rb +18 -9
- data/lib/kuby/kube-db/dsl/api/v1/gcs_spec.rb +8 -2
- data/lib/kuby/kube-db/dsl/api/v1/local_spec.rb +35 -4
- data/lib/kuby/kube-db/dsl/api/v1/object_meta.rb +3 -1
- data/lib/kuby/kube-db/dsl/api/v1/pod_spec.rb +34 -13
- data/lib/kuby/kube-db/dsl/api/v1/pod_template_spec.rb +8 -4
- data/lib/kuby/kube-db/dsl/api/v1/prometheus_spec.rb +10 -3
- data/lib/kuby/kube-db/dsl/api/v1/rest_server_spec.rb +4 -2
- data/lib/kuby/kube-db/dsl/api/v1/s3_spec.rb +8 -2
- data/lib/kuby/kube-db/dsl/api/v1/service_port.rb +8 -2
- data/lib/kuby/kube-db/dsl/api/v1/service_spec.rb +18 -3
- data/lib/kuby/kube-db/dsl/api/v1/service_template_spec.rb +6 -3
- data/lib/kuby/kube-db/dsl/api/v1/swift_spec.rb +6 -2
- data/lib/kuby/kube-db/dsl/api/v1.rb +1 -1
- data/lib/kuby/kube-db/dsl/api.rb +1 -1
- data/lib/kuby/kube-db/dsl/appcatalog/v1alpha1/app_reference.rb +7 -1
- data/lib/kuby/kube-db/dsl/authorization/v1alpha1/database_access_request.rb +8 -3
- data/lib/kuby/kube-db/dsl/authorization/v1alpha1/database_access_request_condition.rb +9 -1
- data/lib/kuby/kube-db/dsl/authorization/v1alpha1/database_access_request_list.rb +6 -2
- data/lib/kuby/kube-db/dsl/authorization/v1alpha1/database_access_request_spec.rb +8 -4
- data/lib/kuby/kube-db/dsl/authorization/v1alpha1/database_access_request_status.rb +6 -2
- data/lib/kuby/kube-db/dsl/authorization/v1alpha1/lease.rb +7 -1
- data/lib/kuby/kube-db/dsl/authorization/v1alpha1/mongo_db_role.rb +8 -3
- data/lib/kuby/kube-db/dsl/authorization/v1alpha1/mongo_db_role_condition.rb +9 -1
- data/lib/kuby/kube-db/dsl/authorization/v1alpha1/mongo_db_role_list.rb +6 -2
- data/lib/kuby/kube-db/dsl/authorization/v1alpha1/mongo_db_role_spec.rb +13 -3
- data/lib/kuby/kube-db/dsl/authorization/v1alpha1/mongo_db_role_status.rb +6 -1
- data/lib/kuby/kube-db/dsl/authorization/v1alpha1/my_sql_role.rb +8 -3
- data/lib/kuby/kube-db/dsl/authorization/v1alpha1/my_sql_role_condition.rb +9 -1
- data/lib/kuby/kube-db/dsl/authorization/v1alpha1/my_sql_role_list.rb +6 -2
- data/lib/kuby/kube-db/dsl/authorization/v1alpha1/my_sql_role_spec.rb +13 -3
- data/lib/kuby/kube-db/dsl/authorization/v1alpha1/my_sql_role_status.rb +6 -1
- data/lib/kuby/kube-db/dsl/authorization/v1alpha1/postgres_role.rb +8 -3
- data/lib/kuby/kube-db/dsl/authorization/v1alpha1/postgres_role_condition.rb +9 -1
- data/lib/kuby/kube-db/dsl/authorization/v1alpha1/postgres_role_list.rb +6 -2
- data/lib/kuby/kube-db/dsl/authorization/v1alpha1/postgres_role_spec.rb +17 -3
- data/lib/kuby/kube-db/dsl/authorization/v1alpha1/postgres_role_status.rb +6 -1
- data/lib/kuby/kube-db/dsl/authorization/v1alpha1/role_reference.rb +7 -1
- data/lib/kuby/kube-db/dsl/catalog/v1alpha1/elasticsearch_version.rb +6 -2
- data/lib/kuby/kube-db/dsl/catalog/v1alpha1/elasticsearch_version_database.rb +3 -1
- data/lib/kuby/kube-db/dsl/catalog/v1alpha1/elasticsearch_version_exporter.rb +3 -1
- data/lib/kuby/kube-db/dsl/catalog/v1alpha1/elasticsearch_version_init_container.rb +3 -1
- data/lib/kuby/kube-db/dsl/catalog/v1alpha1/elasticsearch_version_list.rb +6 -2
- data/lib/kuby/kube-db/dsl/catalog/v1alpha1/elasticsearch_version_pod_security_policy.rb +5 -1
- data/lib/kuby/kube-db/dsl/catalog/v1alpha1/elasticsearch_version_spec.rb +12 -3
- data/lib/kuby/kube-db/dsl/catalog/v1alpha1/elasticsearch_version_tools.rb +3 -1
- data/lib/kuby/kube-db/dsl/catalog/v1alpha1/etcd_version.rb +6 -2
- data/lib/kuby/kube-db/dsl/catalog/v1alpha1/etcd_version_database.rb +3 -1
- data/lib/kuby/kube-db/dsl/catalog/v1alpha1/etcd_version_exporter.rb +3 -1
- data/lib/kuby/kube-db/dsl/catalog/v1alpha1/etcd_version_list.rb +6 -2
- data/lib/kuby/kube-db/dsl/catalog/v1alpha1/etcd_version_spec.rb +9 -2
- data/lib/kuby/kube-db/dsl/catalog/v1alpha1/etcd_version_tools.rb +3 -1
- data/lib/kuby/kube-db/dsl/catalog/v1alpha1/memcached_version.rb +6 -2
- data/lib/kuby/kube-db/dsl/catalog/v1alpha1/memcached_version_database.rb +3 -1
- data/lib/kuby/kube-db/dsl/catalog/v1alpha1/memcached_version_exporter.rb +3 -1
- data/lib/kuby/kube-db/dsl/catalog/v1alpha1/memcached_version_list.rb +6 -2
- data/lib/kuby/kube-db/dsl/catalog/v1alpha1/memcached_version_pod_security_policy.rb +3 -1
- data/lib/kuby/kube-db/dsl/catalog/v1alpha1/memcached_version_spec.rb +9 -2
- data/lib/kuby/kube-db/dsl/catalog/v1alpha1/mongo_db_version.rb +6 -2
- data/lib/kuby/kube-db/dsl/catalog/v1alpha1/mongo_db_version_database.rb +3 -1
- data/lib/kuby/kube-db/dsl/catalog/v1alpha1/mongo_db_version_exporter.rb +3 -1
- data/lib/kuby/kube-db/dsl/catalog/v1alpha1/mongo_db_version_init_container.rb +3 -1
- data/lib/kuby/kube-db/dsl/catalog/v1alpha1/mongo_db_version_list.rb +6 -2
- data/lib/kuby/kube-db/dsl/catalog/v1alpha1/mongo_db_version_pod_security_policy.rb +5 -1
- data/lib/kuby/kube-db/dsl/catalog/v1alpha1/mongo_db_version_spec.rb +12 -3
- data/lib/kuby/kube-db/dsl/catalog/v1alpha1/mongo_db_version_tools.rb +3 -1
- data/lib/kuby/kube-db/dsl/catalog/v1alpha1/my_sql_version.rb +6 -2
- data/lib/kuby/kube-db/dsl/catalog/v1alpha1/my_sql_version_database.rb +3 -1
- data/lib/kuby/kube-db/dsl/catalog/v1alpha1/my_sql_version_exporter.rb +3 -1
- data/lib/kuby/kube-db/dsl/catalog/v1alpha1/my_sql_version_init_container.rb +3 -1
- data/lib/kuby/kube-db/dsl/catalog/v1alpha1/my_sql_version_list.rb +6 -2
- data/lib/kuby/kube-db/dsl/catalog/v1alpha1/my_sql_version_pod_security_policy.rb +5 -1
- data/lib/kuby/kube-db/dsl/catalog/v1alpha1/my_sql_version_spec.rb +12 -3
- data/lib/kuby/kube-db/dsl/catalog/v1alpha1/my_sql_version_tools.rb +3 -1
- data/lib/kuby/kube-db/dsl/catalog/v1alpha1/postgres_version.rb +6 -2
- data/lib/kuby/kube-db/dsl/catalog/v1alpha1/postgres_version_database.rb +3 -1
- data/lib/kuby/kube-db/dsl/catalog/v1alpha1/postgres_version_exporter.rb +3 -1
- data/lib/kuby/kube-db/dsl/catalog/v1alpha1/postgres_version_list.rb +6 -2
- data/lib/kuby/kube-db/dsl/catalog/v1alpha1/postgres_version_pod_security_policy.rb +5 -1
- data/lib/kuby/kube-db/dsl/catalog/v1alpha1/postgres_version_spec.rb +11 -3
- data/lib/kuby/kube-db/dsl/catalog/v1alpha1/postgres_version_tools.rb +3 -1
- data/lib/kuby/kube-db/dsl/catalog/v1alpha1/redis_version.rb +6 -2
- data/lib/kuby/kube-db/dsl/catalog/v1alpha1/redis_version_database.rb +3 -1
- data/lib/kuby/kube-db/dsl/catalog/v1alpha1/redis_version_exporter.rb +3 -1
- data/lib/kuby/kube-db/dsl/catalog/v1alpha1/redis_version_list.rb +6 -2
- data/lib/kuby/kube-db/dsl/catalog/v1alpha1/redis_version_pod_security_policy.rb +3 -1
- data/lib/kuby/kube-db/dsl/catalog/v1alpha1/redis_version_spec.rb +9 -2
- data/lib/kuby/kube-db/dsl/kubedb/v1alpha1/backup_schedule_spec.rb +25 -10
- data/lib/kuby/kube-db/dsl/kubedb/v1alpha1/dormant_database.rb +8 -3
- data/lib/kuby/kube-db/dsl/kubedb/v1alpha1/dormant_database_list.rb +6 -2
- data/lib/kuby/kube-db/dsl/kubedb/v1alpha1/dormant_database_spec.rb +5 -2
- data/lib/kuby/kube-db/dsl/kubedb/v1alpha1/dormant_database_status.rb +11 -1
- data/lib/kuby/kube-db/dsl/kubedb/v1alpha1/elasticsearch.rb +8 -3
- data/lib/kuby/kube-db/dsl/kubedb/v1alpha1/elasticsearch_cluster_topology.rb +4 -0
- data/lib/kuby/kube-db/dsl/kubedb/v1alpha1/elasticsearch_list.rb +6 -2
- data/lib/kuby/kube-db/dsl/kubedb/v1alpha1/elasticsearch_node.rb +8 -2
- data/lib/kuby/kube-db/dsl/kubedb/v1alpha1/elasticsearch_spec.rb +32 -9
- data/lib/kuby/kube-db/dsl/kubedb/v1alpha1/elasticsearch_status.rb +7 -1
- data/lib/kuby/kube-db/dsl/kubedb/v1alpha1/etcd.rb +8 -3
- data/lib/kuby/kube-db/dsl/kubedb/v1alpha1/etcd_list.rb +6 -2
- data/lib/kuby/kube-db/dsl/kubedb/v1alpha1/etcd_spec.rb +25 -8
- data/lib/kuby/kube-db/dsl/kubedb/v1alpha1/etcd_status.rb +7 -1
- data/lib/kuby/kube-db/dsl/kubedb/v1alpha1/init_spec.rb +4 -0
- data/lib/kuby/kube-db/dsl/kubedb/v1alpha1/leader_election_config.rb +7 -1
- data/lib/kuby/kube-db/dsl/kubedb/v1alpha1/member_secret.rb +5 -1
- data/lib/kuby/kube-db/dsl/kubedb/v1alpha1/memcached.rb +8 -3
- data/lib/kuby/kube-db/dsl/kubedb/v1alpha1/memcached_list.rb +6 -2
- data/lib/kuby/kube-db/dsl/kubedb/v1alpha1/memcached_spec.rb +18 -7
- data/lib/kuby/kube-db/dsl/kubedb/v1alpha1/memcached_status.rb +7 -1
- data/lib/kuby/kube-db/dsl/kubedb/v1alpha1/mongo_db.rb +8 -3
- data/lib/kuby/kube-db/dsl/kubedb/v1alpha1/mongo_db_config_node.rb +11 -4
- data/lib/kuby/kube-db/dsl/kubedb/v1alpha1/mongo_db_list.rb +6 -2
- data/lib/kuby/kube-db/dsl/kubedb/v1alpha1/mongo_db_mongos_node.rb +11 -4
- data/lib/kuby/kube-db/dsl/kubedb/v1alpha1/mongo_db_replica_set.rb +5 -2
- data/lib/kuby/kube-db/dsl/kubedb/v1alpha1/mongo_db_shard_node.rb +13 -4
- data/lib/kuby/kube-db/dsl/kubedb/v1alpha1/mongo_db_sharding_topology.rb +4 -0
- data/lib/kuby/kube-db/dsl/kubedb/v1alpha1/mongo_db_spec.rb +28 -8
- data/lib/kuby/kube-db/dsl/kubedb/v1alpha1/mongo_db_status.rb +7 -1
- data/lib/kuby/kube-db/dsl/kubedb/v1alpha1/my_sql.rb +8 -3
- data/lib/kuby/kube-db/dsl/kubedb/v1alpha1/my_sql_cluster_topology.rb +5 -2
- data/lib/kuby/kube-db/dsl/kubedb/v1alpha1/my_sql_group_spec.rb +7 -1
- data/lib/kuby/kube-db/dsl/kubedb/v1alpha1/my_sql_list.rb +6 -2
- data/lib/kuby/kube-db/dsl/kubedb/v1alpha1/my_sql_spec.rb +26 -8
- data/lib/kuby/kube-db/dsl/kubedb/v1alpha1/my_sql_status.rb +7 -1
- data/lib/kuby/kube-db/dsl/kubedb/v1alpha1/origin.rb +3 -0
- data/lib/kuby/kube-db/dsl/kubedb/v1alpha1/origin_spec.rb +8 -0
- data/lib/kuby/kube-db/dsl/kubedb/v1alpha1/postgres.rb +8 -3
- data/lib/kuby/kube-db/dsl/kubedb/v1alpha1/postgres_archiver_spec.rb +3 -1
- data/lib/kuby/kube-db/dsl/kubedb/v1alpha1/postgres_list.rb +6 -2
- data/lib/kuby/kube-db/dsl/kubedb/v1alpha1/postgres_spec.rb +34 -10
- data/lib/kuby/kube-db/dsl/kubedb/v1alpha1/postgres_status.rb +7 -1
- data/lib/kuby/kube-db/dsl/kubedb/v1alpha1/postgres_wal_source_spec.rb +20 -8
- data/lib/kuby/kube-db/dsl/kubedb/v1alpha1/recovery_target.rb +9 -1
- data/lib/kuby/kube-db/dsl/kubedb/v1alpha1/redis.rb +8 -3
- data/lib/kuby/kube-db/dsl/kubedb/v1alpha1/redis_cluster_spec.rb +5 -1
- data/lib/kuby/kube-db/dsl/kubedb/v1alpha1/redis_list.rb +6 -2
- data/lib/kuby/kube-db/dsl/kubedb/v1alpha1/redis_spec.rb +26 -9
- data/lib/kuby/kube-db/dsl/kubedb/v1alpha1/redis_status.rb +7 -1
- data/lib/kuby/kube-db/dsl/kubedb/v1alpha1/script_source_spec.rb +31 -2
- data/lib/kuby/kube-db/dsl/kubedb/v1alpha1/snapshot.rb +8 -3
- data/lib/kuby/kube-db/dsl/kubedb/v1alpha1/snapshot_list.rb +6 -2
- data/lib/kuby/kube-db/dsl/kubedb/v1alpha1/snapshot_source_spec.rb +7 -1
- data/lib/kuby/kube-db/dsl/kubedb/v1alpha1/snapshot_spec.rb +26 -11
- data/lib/kuby/kube-db/dsl/kubedb/v1alpha1/snapshot_status.rb +11 -1
- data/lib/kuby/kube-db/dsl/kubedb/v1alpha1/tls_policy.rb +5 -2
- data/lib/kuby/kube-db/dsl/meta/v1/initializer.rb +3 -1
- data/lib/kuby/kube-db/dsl/meta/v1/initializers.rb +5 -2
- data/lib/kuby/kube-db/dsl/v1/volume_source.rb +28 -0
- data/lib/kuby/kube-db/dsl.rb +1 -1
- data/lib/kuby/kube-db/version.rb +1 -1
- metadata +13 -7
@@ -1,6 +1,12 @@
|
|
1
1
|
module Kuby::KubeDB::DSL::Kubedb::V1alpha1
|
2
2
|
class EtcdStatus < ::KubeDSL::DSLObject
|
3
|
-
|
3
|
+
value_field :observed_generation
|
4
|
+
value_field :phase
|
5
|
+
value_field :reason
|
6
|
+
|
7
|
+
validates :observed_generation, field: { format: :string }, presence: false
|
8
|
+
validates :phase, field: { format: :string }, presence: false
|
9
|
+
validates :reason, field: { format: :string }, presence: false
|
4
10
|
|
5
11
|
def serialize
|
6
12
|
{}.tap do |result|
|
@@ -4,6 +4,10 @@ module Kuby::KubeDB::DSL::Kubedb::V1alpha1
|
|
4
4
|
object_field(:snapshot_source) { Kuby::KubeDB::DSL::Kubedb::V1alpha1::SnapshotSourceSpec.new }
|
5
5
|
object_field(:script_source) { Kuby::KubeDB::DSL::Kubedb::V1alpha1::ScriptSourceSpec.new }
|
6
6
|
|
7
|
+
validates :postgres_wal, object: { kind_of: Kuby::KubeDB::DSL::Kubedb::V1alpha1::PostgresWALSourceSpec }
|
8
|
+
validates :snapshot_source, object: { kind_of: Kuby::KubeDB::DSL::Kubedb::V1alpha1::SnapshotSourceSpec }
|
9
|
+
validates :script_source, object: { kind_of: Kuby::KubeDB::DSL::Kubedb::V1alpha1::ScriptSourceSpec }
|
10
|
+
|
7
11
|
def serialize
|
8
12
|
{}.tap do |result|
|
9
13
|
result[:postgresWAL] = postgres_wal.serialize
|
@@ -1,6 +1,12 @@
|
|
1
1
|
module Kuby::KubeDB::DSL::Kubedb::V1alpha1
|
2
2
|
class LeaderElectionConfig < ::KubeDSL::DSLObject
|
3
|
-
|
3
|
+
value_field :lease_duration_seconds
|
4
|
+
value_field :renew_deadline_seconds
|
5
|
+
value_field :retry_period_seconds
|
6
|
+
|
7
|
+
validates :lease_duration_seconds, field: { format: :integer }, presence: true
|
8
|
+
validates :renew_deadline_seconds, field: { format: :integer }, presence: true
|
9
|
+
validates :retry_period_seconds, field: { format: :integer }, presence: true
|
4
10
|
|
5
11
|
def serialize
|
6
12
|
{}.tap do |result|
|
@@ -1,6 +1,10 @@
|
|
1
1
|
module Kuby::KubeDB::DSL::Kubedb::V1alpha1
|
2
2
|
class MemberSecret < ::KubeDSL::DSLObject
|
3
|
-
|
3
|
+
value_field :peer_secret
|
4
|
+
value_field :server_secret
|
5
|
+
|
6
|
+
validates :peer_secret, field: { format: :string }, presence: false
|
7
|
+
validates :server_secret, field: { format: :string }, presence: false
|
4
8
|
|
5
9
|
def serialize
|
6
10
|
{}.tap do |result|
|
@@ -1,16 +1,21 @@
|
|
1
1
|
module Kuby::KubeDB::DSL::Kubedb::V1alpha1
|
2
2
|
class Memcached < ::KubeDSL::DSLObject
|
3
|
-
value_fields :api_version
|
4
3
|
object_field(:status) { Kuby::KubeDB::DSL::Kubedb::V1alpha1::MemcachedStatus.new }
|
5
4
|
object_field(:spec) { Kuby::KubeDB::DSL::Kubedb::V1alpha1::MemcachedSpec.new }
|
5
|
+
value_field :api_version
|
6
6
|
object_field(:metadata) { KubeDSL::DSL::Meta::V1::ObjectMeta.new }
|
7
7
|
|
8
|
+
validates :status, object: { kind_of: Kuby::KubeDB::DSL::Kubedb::V1alpha1::MemcachedStatus }
|
9
|
+
validates :spec, object: { kind_of: Kuby::KubeDB::DSL::Kubedb::V1alpha1::MemcachedSpec }
|
10
|
+
validates :api_version, field: { format: :string }, presence: false
|
11
|
+
validates :metadata, object: { kind_of: KubeDSL::DSL::Meta::V1::ObjectMeta }
|
12
|
+
|
8
13
|
def serialize
|
9
14
|
{}.tap do |result|
|
10
|
-
result[:kind] = "Memcached"
|
11
|
-
result[:apiVersion] = api_version
|
12
15
|
result[:status] = status.serialize
|
16
|
+
result[:kind] = "Memcached"
|
13
17
|
result[:spec] = spec.serialize
|
18
|
+
result[:apiVersion] = api_version
|
14
19
|
result[:metadata] = metadata.serialize
|
15
20
|
end
|
16
21
|
end
|
@@ -1,14 +1,18 @@
|
|
1
1
|
module Kuby::KubeDB::DSL::Kubedb::V1alpha1
|
2
2
|
class MemcachedList < ::KubeDSL::DSLObject
|
3
|
-
value_fields :api_version
|
4
3
|
array_field(:item) { Kuby::KubeDB::DSL::Kubedb::V1alpha1::Memcached.new }
|
4
|
+
value_field :api_version
|
5
5
|
object_field(:metadata) { KubeDSL::DSL::Meta::V1::ListMeta.new }
|
6
6
|
|
7
|
+
validates :items, array: { kind_of: Kuby::KubeDB::DSL::Kubedb::V1alpha1::Memcached }, presence: false
|
8
|
+
validates :api_version, field: { format: :string }, presence: false
|
9
|
+
validates :metadata, object: { kind_of: KubeDSL::DSL::Meta::V1::ListMeta }
|
10
|
+
|
7
11
|
def serialize
|
8
12
|
{}.tap do |result|
|
13
|
+
result[:items] = items.map(&:serialize)
|
9
14
|
result[:kind] = "MemcachedList"
|
10
15
|
result[:apiVersion] = api_version
|
11
|
-
result[:items] = items.map(&:serialize)
|
12
16
|
result[:metadata] = metadata.serialize
|
13
17
|
end
|
14
18
|
end
|
@@ -1,22 +1,33 @@
|
|
1
1
|
module Kuby::KubeDB::DSL::Kubedb::V1alpha1
|
2
2
|
class MemcachedSpec < ::KubeDSL::DSLObject
|
3
|
-
|
4
|
-
object_field(:
|
5
|
-
|
6
|
-
object_field(:pod_template) { Kuby::KubeDB::DSL::
|
3
|
+
object_field(:service_template) { Kuby::KubeDB::DSL::API::V1::ServiceTemplateSpec.new }
|
4
|
+
object_field(:monitor) { Kuby::KubeDB::DSL::API::V1::AgentSpec.new }
|
5
|
+
value_field :replicas
|
6
|
+
object_field(:pod_template) { Kuby::KubeDB::DSL::API::V1::PodTemplateSpec.new }
|
7
|
+
value_field :termination_policy
|
7
8
|
object_field(:config_source) { Kuby::KubeDB::DSL::V1::VolumeSource.new }
|
8
9
|
object_field(:strategy) { KubeDSL::DSL::Apps::V1::DeploymentStrategy.new }
|
10
|
+
value_field :version
|
11
|
+
|
12
|
+
validates :service_template, object: { kind_of: Kuby::KubeDB::DSL::API::V1::ServiceTemplateSpec }
|
13
|
+
validates :monitor, object: { kind_of: Kuby::KubeDB::DSL::API::V1::AgentSpec }
|
14
|
+
validates :replicas, field: { format: :integer }, presence: true
|
15
|
+
validates :pod_template, object: { kind_of: Kuby::KubeDB::DSL::API::V1::PodTemplateSpec }
|
16
|
+
validates :termination_policy, field: { format: :string }, presence: false
|
17
|
+
validates :config_source, object: { kind_of: Kuby::KubeDB::DSL::V1::VolumeSource }
|
18
|
+
validates :strategy, object: { kind_of: KubeDSL::DSL::Apps::V1::DeploymentStrategy }
|
19
|
+
validates :version, field: { format: :string }, presence: false
|
9
20
|
|
10
21
|
def serialize
|
11
22
|
{}.tap do |result|
|
12
|
-
result[:replicas] = replicas
|
13
|
-
result[:terminationPolicy] = termination_policy
|
14
|
-
result[:version] = version
|
15
23
|
result[:serviceTemplate] = service_template.serialize
|
16
24
|
result[:monitor] = monitor.serialize
|
25
|
+
result[:replicas] = replicas
|
17
26
|
result[:podTemplate] = pod_template.serialize
|
27
|
+
result[:terminationPolicy] = termination_policy
|
18
28
|
result[:configSource] = config_source.serialize
|
19
29
|
result[:strategy] = strategy.serialize
|
30
|
+
result[:version] = version
|
20
31
|
end
|
21
32
|
end
|
22
33
|
|
@@ -1,6 +1,12 @@
|
|
1
1
|
module Kuby::KubeDB::DSL::Kubedb::V1alpha1
|
2
2
|
class MemcachedStatus < ::KubeDSL::DSLObject
|
3
|
-
|
3
|
+
value_field :observed_generation
|
4
|
+
value_field :phase
|
5
|
+
value_field :reason
|
6
|
+
|
7
|
+
validates :observed_generation, field: { format: :string }, presence: false
|
8
|
+
validates :phase, field: { format: :string }, presence: false
|
9
|
+
validates :reason, field: { format: :string }, presence: false
|
4
10
|
|
5
11
|
def serialize
|
6
12
|
{}.tap do |result|
|
@@ -1,16 +1,21 @@
|
|
1
1
|
module Kuby::KubeDB::DSL::Kubedb::V1alpha1
|
2
2
|
class MongoDB < ::KubeDSL::DSLObject
|
3
|
-
value_fields :api_version
|
4
3
|
object_field(:status) { Kuby::KubeDB::DSL::Kubedb::V1alpha1::MongoDBStatus.new }
|
5
4
|
object_field(:spec) { Kuby::KubeDB::DSL::Kubedb::V1alpha1::MongoDBSpec.new }
|
5
|
+
value_field :api_version
|
6
6
|
object_field(:metadata) { KubeDSL::DSL::Meta::V1::ObjectMeta.new }
|
7
7
|
|
8
|
+
validates :status, object: { kind_of: Kuby::KubeDB::DSL::Kubedb::V1alpha1::MongoDBStatus }
|
9
|
+
validates :spec, object: { kind_of: Kuby::KubeDB::DSL::Kubedb::V1alpha1::MongoDBSpec }
|
10
|
+
validates :api_version, field: { format: :string }, presence: false
|
11
|
+
validates :metadata, object: { kind_of: KubeDSL::DSL::Meta::V1::ObjectMeta }
|
12
|
+
|
8
13
|
def serialize
|
9
14
|
{}.tap do |result|
|
10
|
-
result[:kind] = "MongoDB"
|
11
|
-
result[:apiVersion] = api_version
|
12
15
|
result[:status] = status.serialize
|
16
|
+
result[:kind] = "MongoDB"
|
13
17
|
result[:spec] = spec.serialize
|
18
|
+
result[:apiVersion] = api_version
|
14
19
|
result[:metadata] = metadata.serialize
|
15
20
|
end
|
16
21
|
end
|
@@ -1,17 +1,24 @@
|
|
1
1
|
module Kuby::KubeDB::DSL::Kubedb::V1alpha1
|
2
2
|
class MongoDBConfigNode < ::KubeDSL::DSLObject
|
3
|
-
|
4
|
-
|
3
|
+
object_field(:pod_template) { Kuby::KubeDB::DSL::API::V1::PodTemplateSpec.new }
|
4
|
+
value_field :prefix
|
5
5
|
object_field(:storage) { KubeDSL::DSL::V1::PersistentVolumeClaimSpec.new }
|
6
6
|
object_field(:config_source) { Kuby::KubeDB::DSL::V1::VolumeSource.new }
|
7
|
+
value_field :replicas
|
8
|
+
|
9
|
+
validates :pod_template, object: { kind_of: Kuby::KubeDB::DSL::API::V1::PodTemplateSpec }
|
10
|
+
validates :prefix, field: { format: :string }, presence: false
|
11
|
+
validates :storage, object: { kind_of: KubeDSL::DSL::V1::PersistentVolumeClaimSpec }
|
12
|
+
validates :config_source, object: { kind_of: Kuby::KubeDB::DSL::V1::VolumeSource }
|
13
|
+
validates :replicas, field: { format: :integer }, presence: true
|
7
14
|
|
8
15
|
def serialize
|
9
16
|
{}.tap do |result|
|
10
|
-
result[:prefix] = prefix
|
11
|
-
result[:replicas] = replicas
|
12
17
|
result[:podTemplate] = pod_template.serialize
|
18
|
+
result[:prefix] = prefix
|
13
19
|
result[:storage] = storage.serialize
|
14
20
|
result[:configSource] = config_source.serialize
|
21
|
+
result[:replicas] = replicas
|
15
22
|
end
|
16
23
|
end
|
17
24
|
|
@@ -1,14 +1,18 @@
|
|
1
1
|
module Kuby::KubeDB::DSL::Kubedb::V1alpha1
|
2
2
|
class MongoDBList < ::KubeDSL::DSLObject
|
3
|
-
value_fields :api_version
|
4
3
|
array_field(:item) { Kuby::KubeDB::DSL::Kubedb::V1alpha1::MongoDB.new }
|
4
|
+
value_field :api_version
|
5
5
|
object_field(:metadata) { KubeDSL::DSL::Meta::V1::ListMeta.new }
|
6
6
|
|
7
|
+
validates :items, array: { kind_of: Kuby::KubeDB::DSL::Kubedb::V1alpha1::MongoDB }, presence: false
|
8
|
+
validates :api_version, field: { format: :string }, presence: false
|
9
|
+
validates :metadata, object: { kind_of: KubeDSL::DSL::Meta::V1::ListMeta }
|
10
|
+
|
7
11
|
def serialize
|
8
12
|
{}.tap do |result|
|
13
|
+
result[:items] = items.map(&:serialize)
|
9
14
|
result[:kind] = "MongoDBList"
|
10
15
|
result[:apiVersion] = api_version
|
11
|
-
result[:items] = items.map(&:serialize)
|
12
16
|
result[:metadata] = metadata.serialize
|
13
17
|
end
|
14
18
|
end
|
@@ -1,17 +1,24 @@
|
|
1
1
|
module Kuby::KubeDB::DSL::Kubedb::V1alpha1
|
2
2
|
class MongoDBMongosNode < ::KubeDSL::DSLObject
|
3
|
-
|
4
|
-
|
3
|
+
object_field(:pod_template) { Kuby::KubeDB::DSL::API::V1::PodTemplateSpec.new }
|
4
|
+
value_field :prefix
|
5
5
|
object_field(:strategy) { KubeDSL::DSL::Apps::V1::DeploymentStrategy.new }
|
6
6
|
object_field(:config_source) { Kuby::KubeDB::DSL::V1::VolumeSource.new }
|
7
|
+
value_field :replicas
|
8
|
+
|
9
|
+
validates :pod_template, object: { kind_of: Kuby::KubeDB::DSL::API::V1::PodTemplateSpec }
|
10
|
+
validates :prefix, field: { format: :string }, presence: false
|
11
|
+
validates :strategy, object: { kind_of: KubeDSL::DSL::Apps::V1::DeploymentStrategy }
|
12
|
+
validates :config_source, object: { kind_of: Kuby::KubeDB::DSL::V1::VolumeSource }
|
13
|
+
validates :replicas, field: { format: :integer }, presence: true
|
7
14
|
|
8
15
|
def serialize
|
9
16
|
{}.tap do |result|
|
10
|
-
result[:prefix] = prefix
|
11
|
-
result[:replicas] = replicas
|
12
17
|
result[:podTemplate] = pod_template.serialize
|
18
|
+
result[:prefix] = prefix
|
13
19
|
result[:strategy] = strategy.serialize
|
14
20
|
result[:configSource] = config_source.serialize
|
21
|
+
result[:replicas] = replicas
|
15
22
|
end
|
16
23
|
end
|
17
24
|
|
@@ -1,12 +1,15 @@
|
|
1
1
|
module Kuby::KubeDB::DSL::Kubedb::V1alpha1
|
2
2
|
class MongoDBReplicaSet < ::KubeDSL::DSLObject
|
3
|
-
value_fields :name
|
4
3
|
object_field(:key_file) { KubeDSL::DSL::V1::SecretVolumeSource.new }
|
4
|
+
value_field :name
|
5
|
+
|
6
|
+
validates :key_file, object: { kind_of: KubeDSL::DSL::V1::SecretVolumeSource }
|
7
|
+
validates :name, field: { format: :string }, presence: false
|
5
8
|
|
6
9
|
def serialize
|
7
10
|
{}.tap do |result|
|
8
|
-
result[:name] = name
|
9
11
|
result[:keyFile] = key_file.serialize
|
12
|
+
result[:name] = name
|
10
13
|
end
|
11
14
|
end
|
12
15
|
|
@@ -1,18 +1,27 @@
|
|
1
1
|
module Kuby::KubeDB::DSL::Kubedb::V1alpha1
|
2
2
|
class MongoDBShardNode < ::KubeDSL::DSLObject
|
3
|
-
|
4
|
-
object_field(:pod_template) { Kuby::KubeDB::DSL::
|
3
|
+
value_field :replicas
|
4
|
+
object_field(:pod_template) { Kuby::KubeDB::DSL::API::V1::PodTemplateSpec.new }
|
5
5
|
object_field(:storage) { KubeDSL::DSL::V1::PersistentVolumeClaimSpec.new }
|
6
6
|
object_field(:config_source) { Kuby::KubeDB::DSL::V1::VolumeSource.new }
|
7
|
+
value_field :shards
|
8
|
+
value_field :prefix
|
9
|
+
|
10
|
+
validates :replicas, field: { format: :integer }, presence: true
|
11
|
+
validates :pod_template, object: { kind_of: Kuby::KubeDB::DSL::API::V1::PodTemplateSpec }
|
12
|
+
validates :storage, object: { kind_of: KubeDSL::DSL::V1::PersistentVolumeClaimSpec }
|
13
|
+
validates :config_source, object: { kind_of: Kuby::KubeDB::DSL::V1::VolumeSource }
|
14
|
+
validates :shards, field: { format: :integer }, presence: true
|
15
|
+
validates :prefix, field: { format: :string }, presence: false
|
7
16
|
|
8
17
|
def serialize
|
9
18
|
{}.tap do |result|
|
10
19
|
result[:replicas] = replicas
|
11
|
-
result[:shards] = shards
|
12
|
-
result[:prefix] = prefix
|
13
20
|
result[:podTemplate] = pod_template.serialize
|
14
21
|
result[:storage] = storage.serialize
|
15
22
|
result[:configSource] = config_source.serialize
|
23
|
+
result[:shards] = shards
|
24
|
+
result[:prefix] = prefix
|
16
25
|
end
|
17
26
|
end
|
18
27
|
|
@@ -4,6 +4,10 @@ module Kuby::KubeDB::DSL::Kubedb::V1alpha1
|
|
4
4
|
object_field(:mongos) { Kuby::KubeDB::DSL::Kubedb::V1alpha1::MongoDBMongosNode.new }
|
5
5
|
object_field(:config_server) { Kuby::KubeDB::DSL::Kubedb::V1alpha1::MongoDBConfigNode.new }
|
6
6
|
|
7
|
+
validates :shard, object: { kind_of: Kuby::KubeDB::DSL::Kubedb::V1alpha1::MongoDBShardNode }
|
8
|
+
validates :mongos, object: { kind_of: Kuby::KubeDB::DSL::Kubedb::V1alpha1::MongoDBMongosNode }
|
9
|
+
validates :config_server, object: { kind_of: Kuby::KubeDB::DSL::Kubedb::V1alpha1::MongoDBConfigNode }
|
10
|
+
|
7
11
|
def serialize
|
8
12
|
{}.tap do |result|
|
9
13
|
result[:shard] = shard.serialize
|
@@ -1,35 +1,55 @@
|
|
1
1
|
module Kuby::KubeDB::DSL::Kubedb::V1alpha1
|
2
2
|
class MongoDBSpec < ::KubeDSL::DSLObject
|
3
|
-
value_fields :replicas, :storage_type, :termination_policy, :version
|
4
3
|
object_field(:shard_topology) { Kuby::KubeDB::DSL::Kubedb::V1alpha1::MongoDBShardingTopology.new }
|
5
|
-
object_field(:service_template) { Kuby::KubeDB::DSL::
|
6
|
-
object_field(:monitor) { Kuby::KubeDB::DSL::
|
4
|
+
object_field(:service_template) { Kuby::KubeDB::DSL::API::V1::ServiceTemplateSpec.new }
|
5
|
+
object_field(:monitor) { Kuby::KubeDB::DSL::API::V1::AgentSpec.new }
|
7
6
|
object_field(:replica_set) { Kuby::KubeDB::DSL::Kubedb::V1alpha1::MongoDBReplicaSet.new }
|
7
|
+
value_field :replicas
|
8
|
+
value_field :storage_type
|
9
|
+
value_field :termination_policy
|
8
10
|
object_field(:backup_schedule) { Kuby::KubeDB::DSL::Kubedb::V1alpha1::BackupScheduleSpec.new }
|
9
11
|
object_field(:storage) { KubeDSL::DSL::V1::PersistentVolumeClaimSpec.new }
|
10
12
|
object_field(:config_source) { Kuby::KubeDB::DSL::V1::VolumeSource.new }
|
11
13
|
object_field(:database_secret) { KubeDSL::DSL::V1::SecretVolumeSource.new }
|
12
|
-
object_field(:pod_template) { Kuby::KubeDB::DSL::
|
14
|
+
object_field(:pod_template) { Kuby::KubeDB::DSL::API::V1::PodTemplateSpec.new }
|
13
15
|
object_field(:init) { Kuby::KubeDB::DSL::Kubedb::V1alpha1::InitSpec.new }
|
16
|
+
value_field :version
|
14
17
|
object_field(:certificate_secret) { KubeDSL::DSL::V1::SecretVolumeSource.new }
|
15
18
|
object_field(:update_strategy) { KubeDSL::DSL::Apps::V1::StatefulSetUpdateStrategy.new }
|
16
19
|
|
20
|
+
validates :shard_topology, object: { kind_of: Kuby::KubeDB::DSL::Kubedb::V1alpha1::MongoDBShardingTopology }
|
21
|
+
validates :service_template, object: { kind_of: Kuby::KubeDB::DSL::API::V1::ServiceTemplateSpec }
|
22
|
+
validates :monitor, object: { kind_of: Kuby::KubeDB::DSL::API::V1::AgentSpec }
|
23
|
+
validates :replica_set, object: { kind_of: Kuby::KubeDB::DSL::Kubedb::V1alpha1::MongoDBReplicaSet }
|
24
|
+
validates :replicas, field: { format: :integer }, presence: true
|
25
|
+
validates :storage_type, field: { format: :string }, presence: false
|
26
|
+
validates :termination_policy, field: { format: :string }, presence: false
|
27
|
+
validates :backup_schedule, object: { kind_of: Kuby::KubeDB::DSL::Kubedb::V1alpha1::BackupScheduleSpec }
|
28
|
+
validates :storage, object: { kind_of: KubeDSL::DSL::V1::PersistentVolumeClaimSpec }
|
29
|
+
validates :config_source, object: { kind_of: Kuby::KubeDB::DSL::V1::VolumeSource }
|
30
|
+
validates :database_secret, object: { kind_of: KubeDSL::DSL::V1::SecretVolumeSource }
|
31
|
+
validates :pod_template, object: { kind_of: Kuby::KubeDB::DSL::API::V1::PodTemplateSpec }
|
32
|
+
validates :init, object: { kind_of: Kuby::KubeDB::DSL::Kubedb::V1alpha1::InitSpec }
|
33
|
+
validates :version, field: { format: :string }, presence: false
|
34
|
+
validates :certificate_secret, object: { kind_of: KubeDSL::DSL::V1::SecretVolumeSource }
|
35
|
+
validates :update_strategy, object: { kind_of: KubeDSL::DSL::Apps::V1::StatefulSetUpdateStrategy }
|
36
|
+
|
17
37
|
def serialize
|
18
38
|
{}.tap do |result|
|
19
|
-
result[:replicas] = replicas
|
20
|
-
result[:storageType] = storage_type
|
21
|
-
result[:terminationPolicy] = termination_policy
|
22
|
-
result[:version] = version
|
23
39
|
result[:shardTopology] = shard_topology.serialize
|
24
40
|
result[:serviceTemplate] = service_template.serialize
|
25
41
|
result[:monitor] = monitor.serialize
|
26
42
|
result[:replicaSet] = replica_set.serialize
|
43
|
+
result[:replicas] = replicas
|
44
|
+
result[:storageType] = storage_type
|
45
|
+
result[:terminationPolicy] = termination_policy
|
27
46
|
result[:backupSchedule] = backup_schedule.serialize
|
28
47
|
result[:storage] = storage.serialize
|
29
48
|
result[:configSource] = config_source.serialize
|
30
49
|
result[:databaseSecret] = database_secret.serialize
|
31
50
|
result[:podTemplate] = pod_template.serialize
|
32
51
|
result[:init] = init.serialize
|
52
|
+
result[:version] = version
|
33
53
|
result[:certificateSecret] = certificate_secret.serialize
|
34
54
|
result[:updateStrategy] = update_strategy.serialize
|
35
55
|
end
|
@@ -1,6 +1,12 @@
|
|
1
1
|
module Kuby::KubeDB::DSL::Kubedb::V1alpha1
|
2
2
|
class MongoDBStatus < ::KubeDSL::DSLObject
|
3
|
-
|
3
|
+
value_field :observed_generation
|
4
|
+
value_field :phase
|
5
|
+
value_field :reason
|
6
|
+
|
7
|
+
validates :observed_generation, field: { format: :string }, presence: false
|
8
|
+
validates :phase, field: { format: :string }, presence: false
|
9
|
+
validates :reason, field: { format: :string }, presence: false
|
4
10
|
|
5
11
|
def serialize
|
6
12
|
{}.tap do |result|
|
@@ -1,16 +1,21 @@
|
|
1
1
|
module Kuby::KubeDB::DSL::Kubedb::V1alpha1
|
2
2
|
class MySQL < ::KubeDSL::DSLObject
|
3
|
-
value_fields :api_version
|
4
3
|
object_field(:status) { Kuby::KubeDB::DSL::Kubedb::V1alpha1::MySQLStatus.new }
|
5
4
|
object_field(:spec) { Kuby::KubeDB::DSL::Kubedb::V1alpha1::MySQLSpec.new }
|
5
|
+
value_field :api_version
|
6
6
|
object_field(:metadata) { KubeDSL::DSL::Meta::V1::ObjectMeta.new }
|
7
7
|
|
8
|
+
validates :status, object: { kind_of: Kuby::KubeDB::DSL::Kubedb::V1alpha1::MySQLStatus }
|
9
|
+
validates :spec, object: { kind_of: Kuby::KubeDB::DSL::Kubedb::V1alpha1::MySQLSpec }
|
10
|
+
validates :api_version, field: { format: :string }, presence: false
|
11
|
+
validates :metadata, object: { kind_of: KubeDSL::DSL::Meta::V1::ObjectMeta }
|
12
|
+
|
8
13
|
def serialize
|
9
14
|
{}.tap do |result|
|
10
|
-
result[:kind] = "MySQL"
|
11
|
-
result[:apiVersion] = api_version
|
12
15
|
result[:status] = status.serialize
|
16
|
+
result[:kind] = "MySQL"
|
13
17
|
result[:spec] = spec.serialize
|
18
|
+
result[:apiVersion] = api_version
|
14
19
|
result[:metadata] = metadata.serialize
|
15
20
|
end
|
16
21
|
end
|
@@ -1,12 +1,15 @@
|
|
1
1
|
module Kuby::KubeDB::DSL::Kubedb::V1alpha1
|
2
2
|
class MySQLClusterTopology < ::KubeDSL::DSLObject
|
3
|
-
value_fields :mode
|
4
3
|
object_field(:group) { Kuby::KubeDB::DSL::Kubedb::V1alpha1::MySQLGroupSpec.new }
|
4
|
+
value_field :mode
|
5
|
+
|
6
|
+
validates :group, object: { kind_of: Kuby::KubeDB::DSL::Kubedb::V1alpha1::MySQLGroupSpec }
|
7
|
+
validates :mode, field: { format: :string }, presence: false
|
5
8
|
|
6
9
|
def serialize
|
7
10
|
{}.tap do |result|
|
8
|
-
result[:mode] = mode
|
9
11
|
result[:group] = group.serialize
|
12
|
+
result[:mode] = mode
|
10
13
|
end
|
11
14
|
end
|
12
15
|
|