kuby-kube-db 0.7.0 → 0.7.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile +2 -2
- data/Rakefile +30 -27
- data/kuby-kube-db.gemspec +1 -1
- data/lib/kuby/kube-db/dsl/api/v1/agent_spec.rb +14 -6
- data/lib/kuby/kube-db/dsl/api/v1/azure_spec.rb +8 -2
- data/lib/kuby/kube-db/dsl/api/v1/b2_spec.rb +8 -2
- data/lib/kuby/kube-db/dsl/api/v1/backend.rb +18 -9
- data/lib/kuby/kube-db/dsl/api/v1/gcs_spec.rb +8 -2
- data/lib/kuby/kube-db/dsl/api/v1/local_spec.rb +35 -4
- data/lib/kuby/kube-db/dsl/api/v1/object_meta.rb +3 -1
- data/lib/kuby/kube-db/dsl/api/v1/pod_spec.rb +34 -13
- data/lib/kuby/kube-db/dsl/api/v1/pod_template_spec.rb +8 -4
- data/lib/kuby/kube-db/dsl/api/v1/prometheus_spec.rb +10 -3
- data/lib/kuby/kube-db/dsl/api/v1/rest_server_spec.rb +4 -2
- data/lib/kuby/kube-db/dsl/api/v1/s3_spec.rb +8 -2
- data/lib/kuby/kube-db/dsl/api/v1/service_port.rb +8 -2
- data/lib/kuby/kube-db/dsl/api/v1/service_spec.rb +18 -3
- data/lib/kuby/kube-db/dsl/api/v1/service_template_spec.rb +6 -3
- data/lib/kuby/kube-db/dsl/api/v1/swift_spec.rb +6 -2
- data/lib/kuby/kube-db/dsl/api/v1.rb +1 -1
- data/lib/kuby/kube-db/dsl/api.rb +1 -1
- data/lib/kuby/kube-db/dsl/appcatalog/v1alpha1/app_reference.rb +7 -1
- data/lib/kuby/kube-db/dsl/authorization/v1alpha1/database_access_request.rb +8 -3
- data/lib/kuby/kube-db/dsl/authorization/v1alpha1/database_access_request_condition.rb +9 -1
- data/lib/kuby/kube-db/dsl/authorization/v1alpha1/database_access_request_list.rb +6 -2
- data/lib/kuby/kube-db/dsl/authorization/v1alpha1/database_access_request_spec.rb +8 -4
- data/lib/kuby/kube-db/dsl/authorization/v1alpha1/database_access_request_status.rb +6 -2
- data/lib/kuby/kube-db/dsl/authorization/v1alpha1/lease.rb +7 -1
- data/lib/kuby/kube-db/dsl/authorization/v1alpha1/mongo_db_role.rb +8 -3
- data/lib/kuby/kube-db/dsl/authorization/v1alpha1/mongo_db_role_condition.rb +9 -1
- data/lib/kuby/kube-db/dsl/authorization/v1alpha1/mongo_db_role_list.rb +6 -2
- data/lib/kuby/kube-db/dsl/authorization/v1alpha1/mongo_db_role_spec.rb +13 -3
- data/lib/kuby/kube-db/dsl/authorization/v1alpha1/mongo_db_role_status.rb +6 -1
- data/lib/kuby/kube-db/dsl/authorization/v1alpha1/my_sql_role.rb +8 -3
- data/lib/kuby/kube-db/dsl/authorization/v1alpha1/my_sql_role_condition.rb +9 -1
- data/lib/kuby/kube-db/dsl/authorization/v1alpha1/my_sql_role_list.rb +6 -2
- data/lib/kuby/kube-db/dsl/authorization/v1alpha1/my_sql_role_spec.rb +13 -3
- data/lib/kuby/kube-db/dsl/authorization/v1alpha1/my_sql_role_status.rb +6 -1
- data/lib/kuby/kube-db/dsl/authorization/v1alpha1/postgres_role.rb +8 -3
- data/lib/kuby/kube-db/dsl/authorization/v1alpha1/postgres_role_condition.rb +9 -1
- data/lib/kuby/kube-db/dsl/authorization/v1alpha1/postgres_role_list.rb +6 -2
- data/lib/kuby/kube-db/dsl/authorization/v1alpha1/postgres_role_spec.rb +17 -3
- data/lib/kuby/kube-db/dsl/authorization/v1alpha1/postgres_role_status.rb +6 -1
- data/lib/kuby/kube-db/dsl/authorization/v1alpha1/role_reference.rb +7 -1
- data/lib/kuby/kube-db/dsl/catalog/v1alpha1/elasticsearch_version.rb +6 -2
- data/lib/kuby/kube-db/dsl/catalog/v1alpha1/elasticsearch_version_database.rb +3 -1
- data/lib/kuby/kube-db/dsl/catalog/v1alpha1/elasticsearch_version_exporter.rb +3 -1
- data/lib/kuby/kube-db/dsl/catalog/v1alpha1/elasticsearch_version_init_container.rb +3 -1
- data/lib/kuby/kube-db/dsl/catalog/v1alpha1/elasticsearch_version_list.rb +6 -2
- data/lib/kuby/kube-db/dsl/catalog/v1alpha1/elasticsearch_version_pod_security_policy.rb +5 -1
- data/lib/kuby/kube-db/dsl/catalog/v1alpha1/elasticsearch_version_spec.rb +12 -3
- data/lib/kuby/kube-db/dsl/catalog/v1alpha1/elasticsearch_version_tools.rb +3 -1
- data/lib/kuby/kube-db/dsl/catalog/v1alpha1/etcd_version.rb +6 -2
- data/lib/kuby/kube-db/dsl/catalog/v1alpha1/etcd_version_database.rb +3 -1
- data/lib/kuby/kube-db/dsl/catalog/v1alpha1/etcd_version_exporter.rb +3 -1
- data/lib/kuby/kube-db/dsl/catalog/v1alpha1/etcd_version_list.rb +6 -2
- data/lib/kuby/kube-db/dsl/catalog/v1alpha1/etcd_version_spec.rb +9 -2
- data/lib/kuby/kube-db/dsl/catalog/v1alpha1/etcd_version_tools.rb +3 -1
- data/lib/kuby/kube-db/dsl/catalog/v1alpha1/memcached_version.rb +6 -2
- data/lib/kuby/kube-db/dsl/catalog/v1alpha1/memcached_version_database.rb +3 -1
- data/lib/kuby/kube-db/dsl/catalog/v1alpha1/memcached_version_exporter.rb +3 -1
- data/lib/kuby/kube-db/dsl/catalog/v1alpha1/memcached_version_list.rb +6 -2
- data/lib/kuby/kube-db/dsl/catalog/v1alpha1/memcached_version_pod_security_policy.rb +3 -1
- data/lib/kuby/kube-db/dsl/catalog/v1alpha1/memcached_version_spec.rb +9 -2
- data/lib/kuby/kube-db/dsl/catalog/v1alpha1/mongo_db_version.rb +6 -2
- data/lib/kuby/kube-db/dsl/catalog/v1alpha1/mongo_db_version_database.rb +3 -1
- data/lib/kuby/kube-db/dsl/catalog/v1alpha1/mongo_db_version_exporter.rb +3 -1
- data/lib/kuby/kube-db/dsl/catalog/v1alpha1/mongo_db_version_init_container.rb +3 -1
- data/lib/kuby/kube-db/dsl/catalog/v1alpha1/mongo_db_version_list.rb +6 -2
- data/lib/kuby/kube-db/dsl/catalog/v1alpha1/mongo_db_version_pod_security_policy.rb +5 -1
- data/lib/kuby/kube-db/dsl/catalog/v1alpha1/mongo_db_version_spec.rb +12 -3
- data/lib/kuby/kube-db/dsl/catalog/v1alpha1/mongo_db_version_tools.rb +3 -1
- data/lib/kuby/kube-db/dsl/catalog/v1alpha1/my_sql_version.rb +6 -2
- data/lib/kuby/kube-db/dsl/catalog/v1alpha1/my_sql_version_database.rb +3 -1
- data/lib/kuby/kube-db/dsl/catalog/v1alpha1/my_sql_version_exporter.rb +3 -1
- data/lib/kuby/kube-db/dsl/catalog/v1alpha1/my_sql_version_init_container.rb +3 -1
- data/lib/kuby/kube-db/dsl/catalog/v1alpha1/my_sql_version_list.rb +6 -2
- data/lib/kuby/kube-db/dsl/catalog/v1alpha1/my_sql_version_pod_security_policy.rb +5 -1
- data/lib/kuby/kube-db/dsl/catalog/v1alpha1/my_sql_version_spec.rb +12 -3
- data/lib/kuby/kube-db/dsl/catalog/v1alpha1/my_sql_version_tools.rb +3 -1
- data/lib/kuby/kube-db/dsl/catalog/v1alpha1/postgres_version.rb +6 -2
- data/lib/kuby/kube-db/dsl/catalog/v1alpha1/postgres_version_database.rb +3 -1
- data/lib/kuby/kube-db/dsl/catalog/v1alpha1/postgres_version_exporter.rb +3 -1
- data/lib/kuby/kube-db/dsl/catalog/v1alpha1/postgres_version_list.rb +6 -2
- data/lib/kuby/kube-db/dsl/catalog/v1alpha1/postgres_version_pod_security_policy.rb +5 -1
- data/lib/kuby/kube-db/dsl/catalog/v1alpha1/postgres_version_spec.rb +11 -3
- data/lib/kuby/kube-db/dsl/catalog/v1alpha1/postgres_version_tools.rb +3 -1
- data/lib/kuby/kube-db/dsl/catalog/v1alpha1/redis_version.rb +6 -2
- data/lib/kuby/kube-db/dsl/catalog/v1alpha1/redis_version_database.rb +3 -1
- data/lib/kuby/kube-db/dsl/catalog/v1alpha1/redis_version_exporter.rb +3 -1
- data/lib/kuby/kube-db/dsl/catalog/v1alpha1/redis_version_list.rb +6 -2
- data/lib/kuby/kube-db/dsl/catalog/v1alpha1/redis_version_pod_security_policy.rb +3 -1
- data/lib/kuby/kube-db/dsl/catalog/v1alpha1/redis_version_spec.rb +9 -2
- data/lib/kuby/kube-db/dsl/kubedb/v1alpha1/backup_schedule_spec.rb +25 -10
- data/lib/kuby/kube-db/dsl/kubedb/v1alpha1/dormant_database.rb +8 -3
- data/lib/kuby/kube-db/dsl/kubedb/v1alpha1/dormant_database_list.rb +6 -2
- data/lib/kuby/kube-db/dsl/kubedb/v1alpha1/dormant_database_spec.rb +5 -2
- data/lib/kuby/kube-db/dsl/kubedb/v1alpha1/dormant_database_status.rb +11 -1
- data/lib/kuby/kube-db/dsl/kubedb/v1alpha1/elasticsearch.rb +8 -3
- data/lib/kuby/kube-db/dsl/kubedb/v1alpha1/elasticsearch_cluster_topology.rb +4 -0
- data/lib/kuby/kube-db/dsl/kubedb/v1alpha1/elasticsearch_list.rb +6 -2
- data/lib/kuby/kube-db/dsl/kubedb/v1alpha1/elasticsearch_node.rb +8 -2
- data/lib/kuby/kube-db/dsl/kubedb/v1alpha1/elasticsearch_spec.rb +32 -9
- data/lib/kuby/kube-db/dsl/kubedb/v1alpha1/elasticsearch_status.rb +7 -1
- data/lib/kuby/kube-db/dsl/kubedb/v1alpha1/etcd.rb +8 -3
- data/lib/kuby/kube-db/dsl/kubedb/v1alpha1/etcd_list.rb +6 -2
- data/lib/kuby/kube-db/dsl/kubedb/v1alpha1/etcd_spec.rb +25 -8
- data/lib/kuby/kube-db/dsl/kubedb/v1alpha1/etcd_status.rb +7 -1
- data/lib/kuby/kube-db/dsl/kubedb/v1alpha1/init_spec.rb +4 -0
- data/lib/kuby/kube-db/dsl/kubedb/v1alpha1/leader_election_config.rb +7 -1
- data/lib/kuby/kube-db/dsl/kubedb/v1alpha1/member_secret.rb +5 -1
- data/lib/kuby/kube-db/dsl/kubedb/v1alpha1/memcached.rb +8 -3
- data/lib/kuby/kube-db/dsl/kubedb/v1alpha1/memcached_list.rb +6 -2
- data/lib/kuby/kube-db/dsl/kubedb/v1alpha1/memcached_spec.rb +18 -7
- data/lib/kuby/kube-db/dsl/kubedb/v1alpha1/memcached_status.rb +7 -1
- data/lib/kuby/kube-db/dsl/kubedb/v1alpha1/mongo_db.rb +8 -3
- data/lib/kuby/kube-db/dsl/kubedb/v1alpha1/mongo_db_config_node.rb +11 -4
- data/lib/kuby/kube-db/dsl/kubedb/v1alpha1/mongo_db_list.rb +6 -2
- data/lib/kuby/kube-db/dsl/kubedb/v1alpha1/mongo_db_mongos_node.rb +11 -4
- data/lib/kuby/kube-db/dsl/kubedb/v1alpha1/mongo_db_replica_set.rb +5 -2
- data/lib/kuby/kube-db/dsl/kubedb/v1alpha1/mongo_db_shard_node.rb +13 -4
- data/lib/kuby/kube-db/dsl/kubedb/v1alpha1/mongo_db_sharding_topology.rb +4 -0
- data/lib/kuby/kube-db/dsl/kubedb/v1alpha1/mongo_db_spec.rb +28 -8
- data/lib/kuby/kube-db/dsl/kubedb/v1alpha1/mongo_db_status.rb +7 -1
- data/lib/kuby/kube-db/dsl/kubedb/v1alpha1/my_sql.rb +8 -3
- data/lib/kuby/kube-db/dsl/kubedb/v1alpha1/my_sql_cluster_topology.rb +5 -2
- data/lib/kuby/kube-db/dsl/kubedb/v1alpha1/my_sql_group_spec.rb +7 -1
- data/lib/kuby/kube-db/dsl/kubedb/v1alpha1/my_sql_list.rb +6 -2
- data/lib/kuby/kube-db/dsl/kubedb/v1alpha1/my_sql_spec.rb +26 -8
- data/lib/kuby/kube-db/dsl/kubedb/v1alpha1/my_sql_status.rb +7 -1
- data/lib/kuby/kube-db/dsl/kubedb/v1alpha1/origin.rb +3 -0
- data/lib/kuby/kube-db/dsl/kubedb/v1alpha1/origin_spec.rb +8 -0
- data/lib/kuby/kube-db/dsl/kubedb/v1alpha1/postgres.rb +8 -3
- data/lib/kuby/kube-db/dsl/kubedb/v1alpha1/postgres_archiver_spec.rb +3 -1
- data/lib/kuby/kube-db/dsl/kubedb/v1alpha1/postgres_list.rb +6 -2
- data/lib/kuby/kube-db/dsl/kubedb/v1alpha1/postgres_spec.rb +34 -10
- data/lib/kuby/kube-db/dsl/kubedb/v1alpha1/postgres_status.rb +7 -1
- data/lib/kuby/kube-db/dsl/kubedb/v1alpha1/postgres_wal_source_spec.rb +20 -8
- data/lib/kuby/kube-db/dsl/kubedb/v1alpha1/recovery_target.rb +9 -1
- data/lib/kuby/kube-db/dsl/kubedb/v1alpha1/redis.rb +8 -3
- data/lib/kuby/kube-db/dsl/kubedb/v1alpha1/redis_cluster_spec.rb +5 -1
- data/lib/kuby/kube-db/dsl/kubedb/v1alpha1/redis_list.rb +6 -2
- data/lib/kuby/kube-db/dsl/kubedb/v1alpha1/redis_spec.rb +26 -9
- data/lib/kuby/kube-db/dsl/kubedb/v1alpha1/redis_status.rb +7 -1
- data/lib/kuby/kube-db/dsl/kubedb/v1alpha1/script_source_spec.rb +31 -2
- data/lib/kuby/kube-db/dsl/kubedb/v1alpha1/snapshot.rb +8 -3
- data/lib/kuby/kube-db/dsl/kubedb/v1alpha1/snapshot_list.rb +6 -2
- data/lib/kuby/kube-db/dsl/kubedb/v1alpha1/snapshot_source_spec.rb +7 -1
- data/lib/kuby/kube-db/dsl/kubedb/v1alpha1/snapshot_spec.rb +26 -11
- data/lib/kuby/kube-db/dsl/kubedb/v1alpha1/snapshot_status.rb +11 -1
- data/lib/kuby/kube-db/dsl/kubedb/v1alpha1/tls_policy.rb +5 -2
- data/lib/kuby/kube-db/dsl/meta/v1/initializer.rb +3 -1
- data/lib/kuby/kube-db/dsl/meta/v1/initializers.rb +5 -2
- data/lib/kuby/kube-db/dsl/v1/volume_source.rb +28 -0
- data/lib/kuby/kube-db/dsl.rb +1 -1
- data/lib/kuby/kube-db/version.rb +1 -1
- metadata +13 -7
@@ -1,16 +1,21 @@
|
|
1
1
|
module Kuby::KubeDB::DSL::Authorization::V1alpha1
|
2
2
|
class PostgresRole < ::KubeDSL::DSLObject
|
3
|
-
value_fields :api_version
|
4
3
|
object_field(:status) { Kuby::KubeDB::DSL::Authorization::V1alpha1::PostgresRoleStatus.new }
|
5
4
|
object_field(:spec) { Kuby::KubeDB::DSL::Authorization::V1alpha1::PostgresRoleSpec.new }
|
5
|
+
value_field :api_version
|
6
6
|
object_field(:metadata) { KubeDSL::DSL::Meta::V1::ObjectMeta.new }
|
7
7
|
|
8
|
+
validates :status, object: { kind_of: Kuby::KubeDB::DSL::Authorization::V1alpha1::PostgresRoleStatus }
|
9
|
+
validates :spec, object: { kind_of: Kuby::KubeDB::DSL::Authorization::V1alpha1::PostgresRoleSpec }
|
10
|
+
validates :api_version, field: { format: :string }, presence: false
|
11
|
+
validates :metadata, object: { kind_of: KubeDSL::DSL::Meta::V1::ObjectMeta }
|
12
|
+
|
8
13
|
def serialize
|
9
14
|
{}.tap do |result|
|
10
|
-
result[:kind] = "PostgresRole"
|
11
|
-
result[:apiVersion] = api_version
|
12
15
|
result[:status] = status.serialize
|
16
|
+
result[:kind] = "PostgresRole"
|
13
17
|
result[:spec] = spec.serialize
|
18
|
+
result[:apiVersion] = api_version
|
14
19
|
result[:metadata] = metadata.serialize
|
15
20
|
end
|
16
21
|
end
|
@@ -1,6 +1,14 @@
|
|
1
1
|
module Kuby::KubeDB::DSL::Authorization::V1alpha1
|
2
2
|
class PostgresRoleCondition < ::KubeDSL::DSLObject
|
3
|
-
|
3
|
+
value_field :status
|
4
|
+
value_field :message
|
5
|
+
value_field :type
|
6
|
+
value_field :reason
|
7
|
+
|
8
|
+
validates :status, field: { format: :string }, presence: false
|
9
|
+
validates :message, field: { format: :string }, presence: false
|
10
|
+
validates :type, field: { format: :string }, presence: false
|
11
|
+
validates :reason, field: { format: :string }, presence: false
|
4
12
|
|
5
13
|
def serialize
|
6
14
|
{}.tap do |result|
|
@@ -1,14 +1,18 @@
|
|
1
1
|
module Kuby::KubeDB::DSL::Authorization::V1alpha1
|
2
2
|
class PostgresRoleList < ::KubeDSL::DSLObject
|
3
|
-
value_fields :api_version
|
4
3
|
array_field(:item) { Kuby::KubeDB::DSL::Authorization::V1alpha1::PostgresRole.new }
|
4
|
+
value_field :api_version
|
5
5
|
object_field(:metadata) { KubeDSL::DSL::Meta::V1::ListMeta.new }
|
6
6
|
|
7
|
+
validates :items, array: { kind_of: Kuby::KubeDB::DSL::Authorization::V1alpha1::PostgresRole }, presence: false
|
8
|
+
validates :api_version, field: { format: :string }, presence: false
|
9
|
+
validates :metadata, object: { kind_of: KubeDSL::DSL::Meta::V1::ListMeta }
|
10
|
+
|
7
11
|
def serialize
|
8
12
|
{}.tap do |result|
|
13
|
+
result[:items] = items.map(&:serialize)
|
9
14
|
result[:kind] = "PostgresRoleList"
|
10
15
|
result[:apiVersion] = api_version
|
11
|
-
result[:items] = items.map(&:serialize)
|
12
16
|
result[:metadata] = metadata.serialize
|
13
17
|
end
|
14
18
|
end
|
@@ -1,19 +1,33 @@
|
|
1
1
|
module Kuby::KubeDB::DSL::Authorization::V1alpha1
|
2
2
|
class PostgresRoleSpec < ::KubeDSL::DSLObject
|
3
|
-
value_fields :rollback_statements, :revocation_statements, :creation_statements, :max_ttl, :renew_statements, :default_ttl
|
4
3
|
object_field(:auth_manager_ref) { Kuby::KubeDB::DSL::Appcatalog::V1alpha1::AppReference.new }
|
4
|
+
value_field :rollback_statements
|
5
5
|
object_field(:database_ref) { KubeDSL::DSL::V1::LocalObjectReference.new }
|
6
|
+
value_field :revocation_statements
|
7
|
+
value_field :creation_statements
|
8
|
+
value_field :max_ttl
|
9
|
+
value_field :renew_statements
|
10
|
+
value_field :default_ttl
|
11
|
+
|
12
|
+
validates :auth_manager_ref, object: { kind_of: Kuby::KubeDB::DSL::Appcatalog::V1alpha1::AppReference }
|
13
|
+
validates :rollback_statements, field: { format: :string }, presence: false
|
14
|
+
validates :database_ref, object: { kind_of: KubeDSL::DSL::V1::LocalObjectReference }
|
15
|
+
validates :revocation_statements, field: { format: :string }, presence: false
|
16
|
+
validates :creation_statements, field: { format: :string }, presence: false
|
17
|
+
validates :max_ttl, field: { format: :string }, presence: false
|
18
|
+
validates :renew_statements, field: { format: :string }, presence: false
|
19
|
+
validates :default_ttl, field: { format: :string }, presence: false
|
6
20
|
|
7
21
|
def serialize
|
8
22
|
{}.tap do |result|
|
23
|
+
result[:authManagerRef] = auth_manager_ref.serialize
|
9
24
|
result[:rollbackStatements] = rollback_statements
|
25
|
+
result[:databaseRef] = database_ref.serialize
|
10
26
|
result[:revocationStatements] = revocation_statements
|
11
27
|
result[:creationStatements] = creation_statements
|
12
28
|
result[:maxTTL] = max_ttl
|
13
29
|
result[:renewStatements] = renew_statements
|
14
30
|
result[:defaultTTL] = default_ttl
|
15
|
-
result[:authManagerRef] = auth_manager_ref.serialize
|
16
|
-
result[:databaseRef] = database_ref.serialize
|
17
31
|
end
|
18
32
|
end
|
19
33
|
|
@@ -1,8 +1,13 @@
|
|
1
1
|
module Kuby::KubeDB::DSL::Authorization::V1alpha1
|
2
2
|
class PostgresRoleStatus < ::KubeDSL::DSLObject
|
3
|
-
|
3
|
+
value_field :observed_generation
|
4
|
+
value_field :phase
|
4
5
|
array_field(:condition) { Kuby::KubeDB::DSL::Authorization::V1alpha1::PostgresRoleCondition.new }
|
5
6
|
|
7
|
+
validates :observed_generation, field: { format: :string }, presence: false
|
8
|
+
validates :phase, field: { format: :string }, presence: false
|
9
|
+
validates :conditions, array: { kind_of: Kuby::KubeDB::DSL::Authorization::V1alpha1::PostgresRoleCondition }, presence: false
|
10
|
+
|
6
11
|
def serialize
|
7
12
|
{}.tap do |result|
|
8
13
|
result[:observedGeneration] = observed_generation
|
@@ -1,6 +1,12 @@
|
|
1
1
|
module Kuby::KubeDB::DSL::Authorization::V1alpha1
|
2
2
|
class RoleReference < ::KubeDSL::DSLObject
|
3
|
-
|
3
|
+
value_field :kind
|
4
|
+
value_field :namespace
|
5
|
+
value_field :name
|
6
|
+
|
7
|
+
validates :kind, field: { format: :string }, presence: false
|
8
|
+
validates :namespace, field: { format: :string }, presence: false
|
9
|
+
validates :name, field: { format: :string }, presence: false
|
4
10
|
|
5
11
|
def serialize
|
6
12
|
{}.tap do |result|
|
@@ -1,14 +1,18 @@
|
|
1
1
|
module Kuby::KubeDB::DSL::Catalog::V1alpha1
|
2
2
|
class ElasticsearchVersion < ::KubeDSL::DSLObject
|
3
|
-
value_fields :api_version
|
4
3
|
object_field(:spec) { Kuby::KubeDB::DSL::Catalog::V1alpha1::ElasticsearchVersionSpec.new }
|
4
|
+
value_field :api_version
|
5
5
|
object_field(:metadata) { KubeDSL::DSL::Meta::V1::ObjectMeta.new }
|
6
6
|
|
7
|
+
validates :spec, object: { kind_of: Kuby::KubeDB::DSL::Catalog::V1alpha1::ElasticsearchVersionSpec }
|
8
|
+
validates :api_version, field: { format: :string }, presence: false
|
9
|
+
validates :metadata, object: { kind_of: KubeDSL::DSL::Meta::V1::ObjectMeta }
|
10
|
+
|
7
11
|
def serialize
|
8
12
|
{}.tap do |result|
|
9
13
|
result[:kind] = "ElasticsearchVersion"
|
10
|
-
result[:apiVersion] = api_version
|
11
14
|
result[:spec] = spec.serialize
|
15
|
+
result[:apiVersion] = api_version
|
12
16
|
result[:metadata] = metadata.serialize
|
13
17
|
end
|
14
18
|
end
|
@@ -1,14 +1,18 @@
|
|
1
1
|
module Kuby::KubeDB::DSL::Catalog::V1alpha1
|
2
2
|
class ElasticsearchVersionList < ::KubeDSL::DSLObject
|
3
|
-
value_fields :api_version
|
4
3
|
array_field(:item) { Kuby::KubeDB::DSL::Catalog::V1alpha1::ElasticsearchVersion.new }
|
4
|
+
value_field :api_version
|
5
5
|
object_field(:metadata) { KubeDSL::DSL::Meta::V1::ListMeta.new }
|
6
6
|
|
7
|
+
validates :items, array: { kind_of: Kuby::KubeDB::DSL::Catalog::V1alpha1::ElasticsearchVersion }, presence: false
|
8
|
+
validates :api_version, field: { format: :string }, presence: false
|
9
|
+
validates :metadata, object: { kind_of: KubeDSL::DSL::Meta::V1::ListMeta }
|
10
|
+
|
7
11
|
def serialize
|
8
12
|
{}.tap do |result|
|
13
|
+
result[:items] = items.map(&:serialize)
|
9
14
|
result[:kind] = "ElasticsearchVersionList"
|
10
15
|
result[:apiVersion] = api_version
|
11
|
-
result[:items] = items.map(&:serialize)
|
12
16
|
result[:metadata] = metadata.serialize
|
13
17
|
end
|
14
18
|
end
|
@@ -1,6 +1,10 @@
|
|
1
1
|
module Kuby::KubeDB::DSL::Catalog::V1alpha1
|
2
2
|
class ElasticsearchVersionPodSecurityPolicy < ::KubeDSL::DSLObject
|
3
|
-
|
3
|
+
value_field :snapshotter_policy_name
|
4
|
+
value_field :database_policy_name
|
5
|
+
|
6
|
+
validates :snapshotter_policy_name, field: { format: :string }, presence: false
|
7
|
+
validates :database_policy_name, field: { format: :string }, presence: false
|
4
8
|
|
5
9
|
def serialize
|
6
10
|
{}.tap do |result|
|
@@ -1,20 +1,29 @@
|
|
1
1
|
module Kuby::KubeDB::DSL::Catalog::V1alpha1
|
2
2
|
class ElasticsearchVersionSpec < ::KubeDSL::DSLObject
|
3
|
-
value_fields :deprecated, :version
|
4
3
|
object_field(:exporter) { Kuby::KubeDB::DSL::Catalog::V1alpha1::ElasticsearchVersionExporter.new }
|
5
4
|
object_field(:pod_security_policies) { Kuby::KubeDB::DSL::Catalog::V1alpha1::ElasticsearchVersionPodSecurityPolicy.new }
|
6
5
|
object_field(:init_container) { Kuby::KubeDB::DSL::Catalog::V1alpha1::ElasticsearchVersionInitContainer.new }
|
6
|
+
value_field :deprecated
|
7
7
|
object_field(:db) { Kuby::KubeDB::DSL::Catalog::V1alpha1::ElasticsearchVersionDatabase.new }
|
8
|
+
value_field :version
|
8
9
|
object_field(:tools) { Kuby::KubeDB::DSL::Catalog::V1alpha1::ElasticsearchVersionTools.new }
|
9
10
|
|
11
|
+
validates :exporter, object: { kind_of: Kuby::KubeDB::DSL::Catalog::V1alpha1::ElasticsearchVersionExporter }
|
12
|
+
validates :pod_security_policies, object: { kind_of: Kuby::KubeDB::DSL::Catalog::V1alpha1::ElasticsearchVersionPodSecurityPolicy }
|
13
|
+
validates :init_container, object: { kind_of: Kuby::KubeDB::DSL::Catalog::V1alpha1::ElasticsearchVersionInitContainer }
|
14
|
+
validates :deprecated, field: { format: :boolean }, presence: true
|
15
|
+
validates :db, object: { kind_of: Kuby::KubeDB::DSL::Catalog::V1alpha1::ElasticsearchVersionDatabase }
|
16
|
+
validates :version, field: { format: :string }, presence: false
|
17
|
+
validates :tools, object: { kind_of: Kuby::KubeDB::DSL::Catalog::V1alpha1::ElasticsearchVersionTools }
|
18
|
+
|
10
19
|
def serialize
|
11
20
|
{}.tap do |result|
|
12
|
-
result[:deprecated] = deprecated
|
13
|
-
result[:version] = version
|
14
21
|
result[:exporter] = exporter.serialize
|
15
22
|
result[:podSecurityPolicies] = pod_security_policies.serialize
|
16
23
|
result[:initContainer] = init_container.serialize
|
24
|
+
result[:deprecated] = deprecated
|
17
25
|
result[:db] = db.serialize
|
26
|
+
result[:version] = version
|
18
27
|
result[:tools] = tools.serialize
|
19
28
|
end
|
20
29
|
end
|
@@ -1,14 +1,18 @@
|
|
1
1
|
module Kuby::KubeDB::DSL::Catalog::V1alpha1
|
2
2
|
class EtcdVersion < ::KubeDSL::DSLObject
|
3
|
-
value_fields :api_version
|
4
3
|
object_field(:spec) { Kuby::KubeDB::DSL::Catalog::V1alpha1::EtcdVersionSpec.new }
|
4
|
+
value_field :api_version
|
5
5
|
object_field(:metadata) { KubeDSL::DSL::Meta::V1::ObjectMeta.new }
|
6
6
|
|
7
|
+
validates :spec, object: { kind_of: Kuby::KubeDB::DSL::Catalog::V1alpha1::EtcdVersionSpec }
|
8
|
+
validates :api_version, field: { format: :string }, presence: false
|
9
|
+
validates :metadata, object: { kind_of: KubeDSL::DSL::Meta::V1::ObjectMeta }
|
10
|
+
|
7
11
|
def serialize
|
8
12
|
{}.tap do |result|
|
9
13
|
result[:kind] = "EtcdVersion"
|
10
|
-
result[:apiVersion] = api_version
|
11
14
|
result[:spec] = spec.serialize
|
15
|
+
result[:apiVersion] = api_version
|
12
16
|
result[:metadata] = metadata.serialize
|
13
17
|
end
|
14
18
|
end
|
@@ -1,14 +1,18 @@
|
|
1
1
|
module Kuby::KubeDB::DSL::Catalog::V1alpha1
|
2
2
|
class EtcdVersionList < ::KubeDSL::DSLObject
|
3
|
-
value_fields :api_version
|
4
3
|
array_field(:item) { Kuby::KubeDB::DSL::Catalog::V1alpha1::EtcdVersion.new }
|
4
|
+
value_field :api_version
|
5
5
|
object_field(:metadata) { KubeDSL::DSL::Meta::V1::ListMeta.new }
|
6
6
|
|
7
|
+
validates :items, array: { kind_of: Kuby::KubeDB::DSL::Catalog::V1alpha1::EtcdVersion }, presence: false
|
8
|
+
validates :api_version, field: { format: :string }, presence: false
|
9
|
+
validates :metadata, object: { kind_of: KubeDSL::DSL::Meta::V1::ListMeta }
|
10
|
+
|
7
11
|
def serialize
|
8
12
|
{}.tap do |result|
|
13
|
+
result[:items] = items.map(&:serialize)
|
9
14
|
result[:kind] = "EtcdVersionList"
|
10
15
|
result[:apiVersion] = api_version
|
11
|
-
result[:items] = items.map(&:serialize)
|
12
16
|
result[:metadata] = metadata.serialize
|
13
17
|
end
|
14
18
|
end
|
@@ -1,16 +1,23 @@
|
|
1
1
|
module Kuby::KubeDB::DSL::Catalog::V1alpha1
|
2
2
|
class EtcdVersionSpec < ::KubeDSL::DSLObject
|
3
|
-
|
3
|
+
value_field :deprecated
|
4
4
|
object_field(:exporter) { Kuby::KubeDB::DSL::Catalog::V1alpha1::EtcdVersionExporter.new }
|
5
5
|
object_field(:db) { Kuby::KubeDB::DSL::Catalog::V1alpha1::EtcdVersionDatabase.new }
|
6
|
+
value_field :version
|
6
7
|
object_field(:tools) { Kuby::KubeDB::DSL::Catalog::V1alpha1::EtcdVersionTools.new }
|
7
8
|
|
9
|
+
validates :deprecated, field: { format: :boolean }, presence: true
|
10
|
+
validates :exporter, object: { kind_of: Kuby::KubeDB::DSL::Catalog::V1alpha1::EtcdVersionExporter }
|
11
|
+
validates :db, object: { kind_of: Kuby::KubeDB::DSL::Catalog::V1alpha1::EtcdVersionDatabase }
|
12
|
+
validates :version, field: { format: :string }, presence: false
|
13
|
+
validates :tools, object: { kind_of: Kuby::KubeDB::DSL::Catalog::V1alpha1::EtcdVersionTools }
|
14
|
+
|
8
15
|
def serialize
|
9
16
|
{}.tap do |result|
|
10
17
|
result[:deprecated] = deprecated
|
11
|
-
result[:version] = version
|
12
18
|
result[:exporter] = exporter.serialize
|
13
19
|
result[:db] = db.serialize
|
20
|
+
result[:version] = version
|
14
21
|
result[:tools] = tools.serialize
|
15
22
|
end
|
16
23
|
end
|
@@ -1,14 +1,18 @@
|
|
1
1
|
module Kuby::KubeDB::DSL::Catalog::V1alpha1
|
2
2
|
class MemcachedVersion < ::KubeDSL::DSLObject
|
3
|
-
value_fields :api_version
|
4
3
|
object_field(:spec) { Kuby::KubeDB::DSL::Catalog::V1alpha1::MemcachedVersionSpec.new }
|
4
|
+
value_field :api_version
|
5
5
|
object_field(:metadata) { KubeDSL::DSL::Meta::V1::ObjectMeta.new }
|
6
6
|
|
7
|
+
validates :spec, object: { kind_of: Kuby::KubeDB::DSL::Catalog::V1alpha1::MemcachedVersionSpec }
|
8
|
+
validates :api_version, field: { format: :string }, presence: false
|
9
|
+
validates :metadata, object: { kind_of: KubeDSL::DSL::Meta::V1::ObjectMeta }
|
10
|
+
|
7
11
|
def serialize
|
8
12
|
{}.tap do |result|
|
9
13
|
result[:kind] = "MemcachedVersion"
|
10
|
-
result[:apiVersion] = api_version
|
11
14
|
result[:spec] = spec.serialize
|
15
|
+
result[:apiVersion] = api_version
|
12
16
|
result[:metadata] = metadata.serialize
|
13
17
|
end
|
14
18
|
end
|
@@ -1,14 +1,18 @@
|
|
1
1
|
module Kuby::KubeDB::DSL::Catalog::V1alpha1
|
2
2
|
class MemcachedVersionList < ::KubeDSL::DSLObject
|
3
|
-
value_fields :api_version
|
4
3
|
array_field(:item) { Kuby::KubeDB::DSL::Catalog::V1alpha1::MemcachedVersion.new }
|
4
|
+
value_field :api_version
|
5
5
|
object_field(:metadata) { KubeDSL::DSL::Meta::V1::ListMeta.new }
|
6
6
|
|
7
|
+
validates :items, array: { kind_of: Kuby::KubeDB::DSL::Catalog::V1alpha1::MemcachedVersion }, presence: false
|
8
|
+
validates :api_version, field: { format: :string }, presence: false
|
9
|
+
validates :metadata, object: { kind_of: KubeDSL::DSL::Meta::V1::ListMeta }
|
10
|
+
|
7
11
|
def serialize
|
8
12
|
{}.tap do |result|
|
13
|
+
result[:items] = items.map(&:serialize)
|
9
14
|
result[:kind] = "MemcachedVersionList"
|
10
15
|
result[:apiVersion] = api_version
|
11
|
-
result[:items] = items.map(&:serialize)
|
12
16
|
result[:metadata] = metadata.serialize
|
13
17
|
end
|
14
18
|
end
|
@@ -1,6 +1,8 @@
|
|
1
1
|
module Kuby::KubeDB::DSL::Catalog::V1alpha1
|
2
2
|
class MemcachedVersionPodSecurityPolicy < ::KubeDSL::DSLObject
|
3
|
-
|
3
|
+
value_field :database_policy_name
|
4
|
+
|
5
|
+
validates :database_policy_name, field: { format: :string }, presence: false
|
4
6
|
|
5
7
|
def serialize
|
6
8
|
{}.tap do |result|
|