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
@@ -1,17 +0,0 @@
|
|
1
|
-
module Kuby::KubeDB::DSL::Kubedb::V1alpha1
|
2
|
-
class TLSConfig < ::KubeDSL::DSLObject
|
3
|
-
object_field(:issuer_ref) { KubeDSL::DSL::V1::TypedLocalObjectReference.new }
|
4
|
-
object_field(:certificate) { Kuby::KubeDB::DSL::Kubedb::V1alpha1::CertificateSpec.new }
|
5
|
-
|
6
|
-
def serialize
|
7
|
-
{}.tap do |result|
|
8
|
-
result[:issuerRef] = issuer_ref.serialize
|
9
|
-
result[:certificate] = certificate.serialize
|
10
|
-
end
|
11
|
-
end
|
12
|
-
|
13
|
-
def kind_sym
|
14
|
-
:tls_config
|
15
|
-
end
|
16
|
-
end
|
17
|
-
end
|