kuby-kube-db 0.2.0 → 0.6.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +25 -0
- data/Gemfile +1 -2
- data/kuby-kube-db.gemspec +2 -1
- 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 +41 -16
- data/lib/kuby/kube-db/version.rb +2 -2
- metadata +63 -45
- 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
@@ -0,0 +1,22 @@
|
|
1
|
+
module Kuby::KubeDB::DSL::Authorization::V1alpha1
|
2
|
+
class MongoDBRoleSpec < ::KubeDSL::DSLObject
|
3
|
+
value_fields :revocation_statements, :creation_statements, :max_ttl, :default_ttl
|
4
|
+
object_field(:auth_manager_ref) { Kuby::KubeDB::DSL::Appcatalog::V1alpha1::AppReference.new }
|
5
|
+
object_field(:database_ref) { KubeDSL::DSL::V1::LocalObjectReference.new }
|
6
|
+
|
7
|
+
def serialize
|
8
|
+
{}.tap do |result|
|
9
|
+
result[:revocationStatements] = revocation_statements
|
10
|
+
result[:creationStatements] = creation_statements
|
11
|
+
result[:maxTTL] = max_ttl
|
12
|
+
result[:defaultTTL] = default_ttl
|
13
|
+
result[:authManagerRef] = auth_manager_ref.serialize
|
14
|
+
result[:databaseRef] = database_ref.serialize
|
15
|
+
end
|
16
|
+
end
|
17
|
+
|
18
|
+
def kind_sym
|
19
|
+
:mongo_db_role_spec
|
20
|
+
end
|
21
|
+
end
|
22
|
+
end
|
@@ -0,0 +1,18 @@
|
|
1
|
+
module Kuby::KubeDB::DSL::Authorization::V1alpha1
|
2
|
+
class MongoDBRoleStatus < ::KubeDSL::DSLObject
|
3
|
+
value_fields :observed_generation, :phase
|
4
|
+
array_field(:condition) { Kuby::KubeDB::DSL::Authorization::V1alpha1::MongoDBRoleCondition.new }
|
5
|
+
|
6
|
+
def serialize
|
7
|
+
{}.tap do |result|
|
8
|
+
result[:observedGeneration] = observed_generation
|
9
|
+
result[:phase] = phase
|
10
|
+
result[:conditions] = conditions.map(&:serialize)
|
11
|
+
end
|
12
|
+
end
|
13
|
+
|
14
|
+
def kind_sym
|
15
|
+
:mongo_db_role_status
|
16
|
+
end
|
17
|
+
end
|
18
|
+
end
|
@@ -1,13 +1,13 @@
|
|
1
|
-
module Kuby::KubeDB::DSL::
|
2
|
-
class
|
1
|
+
module Kuby::KubeDB::DSL::Authorization::V1alpha1
|
2
|
+
class MySQLRole < ::KubeDSL::DSLObject
|
3
3
|
value_fields :api_version
|
4
|
-
object_field(:status) { Kuby::KubeDB::DSL::
|
5
|
-
object_field(:spec) { Kuby::KubeDB::DSL::
|
4
|
+
object_field(:status) { Kuby::KubeDB::DSL::Authorization::V1alpha1::MySQLRoleStatus.new }
|
5
|
+
object_field(:spec) { Kuby::KubeDB::DSL::Authorization::V1alpha1::MySQLRoleSpec.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] = "MySQLRole"
|
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
|
+
:my_sql_role
|
20
20
|
end
|
21
21
|
end
|
22
22
|
end
|
@@ -0,0 +1,18 @@
|
|
1
|
+
module Kuby::KubeDB::DSL::Authorization::V1alpha1
|
2
|
+
class MySQLRoleCondition < ::KubeDSL::DSLObject
|
3
|
+
value_fields :status, :message, :type, :reason
|
4
|
+
|
5
|
+
def serialize
|
6
|
+
{}.tap do |result|
|
7
|
+
result[:status] = status
|
8
|
+
result[:message] = message
|
9
|
+
result[:type] = type
|
10
|
+
result[:reason] = reason
|
11
|
+
end
|
12
|
+
end
|
13
|
+
|
14
|
+
def kind_sym
|
15
|
+
:my_sql_role_condition
|
16
|
+
end
|
17
|
+
end
|
18
|
+
end
|
@@ -1,12 +1,12 @@
|
|
1
|
-
module Kuby::KubeDB::DSL::
|
2
|
-
class
|
1
|
+
module Kuby::KubeDB::DSL::Authorization::V1alpha1
|
2
|
+
class MySQLRoleList < ::KubeDSL::DSLObject
|
3
3
|
value_fields :api_version
|
4
|
-
array_field(:item) { Kuby::KubeDB::DSL::
|
4
|
+
array_field(:item) { Kuby::KubeDB::DSL::Authorization::V1alpha1::MySQLRole.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] = "MySQLRoleList"
|
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
|
+
:my_sql_role_list
|
18
18
|
end
|
19
19
|
end
|
20
20
|
end
|
@@ -0,0 +1,22 @@
|
|
1
|
+
module Kuby::KubeDB::DSL::Authorization::V1alpha1
|
2
|
+
class MySQLRoleSpec < ::KubeDSL::DSLObject
|
3
|
+
value_fields :revocation_statements, :creation_statements, :max_ttl, :default_ttl
|
4
|
+
object_field(:auth_manager_ref) { Kuby::KubeDB::DSL::Appcatalog::V1alpha1::AppReference.new }
|
5
|
+
object_field(:database_ref) { KubeDSL::DSL::V1::LocalObjectReference.new }
|
6
|
+
|
7
|
+
def serialize
|
8
|
+
{}.tap do |result|
|
9
|
+
result[:revocationStatements] = revocation_statements
|
10
|
+
result[:creationStatements] = creation_statements
|
11
|
+
result[:maxTTL] = max_ttl
|
12
|
+
result[:defaultTTL] = default_ttl
|
13
|
+
result[:authManagerRef] = auth_manager_ref.serialize
|
14
|
+
result[:databaseRef] = database_ref.serialize
|
15
|
+
end
|
16
|
+
end
|
17
|
+
|
18
|
+
def kind_sym
|
19
|
+
:my_sql_role_spec
|
20
|
+
end
|
21
|
+
end
|
22
|
+
end
|
@@ -0,0 +1,18 @@
|
|
1
|
+
module Kuby::KubeDB::DSL::Authorization::V1alpha1
|
2
|
+
class MySQLRoleStatus < ::KubeDSL::DSLObject
|
3
|
+
value_fields :observed_generation, :phase
|
4
|
+
array_field(:condition) { Kuby::KubeDB::DSL::Authorization::V1alpha1::MySQLRoleCondition.new }
|
5
|
+
|
6
|
+
def serialize
|
7
|
+
{}.tap do |result|
|
8
|
+
result[:observedGeneration] = observed_generation
|
9
|
+
result[:phase] = phase
|
10
|
+
result[:conditions] = conditions.map(&:serialize)
|
11
|
+
end
|
12
|
+
end
|
13
|
+
|
14
|
+
def kind_sym
|
15
|
+
:my_sql_role_status
|
16
|
+
end
|
17
|
+
end
|
18
|
+
end
|
@@ -0,0 +1,22 @@
|
|
1
|
+
module Kuby::KubeDB::DSL::Authorization::V1alpha1
|
2
|
+
class PostgresRole < ::KubeDSL::DSLObject
|
3
|
+
value_fields :api_version
|
4
|
+
object_field(:status) { Kuby::KubeDB::DSL::Authorization::V1alpha1::PostgresRoleStatus.new }
|
5
|
+
object_field(:spec) { Kuby::KubeDB::DSL::Authorization::V1alpha1::PostgresRoleSpec.new }
|
6
|
+
object_field(:metadata) { KubeDSL::DSL::Meta::V1::ObjectMeta.new }
|
7
|
+
|
8
|
+
def serialize
|
9
|
+
{}.tap do |result|
|
10
|
+
result[:kind] = "PostgresRole"
|
11
|
+
result[:apiVersion] = api_version
|
12
|
+
result[:status] = status.serialize
|
13
|
+
result[:spec] = spec.serialize
|
14
|
+
result[:metadata] = metadata.serialize
|
15
|
+
end
|
16
|
+
end
|
17
|
+
|
18
|
+
def kind_sym
|
19
|
+
:postgres_role
|
20
|
+
end
|
21
|
+
end
|
22
|
+
end
|
@@ -0,0 +1,18 @@
|
|
1
|
+
module Kuby::KubeDB::DSL::Authorization::V1alpha1
|
2
|
+
class PostgresRoleCondition < ::KubeDSL::DSLObject
|
3
|
+
value_fields :status, :message, :type, :reason
|
4
|
+
|
5
|
+
def serialize
|
6
|
+
{}.tap do |result|
|
7
|
+
result[:status] = status
|
8
|
+
result[:message] = message
|
9
|
+
result[:type] = type
|
10
|
+
result[:reason] = reason
|
11
|
+
end
|
12
|
+
end
|
13
|
+
|
14
|
+
def kind_sym
|
15
|
+
:postgres_role_condition
|
16
|
+
end
|
17
|
+
end
|
18
|
+
end
|
@@ -0,0 +1,20 @@
|
|
1
|
+
module Kuby::KubeDB::DSL::Authorization::V1alpha1
|
2
|
+
class PostgresRoleList < ::KubeDSL::DSLObject
|
3
|
+
value_fields :api_version
|
4
|
+
array_field(:item) { Kuby::KubeDB::DSL::Authorization::V1alpha1::PostgresRole.new }
|
5
|
+
object_field(:metadata) { KubeDSL::DSL::Meta::V1::ListMeta.new }
|
6
|
+
|
7
|
+
def serialize
|
8
|
+
{}.tap do |result|
|
9
|
+
result[:kind] = "PostgresRoleList"
|
10
|
+
result[:apiVersion] = api_version
|
11
|
+
result[:items] = items.map(&:serialize)
|
12
|
+
result[:metadata] = metadata.serialize
|
13
|
+
end
|
14
|
+
end
|
15
|
+
|
16
|
+
def kind_sym
|
17
|
+
:postgres_role_list
|
18
|
+
end
|
19
|
+
end
|
20
|
+
end
|
@@ -0,0 +1,24 @@
|
|
1
|
+
module Kuby::KubeDB::DSL::Authorization::V1alpha1
|
2
|
+
class PostgresRoleSpec < ::KubeDSL::DSLObject
|
3
|
+
value_fields :rollback_statements, :revocation_statements, :creation_statements, :max_ttl, :renew_statements, :default_ttl
|
4
|
+
object_field(:auth_manager_ref) { Kuby::KubeDB::DSL::Appcatalog::V1alpha1::AppReference.new }
|
5
|
+
object_field(:database_ref) { KubeDSL::DSL::V1::LocalObjectReference.new }
|
6
|
+
|
7
|
+
def serialize
|
8
|
+
{}.tap do |result|
|
9
|
+
result[:rollbackStatements] = rollback_statements
|
10
|
+
result[:revocationStatements] = revocation_statements
|
11
|
+
result[:creationStatements] = creation_statements
|
12
|
+
result[:maxTTL] = max_ttl
|
13
|
+
result[:renewStatements] = renew_statements
|
14
|
+
result[:defaultTTL] = default_ttl
|
15
|
+
result[:authManagerRef] = auth_manager_ref.serialize
|
16
|
+
result[:databaseRef] = database_ref.serialize
|
17
|
+
end
|
18
|
+
end
|
19
|
+
|
20
|
+
def kind_sym
|
21
|
+
:postgres_role_spec
|
22
|
+
end
|
23
|
+
end
|
24
|
+
end
|
@@ -0,0 +1,18 @@
|
|
1
|
+
module Kuby::KubeDB::DSL::Authorization::V1alpha1
|
2
|
+
class PostgresRoleStatus < ::KubeDSL::DSLObject
|
3
|
+
value_fields :observed_generation, :phase
|
4
|
+
array_field(:condition) { Kuby::KubeDB::DSL::Authorization::V1alpha1::PostgresRoleCondition.new }
|
5
|
+
|
6
|
+
def serialize
|
7
|
+
{}.tap do |result|
|
8
|
+
result[:observedGeneration] = observed_generation
|
9
|
+
result[:phase] = phase
|
10
|
+
result[:conditions] = conditions.map(&:serialize)
|
11
|
+
end
|
12
|
+
end
|
13
|
+
|
14
|
+
def kind_sym
|
15
|
+
:postgres_role_status
|
16
|
+
end
|
17
|
+
end
|
18
|
+
end
|
@@ -0,0 +1,17 @@
|
|
1
|
+
module Kuby::KubeDB::DSL::Authorization::V1alpha1
|
2
|
+
class RoleReference < ::KubeDSL::DSLObject
|
3
|
+
value_fields :kind, :namespace, :name
|
4
|
+
|
5
|
+
def serialize
|
6
|
+
{}.tap do |result|
|
7
|
+
result[:kind] = kind
|
8
|
+
result[:namespace] = namespace
|
9
|
+
result[:name] = name
|
10
|
+
end
|
11
|
+
end
|
12
|
+
|
13
|
+
def kind_sym
|
14
|
+
:role_reference
|
15
|
+
end
|
16
|
+
end
|
17
|
+
end
|
@@ -1,65 +1,51 @@
|
|
1
1
|
module Kuby::KubeDB::DSL::Catalog::V1alpha1
|
2
|
+
autoload :PostgresVersionList, 'kuby/kube-db/dsl/catalog/v1alpha1/postgres_version_list'
|
3
|
+
autoload :MongoDBVersionSpec, 'kuby/kube-db/dsl/catalog/v1alpha1/mongo_db_version_spec'
|
4
|
+
autoload :MySQLVersion, 'kuby/kube-db/dsl/catalog/v1alpha1/my_sql_version'
|
2
5
|
autoload :ElasticsearchVersionDatabase, 'kuby/kube-db/dsl/catalog/v1alpha1/elasticsearch_version_database'
|
3
|
-
autoload :
|
4
|
-
autoload :
|
5
|
-
autoload :
|
6
|
+
autoload :MySQLVersionList, 'kuby/kube-db/dsl/catalog/v1alpha1/my_sql_version_list'
|
7
|
+
autoload :MySQLVersionInitContainer, 'kuby/kube-db/dsl/catalog/v1alpha1/my_sql_version_init_container'
|
8
|
+
autoload :MySQLVersionTools, 'kuby/kube-db/dsl/catalog/v1alpha1/my_sql_version_tools'
|
9
|
+
autoload :ElasticsearchVersion, 'kuby/kube-db/dsl/catalog/v1alpha1/elasticsearch_version'
|
10
|
+
autoload :RedisVersionList, 'kuby/kube-db/dsl/catalog/v1alpha1/redis_version_list'
|
11
|
+
autoload :EtcdVersion, 'kuby/kube-db/dsl/catalog/v1alpha1/etcd_version'
|
12
|
+
autoload :EtcdVersionList, 'kuby/kube-db/dsl/catalog/v1alpha1/etcd_version_list'
|
13
|
+
autoload :MemcachedVersionPodSecurityPolicy, 'kuby/kube-db/dsl/catalog/v1alpha1/memcached_version_pod_security_policy'
|
14
|
+
autoload :ElasticsearchVersionSpec, 'kuby/kube-db/dsl/catalog/v1alpha1/elasticsearch_version_spec'
|
15
|
+
autoload :EtcdVersionSpec, 'kuby/kube-db/dsl/catalog/v1alpha1/etcd_version_spec'
|
16
|
+
autoload :EtcdVersionTools, 'kuby/kube-db/dsl/catalog/v1alpha1/etcd_version_tools'
|
17
|
+
autoload :MemcachedVersion, 'kuby/kube-db/dsl/catalog/v1alpha1/memcached_version'
|
18
|
+
autoload :MySQLVersionPodSecurityPolicy, 'kuby/kube-db/dsl/catalog/v1alpha1/my_sql_version_pod_security_policy'
|
6
19
|
autoload :MongoDBVersionTools, 'kuby/kube-db/dsl/catalog/v1alpha1/mongo_db_version_tools'
|
7
|
-
autoload :
|
8
|
-
autoload :
|
20
|
+
autoload :MemcachedVersionSpec, 'kuby/kube-db/dsl/catalog/v1alpha1/memcached_version_spec'
|
21
|
+
autoload :ElasticsearchVersionTools, 'kuby/kube-db/dsl/catalog/v1alpha1/elasticsearch_version_tools'
|
22
|
+
autoload :RedisVersion, 'kuby/kube-db/dsl/catalog/v1alpha1/redis_version'
|
23
|
+
autoload :MemcachedVersionExporter, 'kuby/kube-db/dsl/catalog/v1alpha1/memcached_version_exporter'
|
24
|
+
autoload :RedisVersionPodSecurityPolicy, 'kuby/kube-db/dsl/catalog/v1alpha1/redis_version_pod_security_policy'
|
25
|
+
autoload :PostgresVersionExporter, 'kuby/kube-db/dsl/catalog/v1alpha1/postgres_version_exporter'
|
9
26
|
autoload :MemcachedVersionDatabase, 'kuby/kube-db/dsl/catalog/v1alpha1/memcached_version_database'
|
10
|
-
autoload :MemcachedVersion, 'kuby/kube-db/dsl/catalog/v1alpha1/memcached_version'
|
11
|
-
autoload :ProxySQLVersionExporter, 'kuby/kube-db/dsl/catalog/v1alpha1/proxy_sql_version_exporter'
|
12
|
-
autoload :MongoDBVersionExporter, 'kuby/kube-db/dsl/catalog/v1alpha1/mongo_db_version_exporter'
|
13
|
-
autoload :EtcdVersionTools, 'kuby/kube-db/dsl/catalog/v1alpha1/etcd_version_tools'
|
14
27
|
autoload :PostgresVersionTools, 'kuby/kube-db/dsl/catalog/v1alpha1/postgres_version_tools'
|
15
28
|
autoload :MySQLVersionDatabase, 'kuby/kube-db/dsl/catalog/v1alpha1/my_sql_version_database'
|
16
|
-
autoload :
|
17
|
-
autoload :
|
18
|
-
autoload :
|
29
|
+
autoload :MongoDBVersionInitContainer, 'kuby/kube-db/dsl/catalog/v1alpha1/mongo_db_version_init_container'
|
30
|
+
autoload :MongoDBVersionExporter, 'kuby/kube-db/dsl/catalog/v1alpha1/mongo_db_version_exporter'
|
31
|
+
autoload :PostgresVersion, 'kuby/kube-db/dsl/catalog/v1alpha1/postgres_version'
|
19
32
|
autoload :MongoDBVersionPodSecurityPolicy, 'kuby/kube-db/dsl/catalog/v1alpha1/mongo_db_version_pod_security_policy'
|
33
|
+
autoload :ElasticsearchVersionPodSecurityPolicy, 'kuby/kube-db/dsl/catalog/v1alpha1/elasticsearch_version_pod_security_policy'
|
34
|
+
autoload :PostgresVersionDatabase, 'kuby/kube-db/dsl/catalog/v1alpha1/postgres_version_database'
|
35
|
+
autoload :MongoDBVersionDatabase, 'kuby/kube-db/dsl/catalog/v1alpha1/mongo_db_version_database'
|
20
36
|
autoload :ElasticsearchVersionInitContainer, 'kuby/kube-db/dsl/catalog/v1alpha1/elasticsearch_version_init_container'
|
21
|
-
autoload :
|
22
|
-
autoload :
|
23
|
-
autoload :
|
24
|
-
autoload :
|
25
|
-
autoload :
|
26
|
-
autoload :PostgresVersion, 'kuby/kube-db/dsl/catalog/v1alpha1/postgres_version'
|
27
|
-
autoload :EtcdVersionSpec, 'kuby/kube-db/dsl/catalog/v1alpha1/etcd_version_spec'
|
28
|
-
autoload :MySQLVersionInitContainer, 'kuby/kube-db/dsl/catalog/v1alpha1/my_sql_version_init_container'
|
29
|
-
autoload :ElasticsearchVersionTools, 'kuby/kube-db/dsl/catalog/v1alpha1/elasticsearch_version_tools'
|
30
|
-
autoload :PerconaXtraDBVersionSpec, 'kuby/kube-db/dsl/catalog/v1alpha1/percona_xtra_db_version_spec'
|
31
|
-
autoload :MemcachedVersionList, 'kuby/kube-db/dsl/catalog/v1alpha1/memcached_version_list'
|
32
|
-
autoload :MySQLVersionReplicationModeDetector, 'kuby/kube-db/dsl/catalog/v1alpha1/my_sql_version_replication_mode_detector'
|
33
|
-
autoload :EtcdVersionList, 'kuby/kube-db/dsl/catalog/v1alpha1/etcd_version_list'
|
34
|
-
autoload :ElasticsearchVersion, 'kuby/kube-db/dsl/catalog/v1alpha1/elasticsearch_version'
|
37
|
+
autoload :MongoDBVersionList, 'kuby/kube-db/dsl/catalog/v1alpha1/mongo_db_version_list'
|
38
|
+
autoload :RedisVersionDatabase, 'kuby/kube-db/dsl/catalog/v1alpha1/redis_version_database'
|
39
|
+
autoload :ElasticsearchVersionExporter, 'kuby/kube-db/dsl/catalog/v1alpha1/elasticsearch_version_exporter'
|
40
|
+
autoload :MySQLVersionExporter, 'kuby/kube-db/dsl/catalog/v1alpha1/my_sql_version_exporter'
|
41
|
+
autoload :EtcdVersionExporter, 'kuby/kube-db/dsl/catalog/v1alpha1/etcd_version_exporter'
|
35
42
|
autoload :PostgresVersionSpec, 'kuby/kube-db/dsl/catalog/v1alpha1/postgres_version_spec'
|
36
|
-
autoload :
|
37
|
-
autoload :ProxySQLVersionProxysql, 'kuby/kube-db/dsl/catalog/v1alpha1/proxy_sql_version_proxysql'
|
38
|
-
autoload :MySQLVersionPodSecurityPolicy, 'kuby/kube-db/dsl/catalog/v1alpha1/my_sql_version_pod_security_policy'
|
39
|
-
autoload :MySQLVersion, 'kuby/kube-db/dsl/catalog/v1alpha1/my_sql_version'
|
40
|
-
autoload :MongoDBVersionSpec, 'kuby/kube-db/dsl/catalog/v1alpha1/mongo_db_version_spec'
|
41
|
-
autoload :PostgresVersionDatabase, 'kuby/kube-db/dsl/catalog/v1alpha1/postgres_version_database'
|
42
|
-
autoload :ElasticsearchVersionPodSecurityPolicy, 'kuby/kube-db/dsl/catalog/v1alpha1/elasticsearch_version_pod_security_policy'
|
43
|
-
autoload :PerconaXtraDBVersionExporter, 'kuby/kube-db/dsl/catalog/v1alpha1/percona_xtra_db_version_exporter'
|
44
|
-
autoload :PostgresVersionList, 'kuby/kube-db/dsl/catalog/v1alpha1/postgres_version_list'
|
45
|
-
autoload :MySQLVersionTools, 'kuby/kube-db/dsl/catalog/v1alpha1/my_sql_version_tools'
|
46
|
-
autoload :RedisVersionPodSecurityPolicy, 'kuby/kube-db/dsl/catalog/v1alpha1/redis_version_pod_security_policy'
|
47
|
-
autoload :PostgresVersionPodSecurityPolicy, 'kuby/kube-db/dsl/catalog/v1alpha1/postgres_version_pod_security_policy'
|
48
|
-
autoload :PerconaXtraDBVersionInitContainer, 'kuby/kube-db/dsl/catalog/v1alpha1/percona_xtra_db_version_init_container'
|
43
|
+
autoload :ElasticsearchVersionList, 'kuby/kube-db/dsl/catalog/v1alpha1/elasticsearch_version_list'
|
49
44
|
autoload :RedisVersionSpec, 'kuby/kube-db/dsl/catalog/v1alpha1/redis_version_spec'
|
50
|
-
autoload :MongoDBVersionList, 'kuby/kube-db/dsl/catalog/v1alpha1/mongo_db_version_list'
|
51
|
-
autoload :PerconaXtraDBVersion, 'kuby/kube-db/dsl/catalog/v1alpha1/percona_xtra_db_version'
|
52
|
-
autoload :PerconaXtraDBVersionList, 'kuby/kube-db/dsl/catalog/v1alpha1/percona_xtra_db_version_list'
|
53
|
-
autoload :RedisVersionExporter, 'kuby/kube-db/dsl/catalog/v1alpha1/redis_version_exporter'
|
54
|
-
autoload :MySQLVersionSpec, 'kuby/kube-db/dsl/catalog/v1alpha1/my_sql_version_spec'
|
55
|
-
autoload :PerconaXtraDBVersionDatabase, 'kuby/kube-db/dsl/catalog/v1alpha1/percona_xtra_db_version_database'
|
56
|
-
autoload :MongoDBVersionDatabase, 'kuby/kube-db/dsl/catalog/v1alpha1/mongo_db_version_database'
|
57
|
-
autoload :MySQLVersionList, 'kuby/kube-db/dsl/catalog/v1alpha1/my_sql_version_list'
|
58
45
|
autoload :MongoDBVersion, 'kuby/kube-db/dsl/catalog/v1alpha1/mongo_db_version'
|
46
|
+
autoload :MySQLVersionSpec, 'kuby/kube-db/dsl/catalog/v1alpha1/my_sql_version_spec'
|
47
|
+
autoload :PostgresVersionPodSecurityPolicy, 'kuby/kube-db/dsl/catalog/v1alpha1/postgres_version_pod_security_policy'
|
48
|
+
autoload :MemcachedVersionList, 'kuby/kube-db/dsl/catalog/v1alpha1/memcached_version_list'
|
59
49
|
autoload :EtcdVersionDatabase, 'kuby/kube-db/dsl/catalog/v1alpha1/etcd_version_database'
|
60
|
-
autoload :
|
61
|
-
autoload :MemcachedVersionExporter, 'kuby/kube-db/dsl/catalog/v1alpha1/memcached_version_exporter'
|
62
|
-
autoload :MemcachedVersionSpec, 'kuby/kube-db/dsl/catalog/v1alpha1/memcached_version_spec'
|
63
|
-
autoload :PerconaXtraDBVersionPodSecurityPolicy, 'kuby/kube-db/dsl/catalog/v1alpha1/percona_xtra_db_version_pod_security_policy'
|
64
|
-
autoload :EtcdVersionExporter, 'kuby/kube-db/dsl/catalog/v1alpha1/etcd_version_exporter'
|
50
|
+
autoload :RedisVersionExporter, 'kuby/kube-db/dsl/catalog/v1alpha1/redis_version_exporter'
|
65
51
|
end
|
@@ -1,11 +1,10 @@
|
|
1
1
|
module Kuby::KubeDB::DSL::Catalog::V1alpha1
|
2
2
|
class ElasticsearchVersionInitContainer < ::KubeDSL::DSLObject
|
3
|
-
value_fields :image
|
3
|
+
value_fields :image
|
4
4
|
|
5
5
|
def serialize
|
6
6
|
{}.tap do |result|
|
7
7
|
result[:image] = image
|
8
|
-
result[:yqImage] = yq_image
|
9
8
|
end
|
10
9
|
end
|
11
10
|
|
@@ -1,9 +1,10 @@
|
|
1
1
|
module Kuby::KubeDB::DSL::Catalog::V1alpha1
|
2
2
|
class ElasticsearchVersionPodSecurityPolicy < ::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,6 +1,6 @@
|
|
1
1
|
module Kuby::KubeDB::DSL::Catalog::V1alpha1
|
2
2
|
class ElasticsearchVersionSpec < ::KubeDSL::DSLObject
|
3
|
-
value_fields :deprecated, :version
|
3
|
+
value_fields :deprecated, :version
|
4
4
|
object_field(:exporter) { Kuby::KubeDB::DSL::Catalog::V1alpha1::ElasticsearchVersionExporter.new }
|
5
5
|
object_field(:pod_security_policies) { Kuby::KubeDB::DSL::Catalog::V1alpha1::ElasticsearchVersionPodSecurityPolicy.new }
|
6
6
|
object_field(:init_container) { Kuby::KubeDB::DSL::Catalog::V1alpha1::ElasticsearchVersionInitContainer.new }
|
@@ -11,7 +11,6 @@ module Kuby::KubeDB::DSL::Catalog::V1alpha1
|
|
11
11
|
{}.tap do |result|
|
12
12
|
result[:deprecated] = deprecated
|
13
13
|
result[:version] = version
|
14
|
-
result[:authPlugin] = auth_plugin
|
15
14
|
result[:exporter] = exporter.serialize
|
16
15
|
result[:podSecurityPolicies] = pod_security_policies.serialize
|
17
16
|
result[:initContainer] = init_container.serialize
|
@@ -1,9 +1,10 @@
|
|
1
1
|
module Kuby::KubeDB::DSL::Catalog::V1alpha1
|
2
2
|
class MongoDBVersionPodSecurityPolicy < ::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
|