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.
Files changed (103) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +22 -0
  3. data/Gemfile +1 -2
  4. data/kuby-kube-db.gemspec +3 -2
  5. data/lib/kuby/kube-db/dsl.rb +3 -1
  6. data/lib/kuby/kube-db/dsl/api/v1.rb +8 -10
  7. data/lib/kuby/kube-db/dsl/api/v1/local_spec.rb +0 -2
  8. data/lib/kuby/kube-db/dsl/api/v1/object_meta.rb +1 -20
  9. data/lib/kuby/kube-db/dsl/api/v1/pod_spec.rb +1 -1
  10. data/lib/kuby/kube-db/dsl/api/v1/prometheus_spec.rb +3 -7
  11. data/lib/kuby/kube-db/dsl/api/v1/s3_spec.rb +1 -2
  12. data/lib/kuby/kube-db/dsl/api/v1/service_spec.rb +2 -4
  13. data/lib/kuby/kube-db/dsl/authorization.rb +3 -0
  14. data/lib/kuby/kube-db/dsl/authorization/v1alpha1.rb +24 -0
  15. data/lib/kuby/kube-db/dsl/authorization/v1alpha1/database_access_request.rb +22 -0
  16. data/lib/kuby/kube-db/dsl/authorization/v1alpha1/database_access_request_condition.rb +18 -0
  17. data/lib/kuby/kube-db/dsl/{catalog/v1alpha1/proxy_sql_version_list.rb → authorization/v1alpha1/database_access_request_list.rb} +5 -5
  18. data/lib/kuby/kube-db/dsl/authorization/v1alpha1/database_access_request_spec.rb +19 -0
  19. data/lib/kuby/kube-db/dsl/authorization/v1alpha1/database_access_request_status.rb +19 -0
  20. data/lib/kuby/kube-db/dsl/authorization/v1alpha1/lease.rb +17 -0
  21. data/lib/kuby/kube-db/dsl/{kubedb/v1alpha1/proxy_sql.rb → authorization/v1alpha1/mongo_db_role.rb} +6 -6
  22. data/lib/kuby/kube-db/dsl/authorization/v1alpha1/mongo_db_role_condition.rb +18 -0
  23. data/lib/kuby/kube-db/dsl/{kubedb/v1alpha1/percona_xtra_db_list.rb → authorization/v1alpha1/mongo_db_role_list.rb} +5 -5
  24. data/lib/kuby/kube-db/dsl/authorization/v1alpha1/mongo_db_role_spec.rb +22 -0
  25. data/lib/kuby/kube-db/dsl/authorization/v1alpha1/mongo_db_role_status.rb +18 -0
  26. data/lib/kuby/kube-db/dsl/{kubedb/v1alpha1/percona_xtra_db.rb → authorization/v1alpha1/my_sql_role.rb} +6 -6
  27. data/lib/kuby/kube-db/dsl/authorization/v1alpha1/my_sql_role_condition.rb +18 -0
  28. data/lib/kuby/kube-db/dsl/{kubedb/v1alpha1/proxy_sql_list.rb → authorization/v1alpha1/my_sql_role_list.rb} +5 -5
  29. data/lib/kuby/kube-db/dsl/authorization/v1alpha1/my_sql_role_spec.rb +22 -0
  30. data/lib/kuby/kube-db/dsl/authorization/v1alpha1/my_sql_role_status.rb +18 -0
  31. data/lib/kuby/kube-db/dsl/authorization/v1alpha1/postgres_role.rb +22 -0
  32. data/lib/kuby/kube-db/dsl/authorization/v1alpha1/postgres_role_condition.rb +18 -0
  33. data/lib/kuby/kube-db/dsl/authorization/v1alpha1/postgres_role_list.rb +20 -0
  34. data/lib/kuby/kube-db/dsl/authorization/v1alpha1/postgres_role_spec.rb +24 -0
  35. data/lib/kuby/kube-db/dsl/authorization/v1alpha1/postgres_role_status.rb +18 -0
  36. data/lib/kuby/kube-db/dsl/authorization/v1alpha1/role_reference.rb +17 -0
  37. data/lib/kuby/kube-db/dsl/catalog/v1alpha1.rb +38 -52
  38. data/lib/kuby/kube-db/dsl/catalog/v1alpha1/elasticsearch_version_init_container.rb +1 -2
  39. data/lib/kuby/kube-db/dsl/catalog/v1alpha1/elasticsearch_version_pod_security_policy.rb +2 -1
  40. data/lib/kuby/kube-db/dsl/catalog/v1alpha1/elasticsearch_version_spec.rb +1 -2
  41. data/lib/kuby/kube-db/dsl/catalog/v1alpha1/mongo_db_version_pod_security_policy.rb +2 -1
  42. data/lib/kuby/kube-db/dsl/catalog/v1alpha1/my_sql_version_pod_security_policy.rb +2 -1
  43. data/lib/kuby/kube-db/dsl/catalog/v1alpha1/my_sql_version_spec.rb +0 -2
  44. data/lib/kuby/kube-db/dsl/catalog/v1alpha1/postgres_version_pod_security_policy.rb +2 -1
  45. data/lib/kuby/kube-db/dsl/kubedb/v1alpha1.rb +48 -57
  46. data/lib/kuby/kube-db/dsl/kubedb/v1alpha1/backup_schedule_spec.rb +35 -0
  47. data/lib/kuby/kube-db/dsl/kubedb/v1alpha1/{pg_bouncer.rb → dormant_database.rb} +5 -5
  48. data/lib/kuby/kube-db/dsl/kubedb/v1alpha1/{pg_bouncer_list.rb → dormant_database_list.rb} +4 -4
  49. data/lib/kuby/kube-db/dsl/kubedb/v1alpha1/dormant_database_spec.rb +17 -0
  50. data/lib/kuby/kube-db/dsl/kubedb/v1alpha1/{percona_xtra_db_status.rb → dormant_database_status.rb} +5 -3
  51. data/lib/kuby/kube-db/dsl/kubedb/v1alpha1/elasticsearch_node.rb +1 -2
  52. data/lib/kuby/kube-db/dsl/kubedb/v1alpha1/elasticsearch_spec.rb +3 -5
  53. data/lib/kuby/kube-db/dsl/kubedb/v1alpha1/etcd_spec.rb +3 -3
  54. data/lib/kuby/kube-db/dsl/kubedb/v1alpha1/init_spec.rb +2 -2
  55. data/lib/kuby/kube-db/dsl/kubedb/v1alpha1/memcached_spec.rb +1 -3
  56. data/lib/kuby/kube-db/dsl/kubedb/v1alpha1/mongo_db_replica_set.rb +2 -0
  57. data/lib/kuby/kube-db/dsl/kubedb/v1alpha1/mongo_db_spec.rb +7 -11
  58. data/lib/kuby/kube-db/dsl/kubedb/v1alpha1/my_sql_spec.rb +6 -8
  59. data/lib/kuby/kube-db/dsl/kubedb/v1alpha1/origin.rb +17 -0
  60. data/lib/kuby/kube-db/dsl/kubedb/v1alpha1/origin_spec.rb +27 -0
  61. data/lib/kuby/kube-db/dsl/kubedb/v1alpha1/postgres_spec.rb +5 -7
  62. data/lib/kuby/kube-db/dsl/kubedb/v1alpha1/redis_spec.rb +1 -3
  63. data/lib/kuby/kube-db/dsl/kubedb/v1alpha1/script_source_spec.rb +0 -2
  64. data/lib/kuby/kube-db/dsl/kubedb/v1alpha1/{maria_db.rb → snapshot.rb} +5 -5
  65. data/lib/kuby/kube-db/dsl/kubedb/v1alpha1/{maria_db_list.rb → snapshot_list.rb} +4 -4
  66. data/lib/kuby/kube-db/dsl/kubedb/v1alpha1/snapshot_source_spec.rb +17 -0
  67. data/lib/kuby/kube-db/dsl/kubedb/v1alpha1/snapshot_spec.rb +35 -0
  68. data/lib/kuby/kube-db/dsl/kubedb/v1alpha1/{proxy_sql_status.rb → snapshot_status.rb} +5 -3
  69. data/lib/kuby/kube-db/dsl/meta.rb +3 -0
  70. data/lib/kuby/kube-db/dsl/meta/v1.rb +4 -0
  71. data/lib/kuby/kube-db/dsl/meta/v1/initializer.rb +15 -0
  72. data/lib/kuby/kube-db/dsl/meta/v1/initializers.rb +17 -0
  73. data/lib/kuby/kube-db/dsl/v1/volume_source.rb +0 -2
  74. data/lib/kuby/kube-db/entrypoint.rb +108 -144
  75. data/lib/kuby/kube-db/plugin.rb +34 -8
  76. data/lib/kuby/kube-db/version.rb +2 -2
  77. metadata +64 -46
  78. data/lib/kuby/kube-db/dsl/api/v1/prometheus_exporter_spec.rb +0 -22
  79. data/lib/kuby/kube-db/dsl/api/v1/service_monitor_spec.rb +0 -18
  80. data/lib/kuby/kube-db/dsl/catalog/v1alpha1/my_sql_version_replication_mode_detector.rb +0 -15
  81. data/lib/kuby/kube-db/dsl/catalog/v1alpha1/percona_xtra_db_version.rb +0 -20
  82. data/lib/kuby/kube-db/dsl/catalog/v1alpha1/percona_xtra_db_version_database.rb +0 -15
  83. data/lib/kuby/kube-db/dsl/catalog/v1alpha1/percona_xtra_db_version_exporter.rb +0 -15
  84. data/lib/kuby/kube-db/dsl/catalog/v1alpha1/percona_xtra_db_version_init_container.rb +0 -15
  85. data/lib/kuby/kube-db/dsl/catalog/v1alpha1/percona_xtra_db_version_list.rb +0 -20
  86. data/lib/kuby/kube-db/dsl/catalog/v1alpha1/percona_xtra_db_version_pod_security_policy.rb +0 -15
  87. data/lib/kuby/kube-db/dsl/catalog/v1alpha1/percona_xtra_db_version_spec.rb +0 -24
  88. data/lib/kuby/kube-db/dsl/catalog/v1alpha1/proxy_sql_version.rb +0 -20
  89. data/lib/kuby/kube-db/dsl/catalog/v1alpha1/proxy_sql_version_exporter.rb +0 -15
  90. data/lib/kuby/kube-db/dsl/catalog/v1alpha1/proxy_sql_version_pod_security_policy.rb +0 -15
  91. data/lib/kuby/kube-db/dsl/catalog/v1alpha1/proxy_sql_version_proxysql.rb +0 -15
  92. data/lib/kuby/kube-db/dsl/catalog/v1alpha1/proxy_sql_version_spec.rb +0 -22
  93. data/lib/kuby/kube-db/dsl/kubedb/v1alpha1/certificate_spec.rb +0 -20
  94. data/lib/kuby/kube-db/dsl/kubedb/v1alpha1/connection_pool_config.rb +0 -28
  95. data/lib/kuby/kube-db/dsl/kubedb/v1alpha1/databases.rb +0 -20
  96. data/lib/kuby/kube-db/dsl/kubedb/v1alpha1/maria_db_spec.rb +0 -36
  97. data/lib/kuby/kube-db/dsl/kubedb/v1alpha1/maria_db_status.rb +0 -17
  98. data/lib/kuby/kube-db/dsl/kubedb/v1alpha1/percona_xtra_db_spec.rb +0 -38
  99. data/lib/kuby/kube-db/dsl/kubedb/v1alpha1/pg_bouncer_spec.rb +0 -31
  100. data/lib/kuby/kube-db/dsl/kubedb/v1alpha1/pg_bouncer_status.rb +0 -17
  101. data/lib/kuby/kube-db/dsl/kubedb/v1alpha1/proxy_sql_backend_spec.rb +0 -17
  102. data/lib/kuby/kube-db/dsl/kubedb/v1alpha1/proxy_sql_spec.rb +0 -34
  103. data/lib/kuby/kube-db/dsl/kubedb/v1alpha1/tls_config.rb +0 -17
@@ -1,9 +1,10 @@
1
1
  module Kuby::KubeDB::DSL::Catalog::V1alpha1
2
2
  class MySQLVersionPodSecurityPolicy < ::KubeDSL::DSLObject
3
- value_fields :database_policy_name
3
+ value_fields :snapshotter_policy_name, :database_policy_name
4
4
 
5
5
  def serialize
6
6
  {}.tap do |result|
7
+ result[:snapshotterPolicyName] = snapshotter_policy_name
7
8
  result[:databasePolicyName] = database_policy_name
8
9
  end
9
10
  end
@@ -1,7 +1,6 @@
1
1
  module Kuby::KubeDB::DSL::Catalog::V1alpha1
2
2
  class MySQLVersionSpec < ::KubeDSL::DSLObject
3
3
  value_fields :deprecated, :version
4
- object_field(:replication_mode_detector) { Kuby::KubeDB::DSL::Catalog::V1alpha1::MySQLVersionReplicationModeDetector.new }
5
4
  object_field(:exporter) { Kuby::KubeDB::DSL::Catalog::V1alpha1::MySQLVersionExporter.new }
6
5
  object_field(:pod_security_policies) { Kuby::KubeDB::DSL::Catalog::V1alpha1::MySQLVersionPodSecurityPolicy.new }
7
6
  object_field(:init_container) { Kuby::KubeDB::DSL::Catalog::V1alpha1::MySQLVersionInitContainer.new }
@@ -12,7 +11,6 @@ module Kuby::KubeDB::DSL::Catalog::V1alpha1
12
11
  {}.tap do |result|
13
12
  result[:deprecated] = deprecated
14
13
  result[:version] = version
15
- result[:replicationModeDetector] = replication_mode_detector.serialize
16
14
  result[:exporter] = exporter.serialize
17
15
  result[:podSecurityPolicies] = pod_security_policies.serialize
18
16
  result[:initContainer] = init_container.serialize
@@ -1,9 +1,10 @@
1
1
  module Kuby::KubeDB::DSL::Catalog::V1alpha1
2
2
  class PostgresVersionPodSecurityPolicy < ::KubeDSL::DSLObject
3
- value_fields :database_policy_name
3
+ value_fields :snapshotter_policy_name, :database_policy_name
4
4
 
5
5
  def serialize
6
6
  {}.tap do |result|
7
+ result[:snapshotterPolicyName] = snapshotter_policy_name
7
8
  result[:databasePolicyName] = database_policy_name
8
9
  end
9
10
  end
@@ -1,69 +1,60 @@
1
1
  module Kuby::KubeDB::DSL::Kubedb::V1alpha1
2
+ autoload :BackupScheduleSpec, 'kuby/kube-db/dsl/kubedb/v1alpha1/backup_schedule_spec'
2
3
  autoload :EtcdStatus, 'kuby/kube-db/dsl/kubedb/v1alpha1/etcd_status'
3
- autoload :Etcd, 'kuby/kube-db/dsl/kubedb/v1alpha1/etcd'
4
- autoload :MySQLList, 'kuby/kube-db/dsl/kubedb/v1alpha1/my_sql_list'
5
- autoload :MariaDBStatus, 'kuby/kube-db/dsl/kubedb/v1alpha1/maria_db_status'
6
- autoload :ConnectionPoolConfig, 'kuby/kube-db/dsl/kubedb/v1alpha1/connection_pool_config'
7
- autoload :MariaDBSpec, 'kuby/kube-db/dsl/kubedb/v1alpha1/maria_db_spec'
8
- autoload :Postgres, 'kuby/kube-db/dsl/kubedb/v1alpha1/postgres'
4
+ autoload :ElasticsearchSpec, 'kuby/kube-db/dsl/kubedb/v1alpha1/elasticsearch_spec'
5
+ autoload :SnapshotStatus, 'kuby/kube-db/dsl/kubedb/v1alpha1/snapshot_status'
6
+ autoload :PostgresWALSourceSpec, 'kuby/kube-db/dsl/kubedb/v1alpha1/postgres_wal_source_spec'
7
+ autoload :MySQLStatus, 'kuby/kube-db/dsl/kubedb/v1alpha1/my_sql_status'
8
+ autoload :EtcdSpec, 'kuby/kube-db/dsl/kubedb/v1alpha1/etcd_spec'
9
+ autoload :MongoDBShardNode, 'kuby/kube-db/dsl/kubedb/v1alpha1/mongo_db_shard_node'
9
10
  autoload :MongoDBConfigNode, 'kuby/kube-db/dsl/kubedb/v1alpha1/mongo_db_config_node'
10
- autoload :InitSpec, 'kuby/kube-db/dsl/kubedb/v1alpha1/init_spec'
11
- autoload :MongoDB, 'kuby/kube-db/dsl/kubedb/v1alpha1/mongo_db'
12
- autoload :ElasticsearchStatus, 'kuby/kube-db/dsl/kubedb/v1alpha1/elasticsearch_status'
13
- autoload :PerconaXtraDBList, 'kuby/kube-db/dsl/kubedb/v1alpha1/percona_xtra_db_list'
14
- autoload :MemcachedStatus, 'kuby/kube-db/dsl/kubedb/v1alpha1/memcached_status'
15
- autoload :MySQLGroupSpec, 'kuby/kube-db/dsl/kubedb/v1alpha1/my_sql_group_spec'
16
- autoload :PostgresSpec, 'kuby/kube-db/dsl/kubedb/v1alpha1/postgres_spec'
17
- autoload :PgBouncerList, 'kuby/kube-db/dsl/kubedb/v1alpha1/pg_bouncer_list'
18
- autoload :RedisClusterSpec, 'kuby/kube-db/dsl/kubedb/v1alpha1/redis_cluster_spec'
19
- autoload :MongoDBSpec, 'kuby/kube-db/dsl/kubedb/v1alpha1/mongo_db_spec'
20
- autoload :ProxySQLList, 'kuby/kube-db/dsl/kubedb/v1alpha1/proxy_sql_list'
21
- autoload :PerconaXtraDBSpec, 'kuby/kube-db/dsl/kubedb/v1alpha1/percona_xtra_db_spec'
22
- autoload :MemcachedList, 'kuby/kube-db/dsl/kubedb/v1alpha1/memcached_list'
23
- autoload :MongoDBList, 'kuby/kube-db/dsl/kubedb/v1alpha1/mongo_db_list'
24
- autoload :TLSPolicy, 'kuby/kube-db/dsl/kubedb/v1alpha1/tls_policy'
25
- autoload :MySQLSpec, 'kuby/kube-db/dsl/kubedb/v1alpha1/my_sql_spec'
26
- autoload :ProxySQLStatus, 'kuby/kube-db/dsl/kubedb/v1alpha1/proxy_sql_status'
27
- autoload :MongoDBShardingTopology, 'kuby/kube-db/dsl/kubedb/v1alpha1/mongo_db_sharding_topology'
28
- autoload :ProxySQL, 'kuby/kube-db/dsl/kubedb/v1alpha1/proxy_sql'
29
- autoload :PerconaXtraDB, 'kuby/kube-db/dsl/kubedb/v1alpha1/percona_xtra_db'
11
+ autoload :RedisList, 'kuby/kube-db/dsl/kubedb/v1alpha1/redis_list'
30
12
  autoload :MemberSecret, 'kuby/kube-db/dsl/kubedb/v1alpha1/member_secret'
31
- autoload :EtcdList, 'kuby/kube-db/dsl/kubedb/v1alpha1/etcd_list'
32
- autoload :MongoDBShardNode, 'kuby/kube-db/dsl/kubedb/v1alpha1/mongo_db_shard_node'
33
- autoload :MongoDBMongosNode, 'kuby/kube-db/dsl/kubedb/v1alpha1/mongo_db_mongos_node'
34
13
  autoload :PostgresStatus, 'kuby/kube-db/dsl/kubedb/v1alpha1/postgres_status'
14
+ autoload :MySQLClusterTopology, 'kuby/kube-db/dsl/kubedb/v1alpha1/my_sql_cluster_topology'
15
+ autoload :Snapshot, 'kuby/kube-db/dsl/kubedb/v1alpha1/snapshot'
16
+ autoload :MySQL, 'kuby/kube-db/dsl/kubedb/v1alpha1/my_sql'
17
+ autoload :MySQLGroupSpec, 'kuby/kube-db/dsl/kubedb/v1alpha1/my_sql_group_spec'
18
+ autoload :EtcdList, 'kuby/kube-db/dsl/kubedb/v1alpha1/etcd_list'
19
+ autoload :MongoDBStatus, 'kuby/kube-db/dsl/kubedb/v1alpha1/mongo_db_status'
20
+ autoload :ElasticsearchClusterTopology, 'kuby/kube-db/dsl/kubedb/v1alpha1/elasticsearch_cluster_topology'
35
21
  autoload :MemcachedSpec, 'kuby/kube-db/dsl/kubedb/v1alpha1/memcached_spec'
36
- autoload :MariaDB, 'kuby/kube-db/dsl/kubedb/v1alpha1/maria_db'
37
- autoload :ElasticsearchList, 'kuby/kube-db/dsl/kubedb/v1alpha1/elasticsearch_list'
38
- autoload :Redis, 'kuby/kube-db/dsl/kubedb/v1alpha1/redis'
39
- autoload :Memcached, 'kuby/kube-db/dsl/kubedb/v1alpha1/memcached'
22
+ autoload :MySQLList, 'kuby/kube-db/dsl/kubedb/v1alpha1/my_sql_list'
23
+ autoload :DormantDatabase, 'kuby/kube-db/dsl/kubedb/v1alpha1/dormant_database'
40
24
  autoload :LeaderElectionConfig, 'kuby/kube-db/dsl/kubedb/v1alpha1/leader_election_config'
41
- autoload :RecoveryTarget, 'kuby/kube-db/dsl/kubedb/v1alpha1/recovery_target'
42
- autoload :ElasticsearchNode, 'kuby/kube-db/dsl/kubedb/v1alpha1/elasticsearch_node'
43
- autoload :TLSConfig, 'kuby/kube-db/dsl/kubedb/v1alpha1/tls_config'
44
- autoload :RedisStatus, 'kuby/kube-db/dsl/kubedb/v1alpha1/redis_status'
45
- autoload :ProxySQLSpec, 'kuby/kube-db/dsl/kubedb/v1alpha1/proxy_sql_spec'
25
+ autoload :MySQLSpec, 'kuby/kube-db/dsl/kubedb/v1alpha1/my_sql_spec'
26
+ autoload :MongoDBList, 'kuby/kube-db/dsl/kubedb/v1alpha1/mongo_db_list'
27
+ autoload :PostgresList, 'kuby/kube-db/dsl/kubedb/v1alpha1/postgres_list'
28
+ autoload :Origin, 'kuby/kube-db/dsl/kubedb/v1alpha1/origin'
29
+ autoload :SnapshotList, 'kuby/kube-db/dsl/kubedb/v1alpha1/snapshot_list'
30
+ autoload :ElasticsearchList, 'kuby/kube-db/dsl/kubedb/v1alpha1/elasticsearch_list'
31
+ autoload :ElasticsearchStatus, 'kuby/kube-db/dsl/kubedb/v1alpha1/elasticsearch_status'
32
+ autoload :MongoDBSpec, 'kuby/kube-db/dsl/kubedb/v1alpha1/mongo_db_spec'
46
33
  autoload :MongoDBReplicaSet, 'kuby/kube-db/dsl/kubedb/v1alpha1/mongo_db_replica_set'
34
+ autoload :RedisStatus, 'kuby/kube-db/dsl/kubedb/v1alpha1/redis_status'
35
+ autoload :MemcachedList, 'kuby/kube-db/dsl/kubedb/v1alpha1/memcached_list'
36
+ autoload :OriginSpec, 'kuby/kube-db/dsl/kubedb/v1alpha1/origin_spec'
37
+ autoload :DormantDatabaseSpec, 'kuby/kube-db/dsl/kubedb/v1alpha1/dormant_database_spec'
38
+ autoload :ElasticsearchNode, 'kuby/kube-db/dsl/kubedb/v1alpha1/elasticsearch_node'
39
+ autoload :MongoDB, 'kuby/kube-db/dsl/kubedb/v1alpha1/mongo_db'
40
+ autoload :ScriptSourceSpec, 'kuby/kube-db/dsl/kubedb/v1alpha1/script_source_spec'
47
41
  autoload :RedisSpec, 'kuby/kube-db/dsl/kubedb/v1alpha1/redis_spec'
48
- autoload :MySQLClusterTopology, 'kuby/kube-db/dsl/kubedb/v1alpha1/my_sql_cluster_topology'
49
- autoload :ElasticsearchSpec, 'kuby/kube-db/dsl/kubedb/v1alpha1/elasticsearch_spec'
50
- autoload :MySQLStatus, 'kuby/kube-db/dsl/kubedb/v1alpha1/my_sql_status'
51
- autoload :MySQL, 'kuby/kube-db/dsl/kubedb/v1alpha1/my_sql'
52
- autoload :PgBouncerSpec, 'kuby/kube-db/dsl/kubedb/v1alpha1/pg_bouncer_spec'
42
+ autoload :MongoDBMongosNode, 'kuby/kube-db/dsl/kubedb/v1alpha1/mongo_db_mongos_node'
43
+ autoload :DormantDatabaseList, 'kuby/kube-db/dsl/kubedb/v1alpha1/dormant_database_list'
44
+ autoload :Postgres, 'kuby/kube-db/dsl/kubedb/v1alpha1/postgres'
45
+ autoload :MongoDBShardingTopology, 'kuby/kube-db/dsl/kubedb/v1alpha1/mongo_db_sharding_topology'
46
+ autoload :RedisClusterSpec, 'kuby/kube-db/dsl/kubedb/v1alpha1/redis_cluster_spec'
47
+ autoload :RecoveryTarget, 'kuby/kube-db/dsl/kubedb/v1alpha1/recovery_target'
48
+ autoload :SnapshotSpec, 'kuby/kube-db/dsl/kubedb/v1alpha1/snapshot_spec'
49
+ autoload :InitSpec, 'kuby/kube-db/dsl/kubedb/v1alpha1/init_spec'
50
+ autoload :DormantDatabaseStatus, 'kuby/kube-db/dsl/kubedb/v1alpha1/dormant_database_status'
51
+ autoload :PostgresSpec, 'kuby/kube-db/dsl/kubedb/v1alpha1/postgres_spec'
52
+ autoload :Redis, 'kuby/kube-db/dsl/kubedb/v1alpha1/redis'
53
+ autoload :SnapshotSourceSpec, 'kuby/kube-db/dsl/kubedb/v1alpha1/snapshot_source_spec'
54
+ autoload :Etcd, 'kuby/kube-db/dsl/kubedb/v1alpha1/etcd'
53
55
  autoload :PostgresArchiverSpec, 'kuby/kube-db/dsl/kubedb/v1alpha1/postgres_archiver_spec'
54
- autoload :Databases, 'kuby/kube-db/dsl/kubedb/v1alpha1/databases'
55
- autoload :ScriptSourceSpec, 'kuby/kube-db/dsl/kubedb/v1alpha1/script_source_spec'
56
- autoload :PgBouncer, 'kuby/kube-db/dsl/kubedb/v1alpha1/pg_bouncer'
57
- autoload :EtcdSpec, 'kuby/kube-db/dsl/kubedb/v1alpha1/etcd_spec'
58
- autoload :PgBouncerStatus, 'kuby/kube-db/dsl/kubedb/v1alpha1/pg_bouncer_status'
56
+ autoload :MemcachedStatus, 'kuby/kube-db/dsl/kubedb/v1alpha1/memcached_status'
57
+ autoload :Memcached, 'kuby/kube-db/dsl/kubedb/v1alpha1/memcached'
58
+ autoload :TLSPolicy, 'kuby/kube-db/dsl/kubedb/v1alpha1/tls_policy'
59
59
  autoload :Elasticsearch, 'kuby/kube-db/dsl/kubedb/v1alpha1/elasticsearch'
60
- autoload :CertificateSpec, 'kuby/kube-db/dsl/kubedb/v1alpha1/certificate_spec'
61
- autoload :MongoDBStatus, 'kuby/kube-db/dsl/kubedb/v1alpha1/mongo_db_status'
62
- autoload :ElasticsearchClusterTopology, 'kuby/kube-db/dsl/kubedb/v1alpha1/elasticsearch_cluster_topology'
63
- autoload :PerconaXtraDBStatus, 'kuby/kube-db/dsl/kubedb/v1alpha1/percona_xtra_db_status'
64
- autoload :PostgresList, 'kuby/kube-db/dsl/kubedb/v1alpha1/postgres_list'
65
- autoload :MariaDBList, 'kuby/kube-db/dsl/kubedb/v1alpha1/maria_db_list'
66
- autoload :PostgresWALSourceSpec, 'kuby/kube-db/dsl/kubedb/v1alpha1/postgres_wal_source_spec'
67
- autoload :ProxySQLBackendSpec, 'kuby/kube-db/dsl/kubedb/v1alpha1/proxy_sql_backend_spec'
68
- autoload :RedisList, 'kuby/kube-db/dsl/kubedb/v1alpha1/redis_list'
69
60
  end
@@ -0,0 +1,35 @@
1
+ module Kuby::KubeDB::DSL::Kubedb::V1alpha1
2
+ class BackupScheduleSpec < ::KubeDSL::DSLObject
3
+ value_fields :storage_secret_name, :storage_type, :cron_expression
4
+ object_field(:swift) { Kuby::KubeDB::DSL::Api::V1::SwiftSpec.new }
5
+ object_field(:pod_volume_claim_spec) { KubeDSL::DSL::V1::PersistentVolumeClaimSpec.new }
6
+ object_field(:rest) { Kuby::KubeDB::DSL::Api::V1::RestServerSpec.new }
7
+ object_field(:pod_template) { Kuby::KubeDB::DSL::Api::V1::PodTemplateSpec.new }
8
+ object_field(:gcs) { Kuby::KubeDB::DSL::Api::V1::GCSSpec.new }
9
+ object_field(:s3) { Kuby::KubeDB::DSL::Api::V1::S3Spec.new }
10
+ object_field(:b2) { Kuby::KubeDB::DSL::Api::V1::B2Spec.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[:cronExpression] = cron_expression
19
+ result[:swift] = swift.serialize
20
+ result[:podVolumeClaimSpec] = pod_volume_claim_spec.serialize
21
+ result[:rest] = rest.serialize
22
+ result[:podTemplate] = pod_template.serialize
23
+ result[:gcs] = gcs.serialize
24
+ result[:s3] = s3.serialize
25
+ result[:b2] = b2.serialize
26
+ result[:azure] = azure.serialize
27
+ result[:local] = local.serialize
28
+ end
29
+ end
30
+
31
+ def kind_sym
32
+ :backup_schedule_spec
33
+ end
34
+ end
35
+ end
@@ -1,13 +1,13 @@
1
1
  module Kuby::KubeDB::DSL::Kubedb::V1alpha1
2
- class PgBouncer < ::KubeDSL::DSLObject
2
+ class DormantDatabase < ::KubeDSL::DSLObject
3
3
  value_fields :api_version
4
- object_field(:status) { Kuby::KubeDB::DSL::Kubedb::V1alpha1::PgBouncerStatus.new }
5
- object_field(:spec) { Kuby::KubeDB::DSL::Kubedb::V1alpha1::PgBouncerSpec.new }
4
+ object_field(:status) { Kuby::KubeDB::DSL::Kubedb::V1alpha1::DormantDatabaseStatus.new }
5
+ object_field(:spec) { Kuby::KubeDB::DSL::Kubedb::V1alpha1::DormantDatabaseSpec.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] = "PgBouncer"
10
+ result[:kind] = "DormantDatabase"
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
- :pg_bouncer
19
+ :dormant_database
20
20
  end
21
21
  end
22
22
  end
@@ -1,12 +1,12 @@
1
1
  module Kuby::KubeDB::DSL::Kubedb::V1alpha1
2
- class PgBouncerList < ::KubeDSL::DSLObject
2
+ class DormantDatabaseList < ::KubeDSL::DSLObject
3
3
  value_fields :api_version
4
- array_field(:item) { Kuby::KubeDB::DSL::Kubedb::V1alpha1::PgBouncer.new }
4
+ array_field(:item) { Kuby::KubeDB::DSL::Kubedb::V1alpha1::DormantDatabase.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] = "PgBouncerList"
9
+ result[:kind] = "DormantDatabaseList"
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
- :pg_bouncer_list
17
+ :dormant_database_list
18
18
  end
19
19
  end
20
20
  end
@@ -0,0 +1,17 @@
1
+ module Kuby::KubeDB::DSL::Kubedb::V1alpha1
2
+ class DormantDatabaseSpec < ::KubeDSL::DSLObject
3
+ value_fields :wipe_out
4
+ object_field(:origin) { Kuby::KubeDB::DSL::Kubedb::V1alpha1::Origin.new }
5
+
6
+ def serialize
7
+ {}.tap do |result|
8
+ result[:wipeOut] = wipe_out
9
+ result[:origin] = origin.serialize
10
+ end
11
+ end
12
+
13
+ def kind_sym
14
+ :dormant_database_spec
15
+ end
16
+ end
17
+ end
@@ -1,17 +1,19 @@
1
1
  module Kuby::KubeDB::DSL::Kubedb::V1alpha1
2
- class PerconaXtraDBStatus < ::KubeDSL::DSLObject
3
- value_fields :observed_generation, :phase, :reason
2
+ class DormantDatabaseStatus < ::KubeDSL::DSLObject
3
+ value_fields :observed_generation, :phase, :reason, :wipe_out_time, :pausing_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[:wipeOutTime] = wipe_out_time
11
+ result[:pausingTime] = pausing_time
10
12
  end
11
13
  end
12
14
 
13
15
  def kind_sym
14
- :percona_xtra_db_status
16
+ :dormant_database_status
15
17
  end
16
18
  end
17
19
  end
@@ -1,13 +1,12 @@
1
1
  module Kuby::KubeDB::DSL::Kubedb::V1alpha1
2
2
  class ElasticsearchNode < ::KubeDSL::DSLObject
3
- value_fields :prefix, :max_unavailable, :replicas
3
+ value_fields :prefix, :replicas
4
4
  object_field(:storage) { KubeDSL::DSL::V1::PersistentVolumeClaimSpec.new }
5
5
  object_field(:resources) { KubeDSL::DSL::V1::ResourceRequirements.new }
6
6
 
7
7
  def serialize
8
8
  {}.tap do |result|
9
9
  result[:prefix] = prefix
10
- result[:maxUnavailable] = max_unavailable
11
10
  result[:replicas] = replicas
12
11
  result[:storage] = storage.serialize
13
12
  result[:resources] = resources.serialize
@@ -1,8 +1,9 @@
1
1
  module Kuby::KubeDB::DSL::Kubedb::V1alpha1
2
2
  class ElasticsearchSpec < ::KubeDSL::DSLObject
3
- value_fields :paused, :replicas, :storage_type, :termination_policy, :max_unavailable, :enable_ssl, :version, :halted, :auth_plugin, :disable_security
3
+ value_fields :replicas, :storage_type, :termination_policy, :enable_ssl, :version, :auth_plugin
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
+ object_field(:backup_schedule) { Kuby::KubeDB::DSL::Kubedb::V1alpha1::BackupScheduleSpec.new }
6
7
  object_field(:storage) { KubeDSL::DSL::V1::PersistentVolumeClaimSpec.new }
7
8
  object_field(:database_secret) { KubeDSL::DSL::V1::SecretVolumeSource.new }
8
9
  object_field(:config_source) { Kuby::KubeDB::DSL::V1::VolumeSource.new }
@@ -14,18 +15,15 @@ module Kuby::KubeDB::DSL::Kubedb::V1alpha1
14
15
 
15
16
  def serialize
16
17
  {}.tap do |result|
17
- result[:paused] = paused
18
18
  result[:replicas] = replicas
19
19
  result[:storageType] = storage_type
20
20
  result[:terminationPolicy] = termination_policy
21
- result[:maxUnavailable] = max_unavailable
22
21
  result[:enableSSL] = enable_ssl
23
22
  result[:version] = version
24
- result[:halted] = halted
25
23
  result[:authPlugin] = auth_plugin
26
- result[:disableSecurity] = disable_security
27
24
  result[:serviceTemplate] = service_template.serialize
28
25
  result[:monitor] = monitor.serialize
26
+ result[:backupSchedule] = backup_schedule.serialize
29
27
  result[:storage] = storage.serialize
30
28
  result[:databaseSecret] = database_secret.serialize
31
29
  result[:configSource] = config_source.serialize
@@ -1,10 +1,11 @@
1
1
  module Kuby::KubeDB::DSL::Kubedb::V1alpha1
2
2
  class EtcdSpec < ::KubeDSL::DSLObject
3
- value_fields :paused, :replicas, :termination_policy, :halted, :storage_type, :version
3
+ value_fields :replicas, :termination_policy, :storage_type, :version
4
4
  object_field(:tls) { Kuby::KubeDB::DSL::Kubedb::V1alpha1::TLSPolicy.new }
5
5
  object_field(:service_template) { Kuby::KubeDB::DSL::Api::V1::ServiceTemplateSpec.new }
6
6
  object_field(:monitor) { Kuby::KubeDB::DSL::Api::V1::AgentSpec.new }
7
7
  object_field(:pod_template) { Kuby::KubeDB::DSL::Api::V1::PodTemplateSpec.new }
8
+ object_field(:backup_schedule) { Kuby::KubeDB::DSL::Kubedb::V1alpha1::BackupScheduleSpec.new }
8
9
  object_field(:storage) { KubeDSL::DSL::V1::PersistentVolumeClaimSpec.new }
9
10
  object_field(:database_secret) { KubeDSL::DSL::V1::SecretVolumeSource.new }
10
11
  object_field(:init) { Kuby::KubeDB::DSL::Kubedb::V1alpha1::InitSpec.new }
@@ -12,16 +13,15 @@ module Kuby::KubeDB::DSL::Kubedb::V1alpha1
12
13
 
13
14
  def serialize
14
15
  {}.tap do |result|
15
- result[:paused] = paused
16
16
  result[:replicas] = replicas
17
17
  result[:terminationPolicy] = termination_policy
18
- result[:halted] = halted
19
18
  result[:storageType] = storage_type
20
19
  result[:version] = version
21
20
  result[:tls] = tls.serialize
22
21
  result[:serviceTemplate] = service_template.serialize
23
22
  result[:monitor] = monitor.serialize
24
23
  result[:podTemplate] = pod_template.serialize
24
+ result[:backupSchedule] = backup_schedule.serialize
25
25
  result[:storage] = storage.serialize
26
26
  result[:databaseSecret] = database_secret.serialize
27
27
  result[:init] = init.serialize
@@ -1,13 +1,13 @@
1
1
  module Kuby::KubeDB::DSL::Kubedb::V1alpha1
2
2
  class InitSpec < ::KubeDSL::DSLObject
3
3
  object_field(:postgres_wal) { Kuby::KubeDB::DSL::Kubedb::V1alpha1::PostgresWALSourceSpec.new }
4
- object_field(:stash_restore_session) { KubeDSL::DSL::V1::LocalObjectReference.new }
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
7
  def serialize
8
8
  {}.tap do |result|
9
9
  result[:postgresWAL] = postgres_wal.serialize
10
- result[:stashRestoreSession] = stash_restore_session.serialize
10
+ result[:snapshotSource] = snapshot_source.serialize
11
11
  result[:scriptSource] = script_source.serialize
12
12
  end
13
13
  end
@@ -1,6 +1,6 @@
1
1
  module Kuby::KubeDB::DSL::Kubedb::V1alpha1
2
2
  class MemcachedSpec < ::KubeDSL::DSLObject
3
- value_fields :paused, :replicas, :termination_policy, :halted, :version
3
+ value_fields :replicas, :termination_policy, :version
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 }
@@ -9,10 +9,8 @@ module Kuby::KubeDB::DSL::Kubedb::V1alpha1
9
9
 
10
10
  def serialize
11
11
  {}.tap do |result|
12
- result[:paused] = paused
13
12
  result[:replicas] = replicas
14
13
  result[:terminationPolicy] = termination_policy
15
- result[:halted] = halted
16
14
  result[:version] = version
17
15
  result[:serviceTemplate] = service_template.serialize
18
16
  result[:monitor] = monitor.serialize
@@ -1,10 +1,12 @@
1
1
  module Kuby::KubeDB::DSL::Kubedb::V1alpha1
2
2
  class MongoDBReplicaSet < ::KubeDSL::DSLObject
3
3
  value_fields :name
4
+ object_field(:key_file) { KubeDSL::DSL::V1::SecretVolumeSource.new }
4
5
 
5
6
  def serialize
6
7
  {}.tap do |result|
7
8
  result[:name] = name
9
+ result[:keyFile] = key_file.serialize
8
10
  end
9
11
  end
10
12
 
@@ -1,40 +1,36 @@
1
1
  module Kuby::KubeDB::DSL::Kubedb::V1alpha1
2
2
  class MongoDBSpec < ::KubeDSL::DSLObject
3
- value_fields :halted, :replicas, :storage_type, :termination_policy, :paused, :version, :cluster_auth_mode, :ssl_mode
4
- object_field(:tls) { Kuby::KubeDB::DSL::Kubedb::V1alpha1::TLSConfig.new }
3
+ value_fields :replicas, :storage_type, :termination_policy, :version
5
4
  object_field(:shard_topology) { Kuby::KubeDB::DSL::Kubedb::V1alpha1::MongoDBShardingTopology.new }
6
5
  object_field(:service_template) { Kuby::KubeDB::DSL::Api::V1::ServiceTemplateSpec.new }
7
6
  object_field(:monitor) { Kuby::KubeDB::DSL::Api::V1::AgentSpec.new }
8
7
  object_field(:replica_set) { Kuby::KubeDB::DSL::Kubedb::V1alpha1::MongoDBReplicaSet.new }
8
+ object_field(:backup_schedule) { Kuby::KubeDB::DSL::Kubedb::V1alpha1::BackupScheduleSpec.new }
9
9
  object_field(:storage) { KubeDSL::DSL::V1::PersistentVolumeClaimSpec.new }
10
- object_field(:database_secret) { KubeDSL::DSL::V1::SecretVolumeSource.new }
11
10
  object_field(:config_source) { Kuby::KubeDB::DSL::V1::VolumeSource.new }
11
+ object_field(:database_secret) { KubeDSL::DSL::V1::SecretVolumeSource.new }
12
12
  object_field(:pod_template) { Kuby::KubeDB::DSL::Api::V1::PodTemplateSpec.new }
13
13
  object_field(:init) { Kuby::KubeDB::DSL::Kubedb::V1alpha1::InitSpec.new }
14
- object_field(:key_file) { KubeDSL::DSL::V1::SecretVolumeSource.new }
14
+ object_field(:certificate_secret) { KubeDSL::DSL::V1::SecretVolumeSource.new }
15
15
  object_field(:update_strategy) { KubeDSL::DSL::Apps::V1::StatefulSetUpdateStrategy.new }
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
- result[:clusterAuthMode] = cluster_auth_mode
26
- result[:sslMode] = ssl_mode
27
- result[:tls] = tls.serialize
28
23
  result[:shardTopology] = shard_topology.serialize
29
24
  result[:serviceTemplate] = service_template.serialize
30
25
  result[:monitor] = monitor.serialize
31
26
  result[:replicaSet] = replica_set.serialize
27
+ result[:backupSchedule] = backup_schedule.serialize
32
28
  result[:storage] = storage.serialize
33
- result[:databaseSecret] = database_secret.serialize
34
29
  result[:configSource] = config_source.serialize
30
+ result[:databaseSecret] = database_secret.serialize
35
31
  result[:podTemplate] = pod_template.serialize
36
32
  result[:init] = init.serialize
37
- result[:keyFile] = key_file.serialize
33
+ result[:certificateSecret] = certificate_secret.serialize
38
34
  result[:updateStrategy] = update_strategy.serialize
39
35
  end
40
36
  end