kuby-kube-db 0.3.0 → 0.6.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (101) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +20 -0
  3. data/kuby-kube-db.gemspec +1 -1
  4. data/lib/kuby/kube-db/dsl.rb +3 -1
  5. data/lib/kuby/kube-db/dsl/api/v1.rb +8 -10
  6. data/lib/kuby/kube-db/dsl/api/v1/local_spec.rb +0 -2
  7. data/lib/kuby/kube-db/dsl/api/v1/object_meta.rb +0 -19
  8. data/lib/kuby/kube-db/dsl/api/v1/prometheus_spec.rb +2 -6
  9. data/lib/kuby/kube-db/dsl/api/v1/s3_spec.rb +1 -2
  10. data/lib/kuby/kube-db/dsl/api/v1/service_spec.rb +2 -4
  11. data/lib/kuby/kube-db/dsl/authorization.rb +3 -0
  12. data/lib/kuby/kube-db/dsl/authorization/v1alpha1.rb +24 -0
  13. data/lib/kuby/kube-db/dsl/authorization/v1alpha1/database_access_request.rb +22 -0
  14. data/lib/kuby/kube-db/dsl/authorization/v1alpha1/database_access_request_condition.rb +18 -0
  15. data/lib/kuby/kube-db/dsl/{catalog/v1alpha1/proxy_sql_version_list.rb → authorization/v1alpha1/database_access_request_list.rb} +5 -5
  16. data/lib/kuby/kube-db/dsl/authorization/v1alpha1/database_access_request_spec.rb +19 -0
  17. data/lib/kuby/kube-db/dsl/authorization/v1alpha1/database_access_request_status.rb +19 -0
  18. data/lib/kuby/kube-db/dsl/authorization/v1alpha1/lease.rb +17 -0
  19. data/lib/kuby/kube-db/dsl/{kubedb/v1alpha1/proxy_sql.rb → authorization/v1alpha1/mongo_db_role.rb} +6 -6
  20. data/lib/kuby/kube-db/dsl/authorization/v1alpha1/mongo_db_role_condition.rb +18 -0
  21. data/lib/kuby/kube-db/dsl/{kubedb/v1alpha1/percona_xtra_db_list.rb → authorization/v1alpha1/mongo_db_role_list.rb} +5 -5
  22. data/lib/kuby/kube-db/dsl/authorization/v1alpha1/mongo_db_role_spec.rb +22 -0
  23. data/lib/kuby/kube-db/dsl/authorization/v1alpha1/mongo_db_role_status.rb +18 -0
  24. data/lib/kuby/kube-db/dsl/{kubedb/v1alpha1/percona_xtra_db.rb → authorization/v1alpha1/my_sql_role.rb} +6 -6
  25. data/lib/kuby/kube-db/dsl/authorization/v1alpha1/my_sql_role_condition.rb +18 -0
  26. data/lib/kuby/kube-db/dsl/{kubedb/v1alpha1/proxy_sql_list.rb → authorization/v1alpha1/my_sql_role_list.rb} +5 -5
  27. data/lib/kuby/kube-db/dsl/authorization/v1alpha1/my_sql_role_spec.rb +22 -0
  28. data/lib/kuby/kube-db/dsl/authorization/v1alpha1/my_sql_role_status.rb +18 -0
  29. data/lib/kuby/kube-db/dsl/authorization/v1alpha1/postgres_role.rb +22 -0
  30. data/lib/kuby/kube-db/dsl/authorization/v1alpha1/postgres_role_condition.rb +18 -0
  31. data/lib/kuby/kube-db/dsl/authorization/v1alpha1/postgres_role_list.rb +20 -0
  32. data/lib/kuby/kube-db/dsl/authorization/v1alpha1/postgres_role_spec.rb +24 -0
  33. data/lib/kuby/kube-db/dsl/authorization/v1alpha1/postgres_role_status.rb +18 -0
  34. data/lib/kuby/kube-db/dsl/authorization/v1alpha1/role_reference.rb +17 -0
  35. data/lib/kuby/kube-db/dsl/catalog/v1alpha1.rb +38 -52
  36. data/lib/kuby/kube-db/dsl/catalog/v1alpha1/elasticsearch_version_init_container.rb +1 -2
  37. data/lib/kuby/kube-db/dsl/catalog/v1alpha1/elasticsearch_version_pod_security_policy.rb +2 -1
  38. data/lib/kuby/kube-db/dsl/catalog/v1alpha1/elasticsearch_version_spec.rb +1 -2
  39. data/lib/kuby/kube-db/dsl/catalog/v1alpha1/mongo_db_version_pod_security_policy.rb +2 -1
  40. data/lib/kuby/kube-db/dsl/catalog/v1alpha1/my_sql_version_pod_security_policy.rb +2 -1
  41. data/lib/kuby/kube-db/dsl/catalog/v1alpha1/my_sql_version_spec.rb +0 -2
  42. data/lib/kuby/kube-db/dsl/catalog/v1alpha1/postgres_version_pod_security_policy.rb +2 -1
  43. data/lib/kuby/kube-db/dsl/kubedb/v1alpha1.rb +48 -57
  44. data/lib/kuby/kube-db/dsl/kubedb/v1alpha1/backup_schedule_spec.rb +35 -0
  45. data/lib/kuby/kube-db/dsl/kubedb/v1alpha1/{pg_bouncer.rb → dormant_database.rb} +5 -5
  46. data/lib/kuby/kube-db/dsl/kubedb/v1alpha1/{pg_bouncer_list.rb → dormant_database_list.rb} +4 -4
  47. data/lib/kuby/kube-db/dsl/kubedb/v1alpha1/dormant_database_spec.rb +17 -0
  48. data/lib/kuby/kube-db/dsl/kubedb/v1alpha1/{percona_xtra_db_status.rb → dormant_database_status.rb} +5 -3
  49. data/lib/kuby/kube-db/dsl/kubedb/v1alpha1/elasticsearch_node.rb +1 -2
  50. data/lib/kuby/kube-db/dsl/kubedb/v1alpha1/elasticsearch_spec.rb +3 -5
  51. data/lib/kuby/kube-db/dsl/kubedb/v1alpha1/etcd_spec.rb +3 -3
  52. data/lib/kuby/kube-db/dsl/kubedb/v1alpha1/init_spec.rb +2 -2
  53. data/lib/kuby/kube-db/dsl/kubedb/v1alpha1/memcached_spec.rb +1 -3
  54. data/lib/kuby/kube-db/dsl/kubedb/v1alpha1/mongo_db_replica_set.rb +2 -0
  55. data/lib/kuby/kube-db/dsl/kubedb/v1alpha1/mongo_db_spec.rb +7 -11
  56. data/lib/kuby/kube-db/dsl/kubedb/v1alpha1/my_sql_spec.rb +6 -8
  57. data/lib/kuby/kube-db/dsl/kubedb/v1alpha1/origin.rb +17 -0
  58. data/lib/kuby/kube-db/dsl/kubedb/v1alpha1/origin_spec.rb +27 -0
  59. data/lib/kuby/kube-db/dsl/kubedb/v1alpha1/postgres_spec.rb +5 -7
  60. data/lib/kuby/kube-db/dsl/kubedb/v1alpha1/redis_spec.rb +1 -3
  61. data/lib/kuby/kube-db/dsl/kubedb/v1alpha1/script_source_spec.rb +0 -2
  62. data/lib/kuby/kube-db/dsl/kubedb/v1alpha1/{maria_db.rb → snapshot.rb} +5 -5
  63. data/lib/kuby/kube-db/dsl/kubedb/v1alpha1/{maria_db_list.rb → snapshot_list.rb} +4 -4
  64. data/lib/kuby/kube-db/dsl/kubedb/v1alpha1/snapshot_source_spec.rb +17 -0
  65. data/lib/kuby/kube-db/dsl/kubedb/v1alpha1/snapshot_spec.rb +35 -0
  66. data/lib/kuby/kube-db/dsl/kubedb/v1alpha1/{proxy_sql_status.rb → snapshot_status.rb} +5 -3
  67. data/lib/kuby/kube-db/dsl/meta.rb +3 -0
  68. data/lib/kuby/kube-db/dsl/meta/v1.rb +4 -0
  69. data/lib/kuby/kube-db/dsl/meta/v1/initializer.rb +15 -0
  70. data/lib/kuby/kube-db/dsl/meta/v1/initializers.rb +17 -0
  71. data/lib/kuby/kube-db/dsl/v1/volume_source.rb +0 -2
  72. data/lib/kuby/kube-db/entrypoint.rb +108 -144
  73. data/lib/kuby/kube-db/plugin.rb +43 -18
  74. data/lib/kuby/kube-db/version.rb +2 -2
  75. metadata +44 -41
  76. data/lib/kuby/kube-db/dsl/api/v1/prometheus_exporter_spec.rb +0 -22
  77. data/lib/kuby/kube-db/dsl/api/v1/service_monitor_spec.rb +0 -18
  78. data/lib/kuby/kube-db/dsl/catalog/v1alpha1/my_sql_version_replication_mode_detector.rb +0 -15
  79. data/lib/kuby/kube-db/dsl/catalog/v1alpha1/percona_xtra_db_version.rb +0 -20
  80. data/lib/kuby/kube-db/dsl/catalog/v1alpha1/percona_xtra_db_version_database.rb +0 -15
  81. data/lib/kuby/kube-db/dsl/catalog/v1alpha1/percona_xtra_db_version_exporter.rb +0 -15
  82. data/lib/kuby/kube-db/dsl/catalog/v1alpha1/percona_xtra_db_version_init_container.rb +0 -15
  83. data/lib/kuby/kube-db/dsl/catalog/v1alpha1/percona_xtra_db_version_list.rb +0 -20
  84. data/lib/kuby/kube-db/dsl/catalog/v1alpha1/percona_xtra_db_version_pod_security_policy.rb +0 -15
  85. data/lib/kuby/kube-db/dsl/catalog/v1alpha1/percona_xtra_db_version_spec.rb +0 -24
  86. data/lib/kuby/kube-db/dsl/catalog/v1alpha1/proxy_sql_version.rb +0 -20
  87. data/lib/kuby/kube-db/dsl/catalog/v1alpha1/proxy_sql_version_exporter.rb +0 -15
  88. data/lib/kuby/kube-db/dsl/catalog/v1alpha1/proxy_sql_version_pod_security_policy.rb +0 -15
  89. data/lib/kuby/kube-db/dsl/catalog/v1alpha1/proxy_sql_version_proxysql.rb +0 -15
  90. data/lib/kuby/kube-db/dsl/catalog/v1alpha1/proxy_sql_version_spec.rb +0 -22
  91. data/lib/kuby/kube-db/dsl/kubedb/v1alpha1/certificate_spec.rb +0 -20
  92. data/lib/kuby/kube-db/dsl/kubedb/v1alpha1/connection_pool_config.rb +0 -28
  93. data/lib/kuby/kube-db/dsl/kubedb/v1alpha1/databases.rb +0 -20
  94. data/lib/kuby/kube-db/dsl/kubedb/v1alpha1/maria_db_spec.rb +0 -36
  95. data/lib/kuby/kube-db/dsl/kubedb/v1alpha1/maria_db_status.rb +0 -17
  96. data/lib/kuby/kube-db/dsl/kubedb/v1alpha1/percona_xtra_db_spec.rb +0 -38
  97. data/lib/kuby/kube-db/dsl/kubedb/v1alpha1/pg_bouncer_spec.rb +0 -31
  98. data/lib/kuby/kube-db/dsl/kubedb/v1alpha1/pg_bouncer_status.rb +0 -17
  99. data/lib/kuby/kube-db/dsl/kubedb/v1alpha1/proxy_sql_backend_spec.rb +0 -17
  100. data/lib/kuby/kube-db/dsl/kubedb/v1alpha1/proxy_sql_spec.rb +0 -34
  101. data/lib/kuby/kube-db/dsl/kubedb/v1alpha1/tls_config.rb +0 -17
@@ -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 :halted, :replicas, :storage_type, :termination_policy, :paused, :version, :standby_mode, :streaming_mode
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 :paused, :replicas, :termination_policy, :halted, :version, :storage_type, :mode
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 MariaDB < ::KubeDSL::DSLObject
2
+ class Snapshot < ::KubeDSL::DSLObject
3
3
  value_fields :api_version
4
- object_field(:status) { Kuby::KubeDB::DSL::Kubedb::V1alpha1::MariaDBStatus.new }
5
- object_field(:spec) { Kuby::KubeDB::DSL::Kubedb::V1alpha1::MariaDBSpec.new }
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] = "MariaDB"
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
- :maria_db
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 MariaDBList < ::KubeDSL::DSLObject
2
+ class SnapshotList < ::KubeDSL::DSLObject
3
3
  value_fields :api_version
4
- array_field(:item) { Kuby::KubeDB::DSL::Kubedb::V1alpha1::MariaDB.new }
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] = "MariaDBList"
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
- :maria_db_list
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 ProxySQLStatus < ::KubeDSL::DSLObject
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
- :proxy_sql_status
16
+ :snapshot_status
15
17
  end
16
18
  end
17
19
  end
@@ -0,0 +1,3 @@
1
+ module Kuby::KubeDB::DSL::Meta
2
+ autoload :V1, 'kuby/kube-db/dsl/meta/v1'
3
+ end
@@ -0,0 +1,4 @@
1
+ module Kuby::KubeDB::DSL::Meta::V1
2
+ autoload :Initializers, 'kuby/kube-db/dsl/meta/v1/initializers'
3
+ autoload :Initializer, 'kuby/kube-db/dsl/meta/v1/initializer'
4
+ end
@@ -0,0 +1,15 @@
1
+ module Kuby::KubeDB::DSL::Meta::V1
2
+ class Initializer < ::KubeDSL::DSLObject
3
+ value_fields :name
4
+
5
+ def serialize
6
+ {}.tap do |result|
7
+ result[:name] = name
8
+ end
9
+ end
10
+
11
+ def kind_sym
12
+ :initializer
13
+ end
14
+ end
15
+ 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 etcd(&block)
7
- ::Kuby::KubeDB::DSL::Kubedb::V1alpha1::Etcd.new(&block)
10
+ def elasticsearch_spec(&block)
11
+ ::Kuby::KubeDB::DSL::Kubedb::V1alpha1::ElasticsearchSpec.new(&block)
8
12
  end
9
13
 
10
- def my_sql_list(&block)
11
- ::Kuby::KubeDB::DSL::Kubedb::V1alpha1::MySQLList.new(&block)
14
+ def snapshot_status(&block)
15
+ ::Kuby::KubeDB::DSL::Kubedb::V1alpha1::SnapshotStatus.new(&block)
12
16
  end
13
17
 
14
- def maria_db_status(&block)
15
- ::Kuby::KubeDB::DSL::Kubedb::V1alpha1::MariaDBStatus.new(&block)
18
+ def postgres_wal_source_spec(&block)
19
+ ::Kuby::KubeDB::DSL::Kubedb::V1alpha1::PostgresWALSourceSpec.new(&block)
16
20
  end
17
21
 
18
- def connection_pool_config(&block)
19
- ::Kuby::KubeDB::DSL::Kubedb::V1alpha1::ConnectionPoolConfig.new(&block)
22
+ def my_sql_status(&block)
23
+ ::Kuby::KubeDB::DSL::Kubedb::V1alpha1::MySQLStatus.new(&block)
20
24
  end
21
25
 
22
- def maria_db_spec(&block)
23
- ::Kuby::KubeDB::DSL::Kubedb::V1alpha1::MariaDBSpec.new(&block)
26
+ def etcd_spec(&block)
27
+ ::Kuby::KubeDB::DSL::Kubedb::V1alpha1::EtcdSpec.new(&block)
24
28
  end
25
29
 
26
- def postgres(&block)
27
- ::Kuby::KubeDB::DSL::Kubedb::V1alpha1::Postgres.new(&block)
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 init_spec(&block)
35
- ::Kuby::KubeDB::DSL::Kubedb::V1alpha1::InitSpec.new(&block)
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 elasticsearch_status(&block)
43
- ::Kuby::KubeDB::DSL::Kubedb::V1alpha1::ElasticsearchStatus.new(&block)
42
+ def member_secret(&block)
43
+ ::Kuby::KubeDB::DSL::Kubedb::V1alpha1::MemberSecret.new(&block)
44
44
  end
45
45
 
46
- def percona_xtra_db_list(&block)
47
- ::Kuby::KubeDB::DSL::Kubedb::V1alpha1::PerconaXtraDBList.new(&block)
46
+ def postgres_status(&block)
47
+ ::Kuby::KubeDB::DSL::Kubedb::V1alpha1::PostgresStatus.new(&block)
48
48
  end
49
49
 
50
- def memcached_status(&block)
51
- ::Kuby::KubeDB::DSL::Kubedb::V1alpha1::MemcachedStatus.new(&block)
50
+ def my_sql_cluster_topology(&block)
51
+ ::Kuby::KubeDB::DSL::Kubedb::V1alpha1::MySQLClusterTopology.new(&block)
52
52
  end
53
53
 
54
- def my_sql_group_spec(&block)
55
- ::Kuby::KubeDB::DSL::Kubedb::V1alpha1::MySQLGroupSpec.new(&block)
54
+ def snapshot(&block)
55
+ ::Kuby::KubeDB::DSL::Kubedb::V1alpha1::Snapshot.new(&block)
56
56
  end
57
57
 
58
- def postgres_spec(&block)
59
- ::Kuby::KubeDB::DSL::Kubedb::V1alpha1::PostgresSpec.new(&block)
58
+ def my_sql(&block)
59
+ ::Kuby::KubeDB::DSL::Kubedb::V1alpha1::MySQL.new(&block)
60
60
  end
61
61
 
62
- def pg_bouncer_list(&block)
63
- ::Kuby::KubeDB::DSL::Kubedb::V1alpha1::PgBouncerList.new(&block)
62
+ def my_sql_group_spec(&block)
63
+ ::Kuby::KubeDB::DSL::Kubedb::V1alpha1::MySQLGroupSpec.new(&block)
64
64
  end
65
65
 
66
- def redis_cluster_spec(&block)
67
- ::Kuby::KubeDB::DSL::Kubedb::V1alpha1::RedisClusterSpec.new(&block)
66
+ def etcd_list(&block)
67
+ ::Kuby::KubeDB::DSL::Kubedb::V1alpha1::EtcdList.new(&block)
68
68
  end
69
69
 
70
- def mongo_db_spec(&block)
71
- ::Kuby::KubeDB::DSL::Kubedb::V1alpha1::MongoDBSpec.new(&block)
70
+ def mongo_db_status(&block)
71
+ ::Kuby::KubeDB::DSL::Kubedb::V1alpha1::MongoDBStatus.new(&block)
72
72
  end
73
73
 
74
- def proxy_sql_list(&block)
75
- ::Kuby::KubeDB::DSL::Kubedb::V1alpha1::ProxySQLList.new(&block)
74
+ def elasticsearch_cluster_topology(&block)
75
+ ::Kuby::KubeDB::DSL::Kubedb::V1alpha1::ElasticsearchClusterTopology.new(&block)
76
76
  end
77
77
 
78
- def percona_xtra_db_spec(&block)
79
- ::Kuby::KubeDB::DSL::Kubedb::V1alpha1::PerconaXtraDBSpec.new(&block)
78
+ def memcached_spec(&block)
79
+ ::Kuby::KubeDB::DSL::Kubedb::V1alpha1::MemcachedSpec.new(&block)
80
80
  end
81
81
 
82
- def memcached_list(&block)
83
- ::Kuby::KubeDB::DSL::Kubedb::V1alpha1::MemcachedList.new(&block)
82
+ def my_sql_list(&block)
83
+ ::Kuby::KubeDB::DSL::Kubedb::V1alpha1::MySQLList.new(&block)
84
84
  end
85
85
 
86
- def mongo_db_list(&block)
87
- ::Kuby::KubeDB::DSL::Kubedb::V1alpha1::MongoDBList.new(&block)
86
+ def dormant_database(&block)
87
+ ::Kuby::KubeDB::DSL::Kubedb::V1alpha1::DormantDatabase.new(&block)
88
88
  end
89
89
 
90
- def tls_policy(&block)
91
- ::Kuby::KubeDB::DSL::Kubedb::V1alpha1::TLSPolicy.new(&block)
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 proxy_sql_status(&block)
99
- ::Kuby::KubeDB::DSL::Kubedb::V1alpha1::ProxySQLStatus.new(&block)
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 etcd_list(&block)
119
- ::Kuby::KubeDB::DSL::Kubedb::V1alpha1::EtcdList.new(&block)
102
+ def postgres_list(&block)
103
+ ::Kuby::KubeDB::DSL::Kubedb::V1alpha1::PostgresList.new(&block)
120
104
  end
121
105
 
122
- def mongo_db_shard_node(&block)
123
- ::Kuby::KubeDB::DSL::Kubedb::V1alpha1::MongoDBShardNode.new(&block)
106
+ def origin(&block)
107
+ ::Kuby::KubeDB::DSL::Kubedb::V1alpha1::Origin.new(&block)
124
108
  end
125
109
 
126
- def mongo_db_mongos_node(&block)
127
- ::Kuby::KubeDB::DSL::Kubedb::V1alpha1::MongoDBMongosNode.new(&block)
110
+ def snapshot_list(&block)
111
+ ::Kuby::KubeDB::DSL::Kubedb::V1alpha1::SnapshotList.new(&block)
128
112
  end
129
113
 
130
- def postgres_status(&block)
131
- ::Kuby::KubeDB::DSL::Kubedb::V1alpha1::PostgresStatus.new(&block)
114
+ def elasticsearch_list(&block)
115
+ ::Kuby::KubeDB::DSL::Kubedb::V1alpha1::ElasticsearchList.new(&block)
132
116
  end
133
117
 
134
- def memcached_spec(&block)
135
- ::Kuby::KubeDB::DSL::Kubedb::V1alpha1::MemcachedSpec.new(&block)
118
+ def elasticsearch_status(&block)
119
+ ::Kuby::KubeDB::DSL::Kubedb::V1alpha1::ElasticsearchStatus.new(&block)
136
120
  end
137
121
 
138
- def maria_db(&block)
139
- ::Kuby::KubeDB::DSL::Kubedb::V1alpha1::MariaDB.new(&block)
122
+ def mongo_db_spec(&block)
123
+ ::Kuby::KubeDB::DSL::Kubedb::V1alpha1::MongoDBSpec.new(&block)
140
124
  end
141
125
 
142
- def elasticsearch_list(&block)
143
- ::Kuby::KubeDB::DSL::Kubedb::V1alpha1::ElasticsearchList.new(&block)
126
+ def mongo_db_replica_set(&block)
127
+ ::Kuby::KubeDB::DSL::Kubedb::V1alpha1::MongoDBReplicaSet.new(&block)
144
128
  end
145
129
 
146
- def redis(&block)
147
- ::Kuby::KubeDB::DSL::Kubedb::V1alpha1::Redis.new(&block)
130
+ def redis_status(&block)
131
+ ::Kuby::KubeDB::DSL::Kubedb::V1alpha1::RedisStatus.new(&block)
148
132
  end
149
133
 
150
- def memcached(&block)
151
- ::Kuby::KubeDB::DSL::Kubedb::V1alpha1::Memcached.new(&block)
134
+ def memcached_list(&block)
135
+ ::Kuby::KubeDB::DSL::Kubedb::V1alpha1::MemcachedList.new(&block)
152
136
  end
153
137
 
154
- def leader_election_config(&block)
155
- ::Kuby::KubeDB::DSL::Kubedb::V1alpha1::LeaderElectionConfig.new(&block)
138
+ def origin_spec(&block)
139
+ ::Kuby::KubeDB::DSL::Kubedb::V1alpha1::OriginSpec.new(&block)
156
140
  end
157
141
 
158
- def recovery_target(&block)
159
- ::Kuby::KubeDB::DSL::Kubedb::V1alpha1::RecoveryTarget.new(&block)
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 tls_config(&block)
167
- ::Kuby::KubeDB::DSL::Kubedb::V1alpha1::TLSConfig.new(&block)
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 mongo_db_replica_set(&block)
179
- ::Kuby::KubeDB::DSL::Kubedb::V1alpha1::MongoDBReplicaSet.new(&block)
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 my_sql_cluster_topology(&block)
187
- ::Kuby::KubeDB::DSL::Kubedb::V1alpha1::MySQLClusterTopology.new(&block)
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 pg_bouncer_spec(&block)
203
- ::Kuby::KubeDB::DSL::Kubedb::V1alpha1::PgBouncerSpec.new(&block)
166
+ def dormant_database_list(&block)
167
+ ::Kuby::KubeDB::DSL::Kubedb::V1alpha1::DormantDatabaseList.new(&block)
204
168
  end
205
169
 
206
- def postgres_archiver_spec(&block)
207
- ::Kuby::KubeDB::DSL::Kubedb::V1alpha1::PostgresArchiverSpec.new(&block)
170
+ def postgres(&block)
171
+ ::Kuby::KubeDB::DSL::Kubedb::V1alpha1::Postgres.new(&block)
208
172
  end
209
173
 
210
- def databases(&block)
211
- ::Kuby::KubeDB::DSL::Kubedb::V1alpha1::Databases.new(&block)
174
+ def mongo_db_sharding_topology(&block)
175
+ ::Kuby::KubeDB::DSL::Kubedb::V1alpha1::MongoDBShardingTopology.new(&block)
212
176
  end
213
177
 
214
- def script_source_spec(&block)
215
- ::Kuby::KubeDB::DSL::Kubedb::V1alpha1::ScriptSourceSpec.new(&block)
178
+ def redis_cluster_spec(&block)
179
+ ::Kuby::KubeDB::DSL::Kubedb::V1alpha1::RedisClusterSpec.new(&block)
216
180
  end
217
181
 
218
- def pg_bouncer(&block)
219
- ::Kuby::KubeDB::DSL::Kubedb::V1alpha1::PgBouncer.new(&block)
182
+ def recovery_target(&block)
183
+ ::Kuby::KubeDB::DSL::Kubedb::V1alpha1::RecoveryTarget.new(&block)
220
184
  end
221
185
 
222
- def etcd_spec(&block)
223
- ::Kuby::KubeDB::DSL::Kubedb::V1alpha1::EtcdSpec.new(&block)
186
+ def snapshot_spec(&block)
187
+ ::Kuby::KubeDB::DSL::Kubedb::V1alpha1::SnapshotSpec.new(&block)
224
188
  end
225
189
 
226
- def pg_bouncer_status(&block)
227
- ::Kuby::KubeDB::DSL::Kubedb::V1alpha1::PgBouncerStatus.new(&block)
190
+ def init_spec(&block)
191
+ ::Kuby::KubeDB::DSL::Kubedb::V1alpha1::InitSpec.new(&block)
228
192
  end
229
193
 
230
- def elasticsearch(&block)
231
- ::Kuby::KubeDB::DSL::Kubedb::V1alpha1::Elasticsearch.new(&block)
194
+ def dormant_database_status(&block)
195
+ ::Kuby::KubeDB::DSL::Kubedb::V1alpha1::DormantDatabaseStatus.new(&block)
232
196
  end
233
197
 
234
- def certificate_spec(&block)
235
- ::Kuby::KubeDB::DSL::Kubedb::V1alpha1::CertificateSpec.new(&block)
198
+ def postgres_spec(&block)
199
+ ::Kuby::KubeDB::DSL::Kubedb::V1alpha1::PostgresSpec.new(&block)
236
200
  end
237
201
 
238
- def mongo_db_status(&block)
239
- ::Kuby::KubeDB::DSL::Kubedb::V1alpha1::MongoDBStatus.new(&block)
202
+ def redis(&block)
203
+ ::Kuby::KubeDB::DSL::Kubedb::V1alpha1::Redis.new(&block)
240
204
  end
241
205
 
242
- def elasticsearch_cluster_topology(&block)
243
- ::Kuby::KubeDB::DSL::Kubedb::V1alpha1::ElasticsearchClusterTopology.new(&block)
206
+ def snapshot_source_spec(&block)
207
+ ::Kuby::KubeDB::DSL::Kubedb::V1alpha1::SnapshotSourceSpec.new(&block)
244
208
  end
245
209
 
246
- def percona_xtra_db_status(&block)
247
- ::Kuby::KubeDB::DSL::Kubedb::V1alpha1::PerconaXtraDBStatus.new(&block)
210
+ def etcd(&block)
211
+ ::Kuby::KubeDB::DSL::Kubedb::V1alpha1::Etcd.new(&block)
248
212
  end
249
213
 
250
- def postgres_list(&block)
251
- ::Kuby::KubeDB::DSL::Kubedb::V1alpha1::PostgresList.new(&block)
214
+ def postgres_archiver_spec(&block)
215
+ ::Kuby::KubeDB::DSL::Kubedb::V1alpha1::PostgresArchiverSpec.new(&block)
252
216
  end
253
217
 
254
- def maria_db_list(&block)
255
- ::Kuby::KubeDB::DSL::Kubedb::V1alpha1::MariaDBList.new(&block)
218
+ def memcached_status(&block)
219
+ ::Kuby::KubeDB::DSL::Kubedb::V1alpha1::MemcachedStatus.new(&block)
256
220
  end
257
221
 
258
- def postgres_wal_source_spec(&block)
259
- ::Kuby::KubeDB::DSL::Kubedb::V1alpha1::PostgresWALSourceSpec.new(&block)
222
+ def memcached(&block)
223
+ ::Kuby::KubeDB::DSL::Kubedb::V1alpha1::Memcached.new(&block)
260
224
  end
261
225
 
262
- def proxy_sql_backend_spec(&block)
263
- ::Kuby::KubeDB::DSL::Kubedb::V1alpha1::ProxySQLBackendSpec.new(&block)
226
+ def tls_policy(&block)
227
+ ::Kuby::KubeDB::DSL::Kubedb::V1alpha1::TLSPolicy.new(&block)
264
228
  end
265
229
 
266
- def redis_list(&block)
267
- ::Kuby::KubeDB::DSL::Kubedb::V1alpha1::RedisList.new(&block)
230
+ def elasticsearch(&block)
231
+ ::Kuby::KubeDB::DSL::Kubedb::V1alpha1::Elasticsearch.new(&block)
268
232
  end
269
233
  end