kuby-kube-db 0.1.0 → 0.6.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +22 -0
- data/Gemfile +1 -2
- data/kuby-kube-db.gemspec +3 -2
- data/lib/kuby/kube-db/dsl.rb +3 -1
- data/lib/kuby/kube-db/dsl/api/v1.rb +8 -10
- data/lib/kuby/kube-db/dsl/api/v1/local_spec.rb +0 -2
- data/lib/kuby/kube-db/dsl/api/v1/object_meta.rb +1 -20
- data/lib/kuby/kube-db/dsl/api/v1/pod_spec.rb +1 -1
- data/lib/kuby/kube-db/dsl/api/v1/prometheus_spec.rb +3 -7
- data/lib/kuby/kube-db/dsl/api/v1/s3_spec.rb +1 -2
- data/lib/kuby/kube-db/dsl/api/v1/service_spec.rb +2 -4
- data/lib/kuby/kube-db/dsl/authorization.rb +3 -0
- data/lib/kuby/kube-db/dsl/authorization/v1alpha1.rb +24 -0
- data/lib/kuby/kube-db/dsl/authorization/v1alpha1/database_access_request.rb +22 -0
- data/lib/kuby/kube-db/dsl/authorization/v1alpha1/database_access_request_condition.rb +18 -0
- data/lib/kuby/kube-db/dsl/{catalog/v1alpha1/proxy_sql_version_list.rb → authorization/v1alpha1/database_access_request_list.rb} +5 -5
- data/lib/kuby/kube-db/dsl/authorization/v1alpha1/database_access_request_spec.rb +19 -0
- data/lib/kuby/kube-db/dsl/authorization/v1alpha1/database_access_request_status.rb +19 -0
- data/lib/kuby/kube-db/dsl/authorization/v1alpha1/lease.rb +17 -0
- data/lib/kuby/kube-db/dsl/{kubedb/v1alpha1/proxy_sql.rb → authorization/v1alpha1/mongo_db_role.rb} +6 -6
- data/lib/kuby/kube-db/dsl/authorization/v1alpha1/mongo_db_role_condition.rb +18 -0
- data/lib/kuby/kube-db/dsl/{kubedb/v1alpha1/percona_xtra_db_list.rb → authorization/v1alpha1/mongo_db_role_list.rb} +5 -5
- data/lib/kuby/kube-db/dsl/authorization/v1alpha1/mongo_db_role_spec.rb +22 -0
- data/lib/kuby/kube-db/dsl/authorization/v1alpha1/mongo_db_role_status.rb +18 -0
- data/lib/kuby/kube-db/dsl/{kubedb/v1alpha1/percona_xtra_db.rb → authorization/v1alpha1/my_sql_role.rb} +6 -6
- data/lib/kuby/kube-db/dsl/authorization/v1alpha1/my_sql_role_condition.rb +18 -0
- data/lib/kuby/kube-db/dsl/{kubedb/v1alpha1/proxy_sql_list.rb → authorization/v1alpha1/my_sql_role_list.rb} +5 -5
- data/lib/kuby/kube-db/dsl/authorization/v1alpha1/my_sql_role_spec.rb +22 -0
- data/lib/kuby/kube-db/dsl/authorization/v1alpha1/my_sql_role_status.rb +18 -0
- data/lib/kuby/kube-db/dsl/authorization/v1alpha1/postgres_role.rb +22 -0
- data/lib/kuby/kube-db/dsl/authorization/v1alpha1/postgres_role_condition.rb +18 -0
- data/lib/kuby/kube-db/dsl/authorization/v1alpha1/postgres_role_list.rb +20 -0
- data/lib/kuby/kube-db/dsl/authorization/v1alpha1/postgres_role_spec.rb +24 -0
- data/lib/kuby/kube-db/dsl/authorization/v1alpha1/postgres_role_status.rb +18 -0
- data/lib/kuby/kube-db/dsl/authorization/v1alpha1/role_reference.rb +17 -0
- data/lib/kuby/kube-db/dsl/catalog/v1alpha1.rb +38 -52
- data/lib/kuby/kube-db/dsl/catalog/v1alpha1/elasticsearch_version_init_container.rb +1 -2
- data/lib/kuby/kube-db/dsl/catalog/v1alpha1/elasticsearch_version_pod_security_policy.rb +2 -1
- data/lib/kuby/kube-db/dsl/catalog/v1alpha1/elasticsearch_version_spec.rb +1 -2
- data/lib/kuby/kube-db/dsl/catalog/v1alpha1/mongo_db_version_pod_security_policy.rb +2 -1
- data/lib/kuby/kube-db/dsl/catalog/v1alpha1/my_sql_version_pod_security_policy.rb +2 -1
- data/lib/kuby/kube-db/dsl/catalog/v1alpha1/my_sql_version_spec.rb +0 -2
- data/lib/kuby/kube-db/dsl/catalog/v1alpha1/postgres_version_pod_security_policy.rb +2 -1
- data/lib/kuby/kube-db/dsl/kubedb/v1alpha1.rb +48 -57
- data/lib/kuby/kube-db/dsl/kubedb/v1alpha1/backup_schedule_spec.rb +35 -0
- data/lib/kuby/kube-db/dsl/kubedb/v1alpha1/{pg_bouncer.rb → dormant_database.rb} +5 -5
- data/lib/kuby/kube-db/dsl/kubedb/v1alpha1/{pg_bouncer_list.rb → dormant_database_list.rb} +4 -4
- data/lib/kuby/kube-db/dsl/kubedb/v1alpha1/dormant_database_spec.rb +17 -0
- data/lib/kuby/kube-db/dsl/kubedb/v1alpha1/{percona_xtra_db_status.rb → dormant_database_status.rb} +5 -3
- data/lib/kuby/kube-db/dsl/kubedb/v1alpha1/elasticsearch_node.rb +1 -2
- data/lib/kuby/kube-db/dsl/kubedb/v1alpha1/elasticsearch_spec.rb +3 -5
- data/lib/kuby/kube-db/dsl/kubedb/v1alpha1/etcd_spec.rb +3 -3
- data/lib/kuby/kube-db/dsl/kubedb/v1alpha1/init_spec.rb +2 -2
- data/lib/kuby/kube-db/dsl/kubedb/v1alpha1/memcached_spec.rb +1 -3
- data/lib/kuby/kube-db/dsl/kubedb/v1alpha1/mongo_db_replica_set.rb +2 -0
- data/lib/kuby/kube-db/dsl/kubedb/v1alpha1/mongo_db_spec.rb +7 -11
- data/lib/kuby/kube-db/dsl/kubedb/v1alpha1/my_sql_spec.rb +6 -8
- data/lib/kuby/kube-db/dsl/kubedb/v1alpha1/origin.rb +17 -0
- data/lib/kuby/kube-db/dsl/kubedb/v1alpha1/origin_spec.rb +27 -0
- data/lib/kuby/kube-db/dsl/kubedb/v1alpha1/postgres_spec.rb +5 -7
- data/lib/kuby/kube-db/dsl/kubedb/v1alpha1/redis_spec.rb +1 -3
- data/lib/kuby/kube-db/dsl/kubedb/v1alpha1/script_source_spec.rb +0 -2
- data/lib/kuby/kube-db/dsl/kubedb/v1alpha1/{maria_db.rb → snapshot.rb} +5 -5
- data/lib/kuby/kube-db/dsl/kubedb/v1alpha1/{maria_db_list.rb → snapshot_list.rb} +4 -4
- data/lib/kuby/kube-db/dsl/kubedb/v1alpha1/snapshot_source_spec.rb +17 -0
- data/lib/kuby/kube-db/dsl/kubedb/v1alpha1/snapshot_spec.rb +35 -0
- data/lib/kuby/kube-db/dsl/kubedb/v1alpha1/{proxy_sql_status.rb → snapshot_status.rb} +5 -3
- data/lib/kuby/kube-db/dsl/meta.rb +3 -0
- data/lib/kuby/kube-db/dsl/meta/v1.rb +4 -0
- data/lib/kuby/kube-db/dsl/meta/v1/initializer.rb +15 -0
- data/lib/kuby/kube-db/dsl/meta/v1/initializers.rb +17 -0
- data/lib/kuby/kube-db/dsl/v1/volume_source.rb +0 -2
- data/lib/kuby/kube-db/entrypoint.rb +108 -144
- data/lib/kuby/kube-db/plugin.rb +34 -8
- data/lib/kuby/kube-db/version.rb +2 -2
- metadata +64 -46
- data/lib/kuby/kube-db/dsl/api/v1/prometheus_exporter_spec.rb +0 -22
- data/lib/kuby/kube-db/dsl/api/v1/service_monitor_spec.rb +0 -18
- data/lib/kuby/kube-db/dsl/catalog/v1alpha1/my_sql_version_replication_mode_detector.rb +0 -15
- data/lib/kuby/kube-db/dsl/catalog/v1alpha1/percona_xtra_db_version.rb +0 -20
- data/lib/kuby/kube-db/dsl/catalog/v1alpha1/percona_xtra_db_version_database.rb +0 -15
- data/lib/kuby/kube-db/dsl/catalog/v1alpha1/percona_xtra_db_version_exporter.rb +0 -15
- data/lib/kuby/kube-db/dsl/catalog/v1alpha1/percona_xtra_db_version_init_container.rb +0 -15
- data/lib/kuby/kube-db/dsl/catalog/v1alpha1/percona_xtra_db_version_list.rb +0 -20
- data/lib/kuby/kube-db/dsl/catalog/v1alpha1/percona_xtra_db_version_pod_security_policy.rb +0 -15
- data/lib/kuby/kube-db/dsl/catalog/v1alpha1/percona_xtra_db_version_spec.rb +0 -24
- data/lib/kuby/kube-db/dsl/catalog/v1alpha1/proxy_sql_version.rb +0 -20
- data/lib/kuby/kube-db/dsl/catalog/v1alpha1/proxy_sql_version_exporter.rb +0 -15
- data/lib/kuby/kube-db/dsl/catalog/v1alpha1/proxy_sql_version_pod_security_policy.rb +0 -15
- data/lib/kuby/kube-db/dsl/catalog/v1alpha1/proxy_sql_version_proxysql.rb +0 -15
- data/lib/kuby/kube-db/dsl/catalog/v1alpha1/proxy_sql_version_spec.rb +0 -22
- data/lib/kuby/kube-db/dsl/kubedb/v1alpha1/certificate_spec.rb +0 -20
- data/lib/kuby/kube-db/dsl/kubedb/v1alpha1/connection_pool_config.rb +0 -28
- data/lib/kuby/kube-db/dsl/kubedb/v1alpha1/databases.rb +0 -20
- data/lib/kuby/kube-db/dsl/kubedb/v1alpha1/maria_db_spec.rb +0 -36
- data/lib/kuby/kube-db/dsl/kubedb/v1alpha1/maria_db_status.rb +0 -17
- data/lib/kuby/kube-db/dsl/kubedb/v1alpha1/percona_xtra_db_spec.rb +0 -38
- data/lib/kuby/kube-db/dsl/kubedb/v1alpha1/pg_bouncer_spec.rb +0 -31
- data/lib/kuby/kube-db/dsl/kubedb/v1alpha1/pg_bouncer_status.rb +0 -17
- data/lib/kuby/kube-db/dsl/kubedb/v1alpha1/proxy_sql_backend_spec.rb +0 -17
- data/lib/kuby/kube-db/dsl/kubedb/v1alpha1/proxy_sql_spec.rb +0 -34
- data/lib/kuby/kube-db/dsl/kubedb/v1alpha1/tls_config.rb +0 -17
@@ -1,32 +1,30 @@
|
|
1
1
|
module Kuby::KubeDB::DSL::Kubedb::V1alpha1
|
2
2
|
class MySQLSpec < ::KubeDSL::DSLObject
|
3
|
-
value_fields :
|
4
|
-
object_field(:tls) { Kuby::KubeDB::DSL::Kubedb::V1alpha1::TLSConfig.new }
|
3
|
+
value_fields :replicas, :termination_policy, :storage_type, :version
|
5
4
|
object_field(:service_template) { Kuby::KubeDB::DSL::Api::V1::ServiceTemplateSpec.new }
|
6
5
|
object_field(:monitor) { Kuby::KubeDB::DSL::Api::V1::AgentSpec.new }
|
6
|
+
object_field(:pod_template) { Kuby::KubeDB::DSL::Api::V1::PodTemplateSpec.new }
|
7
|
+
object_field(:backup_schedule) { Kuby::KubeDB::DSL::Kubedb::V1alpha1::BackupScheduleSpec.new }
|
7
8
|
object_field(:storage) { KubeDSL::DSL::V1::PersistentVolumeClaimSpec.new }
|
8
9
|
object_field(:database_secret) { KubeDSL::DSL::V1::SecretVolumeSource.new }
|
9
10
|
object_field(:config_source) { Kuby::KubeDB::DSL::V1::VolumeSource.new }
|
10
|
-
object_field(:pod_template) { Kuby::KubeDB::DSL::Api::V1::PodTemplateSpec.new }
|
11
11
|
object_field(:init) { Kuby::KubeDB::DSL::Kubedb::V1alpha1::InitSpec.new }
|
12
12
|
object_field(:update_strategy) { KubeDSL::DSL::Apps::V1::StatefulSetUpdateStrategy.new }
|
13
13
|
object_field(:topology) { Kuby::KubeDB::DSL::Kubedb::V1alpha1::MySQLClusterTopology.new }
|
14
14
|
|
15
15
|
def serialize
|
16
16
|
{}.tap do |result|
|
17
|
-
result[:halted] = halted
|
18
17
|
result[:replicas] = replicas
|
19
|
-
result[:storageType] = storage_type
|
20
18
|
result[:terminationPolicy] = termination_policy
|
21
|
-
result[:
|
19
|
+
result[:storageType] = storage_type
|
22
20
|
result[:version] = version
|
23
|
-
result[:tls] = tls.serialize
|
24
21
|
result[:serviceTemplate] = service_template.serialize
|
25
22
|
result[:monitor] = monitor.serialize
|
23
|
+
result[:podTemplate] = pod_template.serialize
|
24
|
+
result[:backupSchedule] = backup_schedule.serialize
|
26
25
|
result[:storage] = storage.serialize
|
27
26
|
result[:databaseSecret] = database_secret.serialize
|
28
27
|
result[:configSource] = config_source.serialize
|
29
|
-
result[:podTemplate] = pod_template.serialize
|
30
28
|
result[:init] = init.serialize
|
31
29
|
result[:updateStrategy] = update_strategy.serialize
|
32
30
|
result[:topology] = topology.serialize
|
@@ -0,0 +1,17 @@
|
|
1
|
+
module Kuby::KubeDB::DSL::Kubedb::V1alpha1
|
2
|
+
class Origin < ::KubeDSL::DSLObject
|
3
|
+
object_field(:spec) { Kuby::KubeDB::DSL::Kubedb::V1alpha1::OriginSpec.new }
|
4
|
+
object_field(:metadata) { KubeDSL::DSL::Meta::V1::ObjectMeta.new }
|
5
|
+
|
6
|
+
def serialize
|
7
|
+
{}.tap do |result|
|
8
|
+
result[:spec] = spec.serialize
|
9
|
+
result[:metadata] = metadata.serialize
|
10
|
+
end
|
11
|
+
end
|
12
|
+
|
13
|
+
def kind_sym
|
14
|
+
:origin
|
15
|
+
end
|
16
|
+
end
|
17
|
+
end
|
@@ -0,0 +1,27 @@
|
|
1
|
+
module Kuby::KubeDB::DSL::Kubedb::V1alpha1
|
2
|
+
class OriginSpec < ::KubeDSL::DSLObject
|
3
|
+
object_field(:postgres) { Kuby::KubeDB::DSL::Kubedb::V1alpha1::PostgresSpec.new }
|
4
|
+
object_field(:mongodb) { Kuby::KubeDB::DSL::Kubedb::V1alpha1::MongoDBSpec.new }
|
5
|
+
object_field(:redis) { Kuby::KubeDB::DSL::Kubedb::V1alpha1::RedisSpec.new }
|
6
|
+
object_field(:elasticsearch) { Kuby::KubeDB::DSL::Kubedb::V1alpha1::ElasticsearchSpec.new }
|
7
|
+
object_field(:etcd) { Kuby::KubeDB::DSL::Kubedb::V1alpha1::EtcdSpec.new }
|
8
|
+
object_field(:mysql) { Kuby::KubeDB::DSL::Kubedb::V1alpha1::MySQLSpec.new }
|
9
|
+
object_field(:memcached) { Kuby::KubeDB::DSL::Kubedb::V1alpha1::MemcachedSpec.new }
|
10
|
+
|
11
|
+
def serialize
|
12
|
+
{}.tap do |result|
|
13
|
+
result[:postgres] = postgres.serialize
|
14
|
+
result[:mongodb] = mongodb.serialize
|
15
|
+
result[:redis] = redis.serialize
|
16
|
+
result[:elasticsearch] = elasticsearch.serialize
|
17
|
+
result[:etcd] = etcd.serialize
|
18
|
+
result[:mysql] = mysql.serialize
|
19
|
+
result[:memcached] = memcached.serialize
|
20
|
+
end
|
21
|
+
end
|
22
|
+
|
23
|
+
def kind_sym
|
24
|
+
:origin_spec
|
25
|
+
end
|
26
|
+
end
|
27
|
+
end
|
@@ -1,12 +1,12 @@
|
|
1
1
|
module Kuby::KubeDB::DSL::Kubedb::V1alpha1
|
2
2
|
class PostgresSpec < ::KubeDSL::DSLObject
|
3
|
-
value_fields :
|
4
|
-
object_field(:tls) { Kuby::KubeDB::DSL::Kubedb::V1alpha1::TLSConfig.new }
|
3
|
+
value_fields :replicas, :storage_type, :termination_policy, :version, :standby_mode, :streaming_mode
|
5
4
|
object_field(:service_template) { Kuby::KubeDB::DSL::Api::V1::ServiceTemplateSpec.new }
|
6
5
|
object_field(:monitor) { Kuby::KubeDB::DSL::Api::V1::AgentSpec.new }
|
6
|
+
object_field(:backup_schedule) { Kuby::KubeDB::DSL::Kubedb::V1alpha1::BackupScheduleSpec.new }
|
7
7
|
object_field(:storage) { KubeDSL::DSL::V1::PersistentVolumeClaimSpec.new }
|
8
|
-
object_field(:database_secret) { KubeDSL::DSL::V1::SecretVolumeSource.new }
|
9
8
|
object_field(:config_source) { Kuby::KubeDB::DSL::V1::VolumeSource.new }
|
9
|
+
object_field(:database_secret) { KubeDSL::DSL::V1::SecretVolumeSource.new }
|
10
10
|
object_field(:pod_template) { Kuby::KubeDB::DSL::Api::V1::PodTemplateSpec.new }
|
11
11
|
object_field(:init) { Kuby::KubeDB::DSL::Kubedb::V1alpha1::InitSpec.new }
|
12
12
|
object_field(:archiver) { Kuby::KubeDB::DSL::Kubedb::V1alpha1::PostgresArchiverSpec.new }
|
@@ -16,20 +16,18 @@ module Kuby::KubeDB::DSL::Kubedb::V1alpha1
|
|
16
16
|
|
17
17
|
def serialize
|
18
18
|
{}.tap do |result|
|
19
|
-
result[:halted] = halted
|
20
19
|
result[:replicas] = replicas
|
21
20
|
result[:storageType] = storage_type
|
22
21
|
result[:terminationPolicy] = termination_policy
|
23
|
-
result[:paused] = paused
|
24
22
|
result[:version] = version
|
25
23
|
result[:standbyMode] = standby_mode
|
26
24
|
result[:streamingMode] = streaming_mode
|
27
|
-
result[:tls] = tls.serialize
|
28
25
|
result[:serviceTemplate] = service_template.serialize
|
29
26
|
result[:monitor] = monitor.serialize
|
27
|
+
result[:backupSchedule] = backup_schedule.serialize
|
30
28
|
result[:storage] = storage.serialize
|
31
|
-
result[:databaseSecret] = database_secret.serialize
|
32
29
|
result[:configSource] = config_source.serialize
|
30
|
+
result[:databaseSecret] = database_secret.serialize
|
33
31
|
result[:podTemplate] = pod_template.serialize
|
34
32
|
result[:init] = init.serialize
|
35
33
|
result[:archiver] = archiver.serialize
|
@@ -1,6 +1,6 @@
|
|
1
1
|
module Kuby::KubeDB::DSL::Kubedb::V1alpha1
|
2
2
|
class RedisSpec < ::KubeDSL::DSLObject
|
3
|
-
value_fields :
|
3
|
+
value_fields :replicas, :termination_policy, :version, :storage_type, :mode
|
4
4
|
object_field(:service_template) { Kuby::KubeDB::DSL::Api::V1::ServiceTemplateSpec.new }
|
5
5
|
object_field(:monitor) { Kuby::KubeDB::DSL::Api::V1::AgentSpec.new }
|
6
6
|
object_field(:pod_template) { Kuby::KubeDB::DSL::Api::V1::PodTemplateSpec.new }
|
@@ -11,10 +11,8 @@ module Kuby::KubeDB::DSL::Kubedb::V1alpha1
|
|
11
11
|
|
12
12
|
def serialize
|
13
13
|
{}.tap do |result|
|
14
|
-
result[:paused] = paused
|
15
14
|
result[:replicas] = replicas
|
16
15
|
result[:terminationPolicy] = termination_policy
|
17
|
-
result[:halted] = halted
|
18
16
|
result[:version] = version
|
19
17
|
result[:storageType] = storage_type
|
20
18
|
result[:mode] = mode
|
@@ -6,7 +6,6 @@ module Kuby::KubeDB::DSL::Kubedb::V1alpha1
|
|
6
6
|
object_field(:git_repo) { KubeDSL::DSL::V1::GitRepoVolumeSource.new }
|
7
7
|
object_field(:flocker) { KubeDSL::DSL::V1::FlockerVolumeSource.new }
|
8
8
|
object_field(:storageos) { KubeDSL::DSL::V1::StorageOSVolumeSource.new }
|
9
|
-
object_field(:csi) { KubeDSL::DSL::V1::CSIVolumeSource.new }
|
10
9
|
object_field(:iscsi) { KubeDSL::DSL::V1::ISCSIVolumeSource.new }
|
11
10
|
object_field(:projected) { KubeDSL::DSL::V1::ProjectedVolumeSource.new }
|
12
11
|
object_field(:secret) { KubeDSL::DSL::V1::SecretVolumeSource.new }
|
@@ -38,7 +37,6 @@ module Kuby::KubeDB::DSL::Kubedb::V1alpha1
|
|
38
37
|
result[:gitRepo] = git_repo.serialize
|
39
38
|
result[:flocker] = flocker.serialize
|
40
39
|
result[:storageos] = storageos.serialize
|
41
|
-
result[:csi] = csi.serialize
|
42
40
|
result[:iscsi] = iscsi.serialize
|
43
41
|
result[:projected] = projected.serialize
|
44
42
|
result[:secret] = secret.serialize
|
@@ -1,13 +1,13 @@
|
|
1
1
|
module Kuby::KubeDB::DSL::Kubedb::V1alpha1
|
2
|
-
class
|
2
|
+
class Snapshot < ::KubeDSL::DSLObject
|
3
3
|
value_fields :api_version
|
4
|
-
object_field(:status) { Kuby::KubeDB::DSL::Kubedb::V1alpha1::
|
5
|
-
object_field(:spec) { Kuby::KubeDB::DSL::Kubedb::V1alpha1::
|
4
|
+
object_field(:status) { Kuby::KubeDB::DSL::Kubedb::V1alpha1::SnapshotStatus.new }
|
5
|
+
object_field(:spec) { Kuby::KubeDB::DSL::Kubedb::V1alpha1::SnapshotSpec.new }
|
6
6
|
object_field(:metadata) { KubeDSL::DSL::Meta::V1::ObjectMeta.new }
|
7
7
|
|
8
8
|
def serialize
|
9
9
|
{}.tap do |result|
|
10
|
-
result[:kind] = "
|
10
|
+
result[:kind] = "Snapshot"
|
11
11
|
result[:apiVersion] = api_version
|
12
12
|
result[:status] = status.serialize
|
13
13
|
result[:spec] = spec.serialize
|
@@ -16,7 +16,7 @@ module Kuby::KubeDB::DSL::Kubedb::V1alpha1
|
|
16
16
|
end
|
17
17
|
|
18
18
|
def kind_sym
|
19
|
-
:
|
19
|
+
:snapshot
|
20
20
|
end
|
21
21
|
end
|
22
22
|
end
|
@@ -1,12 +1,12 @@
|
|
1
1
|
module Kuby::KubeDB::DSL::Kubedb::V1alpha1
|
2
|
-
class
|
2
|
+
class SnapshotList < ::KubeDSL::DSLObject
|
3
3
|
value_fields :api_version
|
4
|
-
array_field(:item) { Kuby::KubeDB::DSL::Kubedb::V1alpha1::
|
4
|
+
array_field(:item) { Kuby::KubeDB::DSL::Kubedb::V1alpha1::Snapshot.new }
|
5
5
|
object_field(:metadata) { KubeDSL::DSL::Meta::V1::ListMeta.new }
|
6
6
|
|
7
7
|
def serialize
|
8
8
|
{}.tap do |result|
|
9
|
-
result[:kind] = "
|
9
|
+
result[:kind] = "SnapshotList"
|
10
10
|
result[:apiVersion] = api_version
|
11
11
|
result[:items] = items.map(&:serialize)
|
12
12
|
result[:metadata] = metadata.serialize
|
@@ -14,7 +14,7 @@ module Kuby::KubeDB::DSL::Kubedb::V1alpha1
|
|
14
14
|
end
|
15
15
|
|
16
16
|
def kind_sym
|
17
|
-
:
|
17
|
+
:snapshot_list
|
18
18
|
end
|
19
19
|
end
|
20
20
|
end
|
@@ -0,0 +1,17 @@
|
|
1
|
+
module Kuby::KubeDB::DSL::Kubedb::V1alpha1
|
2
|
+
class SnapshotSourceSpec < ::KubeDSL::DSLObject
|
3
|
+
value_fields :args, :namespace, :name
|
4
|
+
|
5
|
+
def serialize
|
6
|
+
{}.tap do |result|
|
7
|
+
result[:args] = args
|
8
|
+
result[:namespace] = namespace
|
9
|
+
result[:name] = name
|
10
|
+
end
|
11
|
+
end
|
12
|
+
|
13
|
+
def kind_sym
|
14
|
+
:snapshot_source_spec
|
15
|
+
end
|
16
|
+
end
|
17
|
+
end
|
@@ -0,0 +1,35 @@
|
|
1
|
+
module Kuby::KubeDB::DSL::Kubedb::V1alpha1
|
2
|
+
class SnapshotSpec < ::KubeDSL::DSLObject
|
3
|
+
value_fields :storage_secret_name, :storage_type, :database_name
|
4
|
+
object_field(:b2) { Kuby::KubeDB::DSL::Api::V1::B2Spec.new }
|
5
|
+
object_field(:pod_template) { Kuby::KubeDB::DSL::Api::V1::PodTemplateSpec.new }
|
6
|
+
object_field(:swift) { Kuby::KubeDB::DSL::Api::V1::SwiftSpec.new }
|
7
|
+
object_field(:pod_volume_claim_spec) { KubeDSL::DSL::V1::PersistentVolumeClaimSpec.new }
|
8
|
+
object_field(:rest) { Kuby::KubeDB::DSL::Api::V1::RestServerSpec.new }
|
9
|
+
object_field(:s3) { Kuby::KubeDB::DSL::Api::V1::S3Spec.new }
|
10
|
+
object_field(:gcs) { Kuby::KubeDB::DSL::Api::V1::GCSSpec.new }
|
11
|
+
object_field(:azure) { Kuby::KubeDB::DSL::Api::V1::AzureSpec.new }
|
12
|
+
object_field(:local) { Kuby::KubeDB::DSL::Api::V1::LocalSpec.new }
|
13
|
+
|
14
|
+
def serialize
|
15
|
+
{}.tap do |result|
|
16
|
+
result[:storageSecretName] = storage_secret_name
|
17
|
+
result[:storageType] = storage_type
|
18
|
+
result[:databaseName] = database_name
|
19
|
+
result[:b2] = b2.serialize
|
20
|
+
result[:podTemplate] = pod_template.serialize
|
21
|
+
result[:swift] = swift.serialize
|
22
|
+
result[:podVolumeClaimSpec] = pod_volume_claim_spec.serialize
|
23
|
+
result[:rest] = rest.serialize
|
24
|
+
result[:s3] = s3.serialize
|
25
|
+
result[:gcs] = gcs.serialize
|
26
|
+
result[:azure] = azure.serialize
|
27
|
+
result[:local] = local.serialize
|
28
|
+
end
|
29
|
+
end
|
30
|
+
|
31
|
+
def kind_sym
|
32
|
+
:snapshot_spec
|
33
|
+
end
|
34
|
+
end
|
35
|
+
end
|
@@ -1,17 +1,19 @@
|
|
1
1
|
module Kuby::KubeDB::DSL::Kubedb::V1alpha1
|
2
|
-
class
|
3
|
-
value_fields :observed_generation, :phase, :reason
|
2
|
+
class SnapshotStatus < ::KubeDSL::DSLObject
|
3
|
+
value_fields :observed_generation, :phase, :reason, :completion_time, :start_time
|
4
4
|
|
5
5
|
def serialize
|
6
6
|
{}.tap do |result|
|
7
7
|
result[:observedGeneration] = observed_generation
|
8
8
|
result[:phase] = phase
|
9
9
|
result[:reason] = reason
|
10
|
+
result[:completionTime] = completion_time
|
11
|
+
result[:startTime] = start_time
|
10
12
|
end
|
11
13
|
end
|
12
14
|
|
13
15
|
def kind_sym
|
14
|
-
:
|
16
|
+
:snapshot_status
|
15
17
|
end
|
16
18
|
end
|
17
19
|
end
|
@@ -0,0 +1,17 @@
|
|
1
|
+
module Kuby::KubeDB::DSL::Meta::V1
|
2
|
+
class Initializers < ::KubeDSL::DSLObject
|
3
|
+
array_field(:pending) { Kuby::KubeDB::DSL::Meta::V1::Initializer.new }
|
4
|
+
object_field(:result) { KubeDSL::DSL::Meta::V1::Status.new }
|
5
|
+
|
6
|
+
def serialize
|
7
|
+
{}.tap do |result|
|
8
|
+
result[:pending] = pendings.map(&:serialize)
|
9
|
+
result[:result] = result.serialize
|
10
|
+
end
|
11
|
+
end
|
12
|
+
|
13
|
+
def kind_sym
|
14
|
+
:initializers
|
15
|
+
end
|
16
|
+
end
|
17
|
+
end
|
@@ -5,7 +5,6 @@ module Kuby::KubeDB::DSL::V1
|
|
5
5
|
object_field(:git_repo) { KubeDSL::DSL::V1::GitRepoVolumeSource.new }
|
6
6
|
object_field(:flocker) { KubeDSL::DSL::V1::FlockerVolumeSource.new }
|
7
7
|
object_field(:storageos) { KubeDSL::DSL::V1::StorageOSVolumeSource.new }
|
8
|
-
object_field(:csi) { KubeDSL::DSL::V1::CSIVolumeSource.new }
|
9
8
|
object_field(:iscsi) { KubeDSL::DSL::V1::ISCSIVolumeSource.new }
|
10
9
|
object_field(:projected) { KubeDSL::DSL::V1::ProjectedVolumeSource.new }
|
11
10
|
object_field(:secret) { KubeDSL::DSL::V1::SecretVolumeSource.new }
|
@@ -36,7 +35,6 @@ module Kuby::KubeDB::DSL::V1
|
|
36
35
|
result[:gitRepo] = git_repo.serialize
|
37
36
|
result[:flocker] = flocker.serialize
|
38
37
|
result[:storageos] = storageos.serialize
|
39
|
-
result[:csi] = csi.serialize
|
40
38
|
result[:iscsi] = iscsi.serialize
|
41
39
|
result[:projected] = projected.serialize
|
42
40
|
result[:secret] = secret.serialize
|
@@ -1,269 +1,233 @@
|
|
1
1
|
module Kuby::KubeDB::Entrypoint
|
2
|
+
def backup_schedule_spec(&block)
|
3
|
+
::Kuby::KubeDB::DSL::Kubedb::V1alpha1::BackupScheduleSpec.new(&block)
|
4
|
+
end
|
5
|
+
|
2
6
|
def etcd_status(&block)
|
3
7
|
::Kuby::KubeDB::DSL::Kubedb::V1alpha1::EtcdStatus.new(&block)
|
4
8
|
end
|
5
9
|
|
6
|
-
def
|
7
|
-
::Kuby::KubeDB::DSL::Kubedb::V1alpha1::
|
10
|
+
def elasticsearch_spec(&block)
|
11
|
+
::Kuby::KubeDB::DSL::Kubedb::V1alpha1::ElasticsearchSpec.new(&block)
|
8
12
|
end
|
9
13
|
|
10
|
-
def
|
11
|
-
::Kuby::KubeDB::DSL::Kubedb::V1alpha1::
|
14
|
+
def snapshot_status(&block)
|
15
|
+
::Kuby::KubeDB::DSL::Kubedb::V1alpha1::SnapshotStatus.new(&block)
|
12
16
|
end
|
13
17
|
|
14
|
-
def
|
15
|
-
::Kuby::KubeDB::DSL::Kubedb::V1alpha1::
|
18
|
+
def postgres_wal_source_spec(&block)
|
19
|
+
::Kuby::KubeDB::DSL::Kubedb::V1alpha1::PostgresWALSourceSpec.new(&block)
|
16
20
|
end
|
17
21
|
|
18
|
-
def
|
19
|
-
::Kuby::KubeDB::DSL::Kubedb::V1alpha1::
|
22
|
+
def my_sql_status(&block)
|
23
|
+
::Kuby::KubeDB::DSL::Kubedb::V1alpha1::MySQLStatus.new(&block)
|
20
24
|
end
|
21
25
|
|
22
|
-
def
|
23
|
-
::Kuby::KubeDB::DSL::Kubedb::V1alpha1::
|
26
|
+
def etcd_spec(&block)
|
27
|
+
::Kuby::KubeDB::DSL::Kubedb::V1alpha1::EtcdSpec.new(&block)
|
24
28
|
end
|
25
29
|
|
26
|
-
def
|
27
|
-
::Kuby::KubeDB::DSL::Kubedb::V1alpha1::
|
30
|
+
def mongo_db_shard_node(&block)
|
31
|
+
::Kuby::KubeDB::DSL::Kubedb::V1alpha1::MongoDBShardNode.new(&block)
|
28
32
|
end
|
29
33
|
|
30
34
|
def mongo_db_config_node(&block)
|
31
35
|
::Kuby::KubeDB::DSL::Kubedb::V1alpha1::MongoDBConfigNode.new(&block)
|
32
36
|
end
|
33
37
|
|
34
|
-
def
|
35
|
-
::Kuby::KubeDB::DSL::Kubedb::V1alpha1::
|
36
|
-
end
|
37
|
-
|
38
|
-
def mongo_db(&block)
|
39
|
-
::Kuby::KubeDB::DSL::Kubedb::V1alpha1::MongoDB.new(&block)
|
38
|
+
def redis_list(&block)
|
39
|
+
::Kuby::KubeDB::DSL::Kubedb::V1alpha1::RedisList.new(&block)
|
40
40
|
end
|
41
41
|
|
42
|
-
def
|
43
|
-
::Kuby::KubeDB::DSL::Kubedb::V1alpha1::
|
42
|
+
def member_secret(&block)
|
43
|
+
::Kuby::KubeDB::DSL::Kubedb::V1alpha1::MemberSecret.new(&block)
|
44
44
|
end
|
45
45
|
|
46
|
-
def
|
47
|
-
::Kuby::KubeDB::DSL::Kubedb::V1alpha1::
|
46
|
+
def postgres_status(&block)
|
47
|
+
::Kuby::KubeDB::DSL::Kubedb::V1alpha1::PostgresStatus.new(&block)
|
48
48
|
end
|
49
49
|
|
50
|
-
def
|
51
|
-
::Kuby::KubeDB::DSL::Kubedb::V1alpha1::
|
50
|
+
def my_sql_cluster_topology(&block)
|
51
|
+
::Kuby::KubeDB::DSL::Kubedb::V1alpha1::MySQLClusterTopology.new(&block)
|
52
52
|
end
|
53
53
|
|
54
|
-
def
|
55
|
-
::Kuby::KubeDB::DSL::Kubedb::V1alpha1::
|
54
|
+
def snapshot(&block)
|
55
|
+
::Kuby::KubeDB::DSL::Kubedb::V1alpha1::Snapshot.new(&block)
|
56
56
|
end
|
57
57
|
|
58
|
-
def
|
59
|
-
::Kuby::KubeDB::DSL::Kubedb::V1alpha1::
|
58
|
+
def my_sql(&block)
|
59
|
+
::Kuby::KubeDB::DSL::Kubedb::V1alpha1::MySQL.new(&block)
|
60
60
|
end
|
61
61
|
|
62
|
-
def
|
63
|
-
::Kuby::KubeDB::DSL::Kubedb::V1alpha1::
|
62
|
+
def my_sql_group_spec(&block)
|
63
|
+
::Kuby::KubeDB::DSL::Kubedb::V1alpha1::MySQLGroupSpec.new(&block)
|
64
64
|
end
|
65
65
|
|
66
|
-
def
|
67
|
-
::Kuby::KubeDB::DSL::Kubedb::V1alpha1::
|
66
|
+
def etcd_list(&block)
|
67
|
+
::Kuby::KubeDB::DSL::Kubedb::V1alpha1::EtcdList.new(&block)
|
68
68
|
end
|
69
69
|
|
70
|
-
def
|
71
|
-
::Kuby::KubeDB::DSL::Kubedb::V1alpha1::
|
70
|
+
def mongo_db_status(&block)
|
71
|
+
::Kuby::KubeDB::DSL::Kubedb::V1alpha1::MongoDBStatus.new(&block)
|
72
72
|
end
|
73
73
|
|
74
|
-
def
|
75
|
-
::Kuby::KubeDB::DSL::Kubedb::V1alpha1::
|
74
|
+
def elasticsearch_cluster_topology(&block)
|
75
|
+
::Kuby::KubeDB::DSL::Kubedb::V1alpha1::ElasticsearchClusterTopology.new(&block)
|
76
76
|
end
|
77
77
|
|
78
|
-
def
|
79
|
-
::Kuby::KubeDB::DSL::Kubedb::V1alpha1::
|
78
|
+
def memcached_spec(&block)
|
79
|
+
::Kuby::KubeDB::DSL::Kubedb::V1alpha1::MemcachedSpec.new(&block)
|
80
80
|
end
|
81
81
|
|
82
|
-
def
|
83
|
-
::Kuby::KubeDB::DSL::Kubedb::V1alpha1::
|
82
|
+
def my_sql_list(&block)
|
83
|
+
::Kuby::KubeDB::DSL::Kubedb::V1alpha1::MySQLList.new(&block)
|
84
84
|
end
|
85
85
|
|
86
|
-
def
|
87
|
-
::Kuby::KubeDB::DSL::Kubedb::V1alpha1::
|
86
|
+
def dormant_database(&block)
|
87
|
+
::Kuby::KubeDB::DSL::Kubedb::V1alpha1::DormantDatabase.new(&block)
|
88
88
|
end
|
89
89
|
|
90
|
-
def
|
91
|
-
::Kuby::KubeDB::DSL::Kubedb::V1alpha1::
|
90
|
+
def leader_election_config(&block)
|
91
|
+
::Kuby::KubeDB::DSL::Kubedb::V1alpha1::LeaderElectionConfig.new(&block)
|
92
92
|
end
|
93
93
|
|
94
94
|
def my_sql_spec(&block)
|
95
95
|
::Kuby::KubeDB::DSL::Kubedb::V1alpha1::MySQLSpec.new(&block)
|
96
96
|
end
|
97
97
|
|
98
|
-
def
|
99
|
-
::Kuby::KubeDB::DSL::Kubedb::V1alpha1::
|
100
|
-
end
|
101
|
-
|
102
|
-
def mongo_db_sharding_topology(&block)
|
103
|
-
::Kuby::KubeDB::DSL::Kubedb::V1alpha1::MongoDBShardingTopology.new(&block)
|
104
|
-
end
|
105
|
-
|
106
|
-
def proxy_sql(&block)
|
107
|
-
::Kuby::KubeDB::DSL::Kubedb::V1alpha1::ProxySQL.new(&block)
|
108
|
-
end
|
109
|
-
|
110
|
-
def percona_xtra_db(&block)
|
111
|
-
::Kuby::KubeDB::DSL::Kubedb::V1alpha1::PerconaXtraDB.new(&block)
|
112
|
-
end
|
113
|
-
|
114
|
-
def member_secret(&block)
|
115
|
-
::Kuby::KubeDB::DSL::Kubedb::V1alpha1::MemberSecret.new(&block)
|
98
|
+
def mongo_db_list(&block)
|
99
|
+
::Kuby::KubeDB::DSL::Kubedb::V1alpha1::MongoDBList.new(&block)
|
116
100
|
end
|
117
101
|
|
118
|
-
def
|
119
|
-
::Kuby::KubeDB::DSL::Kubedb::V1alpha1::
|
102
|
+
def postgres_list(&block)
|
103
|
+
::Kuby::KubeDB::DSL::Kubedb::V1alpha1::PostgresList.new(&block)
|
120
104
|
end
|
121
105
|
|
122
|
-
def
|
123
|
-
::Kuby::KubeDB::DSL::Kubedb::V1alpha1::
|
106
|
+
def origin(&block)
|
107
|
+
::Kuby::KubeDB::DSL::Kubedb::V1alpha1::Origin.new(&block)
|
124
108
|
end
|
125
109
|
|
126
|
-
def
|
127
|
-
::Kuby::KubeDB::DSL::Kubedb::V1alpha1::
|
110
|
+
def snapshot_list(&block)
|
111
|
+
::Kuby::KubeDB::DSL::Kubedb::V1alpha1::SnapshotList.new(&block)
|
128
112
|
end
|
129
113
|
|
130
|
-
def
|
131
|
-
::Kuby::KubeDB::DSL::Kubedb::V1alpha1::
|
114
|
+
def elasticsearch_list(&block)
|
115
|
+
::Kuby::KubeDB::DSL::Kubedb::V1alpha1::ElasticsearchList.new(&block)
|
132
116
|
end
|
133
117
|
|
134
|
-
def
|
135
|
-
::Kuby::KubeDB::DSL::Kubedb::V1alpha1::
|
118
|
+
def elasticsearch_status(&block)
|
119
|
+
::Kuby::KubeDB::DSL::Kubedb::V1alpha1::ElasticsearchStatus.new(&block)
|
136
120
|
end
|
137
121
|
|
138
|
-
def
|
139
|
-
::Kuby::KubeDB::DSL::Kubedb::V1alpha1::
|
122
|
+
def mongo_db_spec(&block)
|
123
|
+
::Kuby::KubeDB::DSL::Kubedb::V1alpha1::MongoDBSpec.new(&block)
|
140
124
|
end
|
141
125
|
|
142
|
-
def
|
143
|
-
::Kuby::KubeDB::DSL::Kubedb::V1alpha1::
|
126
|
+
def mongo_db_replica_set(&block)
|
127
|
+
::Kuby::KubeDB::DSL::Kubedb::V1alpha1::MongoDBReplicaSet.new(&block)
|
144
128
|
end
|
145
129
|
|
146
|
-
def
|
147
|
-
::Kuby::KubeDB::DSL::Kubedb::V1alpha1::
|
130
|
+
def redis_status(&block)
|
131
|
+
::Kuby::KubeDB::DSL::Kubedb::V1alpha1::RedisStatus.new(&block)
|
148
132
|
end
|
149
133
|
|
150
|
-
def
|
151
|
-
::Kuby::KubeDB::DSL::Kubedb::V1alpha1::
|
134
|
+
def memcached_list(&block)
|
135
|
+
::Kuby::KubeDB::DSL::Kubedb::V1alpha1::MemcachedList.new(&block)
|
152
136
|
end
|
153
137
|
|
154
|
-
def
|
155
|
-
::Kuby::KubeDB::DSL::Kubedb::V1alpha1::
|
138
|
+
def origin_spec(&block)
|
139
|
+
::Kuby::KubeDB::DSL::Kubedb::V1alpha1::OriginSpec.new(&block)
|
156
140
|
end
|
157
141
|
|
158
|
-
def
|
159
|
-
::Kuby::KubeDB::DSL::Kubedb::V1alpha1::
|
142
|
+
def dormant_database_spec(&block)
|
143
|
+
::Kuby::KubeDB::DSL::Kubedb::V1alpha1::DormantDatabaseSpec.new(&block)
|
160
144
|
end
|
161
145
|
|
162
146
|
def elasticsearch_node(&block)
|
163
147
|
::Kuby::KubeDB::DSL::Kubedb::V1alpha1::ElasticsearchNode.new(&block)
|
164
148
|
end
|
165
149
|
|
166
|
-
def
|
167
|
-
::Kuby::KubeDB::DSL::Kubedb::V1alpha1::
|
168
|
-
end
|
169
|
-
|
170
|
-
def redis_status(&block)
|
171
|
-
::Kuby::KubeDB::DSL::Kubedb::V1alpha1::RedisStatus.new(&block)
|
172
|
-
end
|
173
|
-
|
174
|
-
def proxy_sql_spec(&block)
|
175
|
-
::Kuby::KubeDB::DSL::Kubedb::V1alpha1::ProxySQLSpec.new(&block)
|
150
|
+
def mongo_db(&block)
|
151
|
+
::Kuby::KubeDB::DSL::Kubedb::V1alpha1::MongoDB.new(&block)
|
176
152
|
end
|
177
153
|
|
178
|
-
def
|
179
|
-
::Kuby::KubeDB::DSL::Kubedb::V1alpha1::
|
154
|
+
def script_source_spec(&block)
|
155
|
+
::Kuby::KubeDB::DSL::Kubedb::V1alpha1::ScriptSourceSpec.new(&block)
|
180
156
|
end
|
181
157
|
|
182
158
|
def redis_spec(&block)
|
183
159
|
::Kuby::KubeDB::DSL::Kubedb::V1alpha1::RedisSpec.new(&block)
|
184
160
|
end
|
185
161
|
|
186
|
-
def
|
187
|
-
::Kuby::KubeDB::DSL::Kubedb::V1alpha1::
|
188
|
-
end
|
189
|
-
|
190
|
-
def elasticsearch_spec(&block)
|
191
|
-
::Kuby::KubeDB::DSL::Kubedb::V1alpha1::ElasticsearchSpec.new(&block)
|
192
|
-
end
|
193
|
-
|
194
|
-
def my_sql_status(&block)
|
195
|
-
::Kuby::KubeDB::DSL::Kubedb::V1alpha1::MySQLStatus.new(&block)
|
196
|
-
end
|
197
|
-
|
198
|
-
def my_sql(&block)
|
199
|
-
::Kuby::KubeDB::DSL::Kubedb::V1alpha1::MySQL.new(&block)
|
162
|
+
def mongo_db_mongos_node(&block)
|
163
|
+
::Kuby::KubeDB::DSL::Kubedb::V1alpha1::MongoDBMongosNode.new(&block)
|
200
164
|
end
|
201
165
|
|
202
|
-
def
|
203
|
-
::Kuby::KubeDB::DSL::Kubedb::V1alpha1::
|
166
|
+
def dormant_database_list(&block)
|
167
|
+
::Kuby::KubeDB::DSL::Kubedb::V1alpha1::DormantDatabaseList.new(&block)
|
204
168
|
end
|
205
169
|
|
206
|
-
def
|
207
|
-
::Kuby::KubeDB::DSL::Kubedb::V1alpha1::
|
170
|
+
def postgres(&block)
|
171
|
+
::Kuby::KubeDB::DSL::Kubedb::V1alpha1::Postgres.new(&block)
|
208
172
|
end
|
209
173
|
|
210
|
-
def
|
211
|
-
::Kuby::KubeDB::DSL::Kubedb::V1alpha1::
|
174
|
+
def mongo_db_sharding_topology(&block)
|
175
|
+
::Kuby::KubeDB::DSL::Kubedb::V1alpha1::MongoDBShardingTopology.new(&block)
|
212
176
|
end
|
213
177
|
|
214
|
-
def
|
215
|
-
::Kuby::KubeDB::DSL::Kubedb::V1alpha1::
|
178
|
+
def redis_cluster_spec(&block)
|
179
|
+
::Kuby::KubeDB::DSL::Kubedb::V1alpha1::RedisClusterSpec.new(&block)
|
216
180
|
end
|
217
181
|
|
218
|
-
def
|
219
|
-
::Kuby::KubeDB::DSL::Kubedb::V1alpha1::
|
182
|
+
def recovery_target(&block)
|
183
|
+
::Kuby::KubeDB::DSL::Kubedb::V1alpha1::RecoveryTarget.new(&block)
|
220
184
|
end
|
221
185
|
|
222
|
-
def
|
223
|
-
::Kuby::KubeDB::DSL::Kubedb::V1alpha1::
|
186
|
+
def snapshot_spec(&block)
|
187
|
+
::Kuby::KubeDB::DSL::Kubedb::V1alpha1::SnapshotSpec.new(&block)
|
224
188
|
end
|
225
189
|
|
226
|
-
def
|
227
|
-
::Kuby::KubeDB::DSL::Kubedb::V1alpha1::
|
190
|
+
def init_spec(&block)
|
191
|
+
::Kuby::KubeDB::DSL::Kubedb::V1alpha1::InitSpec.new(&block)
|
228
192
|
end
|
229
193
|
|
230
|
-
def
|
231
|
-
::Kuby::KubeDB::DSL::Kubedb::V1alpha1::
|
194
|
+
def dormant_database_status(&block)
|
195
|
+
::Kuby::KubeDB::DSL::Kubedb::V1alpha1::DormantDatabaseStatus.new(&block)
|
232
196
|
end
|
233
197
|
|
234
|
-
def
|
235
|
-
::Kuby::KubeDB::DSL::Kubedb::V1alpha1::
|
198
|
+
def postgres_spec(&block)
|
199
|
+
::Kuby::KubeDB::DSL::Kubedb::V1alpha1::PostgresSpec.new(&block)
|
236
200
|
end
|
237
201
|
|
238
|
-
def
|
239
|
-
::Kuby::KubeDB::DSL::Kubedb::V1alpha1::
|
202
|
+
def redis(&block)
|
203
|
+
::Kuby::KubeDB::DSL::Kubedb::V1alpha1::Redis.new(&block)
|
240
204
|
end
|
241
205
|
|
242
|
-
def
|
243
|
-
::Kuby::KubeDB::DSL::Kubedb::V1alpha1::
|
206
|
+
def snapshot_source_spec(&block)
|
207
|
+
::Kuby::KubeDB::DSL::Kubedb::V1alpha1::SnapshotSourceSpec.new(&block)
|
244
208
|
end
|
245
209
|
|
246
|
-
def
|
247
|
-
::Kuby::KubeDB::DSL::Kubedb::V1alpha1::
|
210
|
+
def etcd(&block)
|
211
|
+
::Kuby::KubeDB::DSL::Kubedb::V1alpha1::Etcd.new(&block)
|
248
212
|
end
|
249
213
|
|
250
|
-
def
|
251
|
-
::Kuby::KubeDB::DSL::Kubedb::V1alpha1::
|
214
|
+
def postgres_archiver_spec(&block)
|
215
|
+
::Kuby::KubeDB::DSL::Kubedb::V1alpha1::PostgresArchiverSpec.new(&block)
|
252
216
|
end
|
253
217
|
|
254
|
-
def
|
255
|
-
::Kuby::KubeDB::DSL::Kubedb::V1alpha1::
|
218
|
+
def memcached_status(&block)
|
219
|
+
::Kuby::KubeDB::DSL::Kubedb::V1alpha1::MemcachedStatus.new(&block)
|
256
220
|
end
|
257
221
|
|
258
|
-
def
|
259
|
-
::Kuby::KubeDB::DSL::Kubedb::V1alpha1::
|
222
|
+
def memcached(&block)
|
223
|
+
::Kuby::KubeDB::DSL::Kubedb::V1alpha1::Memcached.new(&block)
|
260
224
|
end
|
261
225
|
|
262
|
-
def
|
263
|
-
::Kuby::KubeDB::DSL::Kubedb::V1alpha1::
|
226
|
+
def tls_policy(&block)
|
227
|
+
::Kuby::KubeDB::DSL::Kubedb::V1alpha1::TLSPolicy.new(&block)
|
264
228
|
end
|
265
229
|
|
266
|
-
def
|
267
|
-
::Kuby::KubeDB::DSL::Kubedb::V1alpha1::
|
230
|
+
def elasticsearch(&block)
|
231
|
+
::Kuby::KubeDB::DSL::Kubedb::V1alpha1::Elasticsearch.new(&block)
|
268
232
|
end
|
269
233
|
end
|