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.
- checksums.yaml +4 -4
- data/CHANGELOG.md +22 -0
- data/Gemfile +1 -2
- data/kuby-kube-db.gemspec +3 -2
- 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 +34 -8
- data/lib/kuby/kube-db/version.rb +2 -2
- metadata +64 -46
- 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
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 410cd6089e3ecf3de0324d3969ad8afa36a3787f962c664957fcad5d90629d58
|
4
|
+
data.tar.gz: ed650147e64258ebf60b350168ce9df7e389393134cf554c6d3893dcafafc26d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 05cd94f38afede349d7c63a08eac7d96435a924a5d912e97bad63e869660d71c9b87a84c1c7941c30eadb7107695c8c61342909b11f0d6560d4c6ee193a82181
|
7
|
+
data.tar.gz: e8b8a3a13b4023a2f237096e14773e60c3d0e75493c9dcaaad2bac3df383e4c2a1eee451e1076ea94cad477a9ac918eccd681ed470448762e7fcd9bccdcfbf07
|
data/CHANGELOG.md
ADDED
@@ -0,0 +1,22 @@
|
|
1
|
+
## 0.6.0
|
2
|
+
* Wait for API resources to become available.
|
3
|
+
- Krane queries k8s for API resources which causes kubectl to exit with a non-zero status code if KubeDB's operator isn't finished spinning up.
|
4
|
+
|
5
|
+
## 0.5.0
|
6
|
+
* Conform to new plugin architecture.
|
7
|
+
* Accept `environment` instead of `definition` instances.
|
8
|
+
|
9
|
+
## 0.4.0
|
10
|
+
* Downgrade to kubedb 0.12.0, the latest stable release.
|
11
|
+
- For some reason, the API spec for 0.13.0.rc-0 was removed from the apimachinery repo.
|
12
|
+
- Other rcs in the 0.13.0 line, eg. 0.13.0.rc-1 are not published as Helm charts.
|
13
|
+
* Upgrade to helm-cli 0.2.
|
14
|
+
|
15
|
+
## 0.3.0
|
16
|
+
* Upgrade to kube-dsl 0.3.
|
17
|
+
|
18
|
+
## 0.2.0
|
19
|
+
* Require version file in order to use the `VERSION` constant.
|
20
|
+
|
21
|
+
## 0.1.0
|
22
|
+
* Birthday!
|
data/Gemfile
CHANGED
@@ -4,11 +4,10 @@ gemspec
|
|
4
4
|
|
5
5
|
group :development do
|
6
6
|
gem 'dry-inflector'
|
7
|
-
gem 'kube-dsl', '~> 0.1'
|
8
7
|
end
|
9
8
|
|
10
9
|
group :development, :test do
|
11
|
-
gem 'kuby', path: '../kuby'
|
10
|
+
gem 'kuby-core', path: '../kuby-core'
|
12
11
|
gem 'kuby-cert-manager', path: '../kuby-cert-manager'
|
13
12
|
gem 'pry-byebug'
|
14
13
|
gem 'rake'
|
data/kuby-kube-db.gemspec
CHANGED
@@ -6,13 +6,14 @@ Gem::Specification.new do |s|
|
|
6
6
|
s.version = ::Kuby::KubeDB::VERSION
|
7
7
|
s.authors = ['Cameron Dutro']
|
8
8
|
s.email = ['camertron@gmail.com']
|
9
|
-
s.homepage = 'http://github.com/
|
9
|
+
s.homepage = 'http://github.com/getkuby/kuby-kube-db'
|
10
10
|
|
11
11
|
s.description = s.summary = 'KubeDB plugin for Kuby.'
|
12
12
|
|
13
13
|
s.platform = Gem::Platform::RUBY
|
14
14
|
|
15
|
-
s.add_dependency 'helm-cli', '~> 0.
|
15
|
+
s.add_dependency 'helm-cli', '~> 0.3'
|
16
|
+
s.add_dependency 'kube-dsl', '~> 0.3'
|
16
17
|
|
17
18
|
s.require_path = 'lib'
|
18
19
|
s.files = Dir['{lib,spec}/**/*', 'Gemfile', 'LICENSE', 'CHANGELOG.md', 'README.md', 'Rakefile', 'kuby-kube-db.gemspec']
|
data/lib/kuby/kube-db/dsl.rb
CHANGED
@@ -1,7 +1,9 @@
|
|
1
1
|
module Kuby::KubeDB::DSL
|
2
2
|
autoload :Catalog, 'kuby/kube-db/dsl/catalog'
|
3
3
|
autoload :Kubedb, 'kuby/kube-db/dsl/kubedb'
|
4
|
+
autoload :Authorization, 'kuby/kube-db/dsl/authorization'
|
4
5
|
autoload :Api, 'kuby/kube-db/dsl/api'
|
5
|
-
autoload :
|
6
|
+
autoload :Meta, 'kuby/kube-db/dsl/meta'
|
6
7
|
autoload :V1, 'kuby/kube-db/dsl/v1'
|
8
|
+
autoload :Appcatalog, 'kuby/kube-db/dsl/appcatalog'
|
7
9
|
end
|
@@ -1,20 +1,18 @@
|
|
1
1
|
module Kuby::KubeDB::DSL::Api::V1
|
2
2
|
autoload :RestServerSpec, 'kuby/kube-db/dsl/api/v1/rest_server_spec'
|
3
|
-
autoload :
|
3
|
+
autoload :ServicePort, 'kuby/kube-db/dsl/api/v1/service_port'
|
4
|
+
autoload :LocalSpec, 'kuby/kube-db/dsl/api/v1/local_spec'
|
4
5
|
autoload :SwiftSpec, 'kuby/kube-db/dsl/api/v1/swift_spec'
|
6
|
+
autoload :ServiceSpec, 'kuby/kube-db/dsl/api/v1/service_spec'
|
5
7
|
autoload :S3Spec, 'kuby/kube-db/dsl/api/v1/s3_spec'
|
6
|
-
autoload :
|
7
|
-
autoload :
|
8
|
+
autoload :AgentSpec, 'kuby/kube-db/dsl/api/v1/agent_spec'
|
9
|
+
autoload :Backend, 'kuby/kube-db/dsl/api/v1/backend'
|
8
10
|
autoload :B2Spec, 'kuby/kube-db/dsl/api/v1/b2_spec'
|
9
11
|
autoload :ObjectMeta, 'kuby/kube-db/dsl/api/v1/object_meta'
|
10
12
|
autoload :PodSpec, 'kuby/kube-db/dsl/api/v1/pod_spec'
|
11
|
-
autoload :
|
12
|
-
autoload :AzureSpec, 'kuby/kube-db/dsl/api/v1/azure_spec'
|
13
|
-
autoload :LocalSpec, 'kuby/kube-db/dsl/api/v1/local_spec'
|
14
|
-
autoload :ServicePort, 'kuby/kube-db/dsl/api/v1/service_port'
|
15
|
-
autoload :Backend, 'kuby/kube-db/dsl/api/v1/backend'
|
16
|
-
autoload :ServiceSpec, 'kuby/kube-db/dsl/api/v1/service_spec'
|
17
|
-
autoload :AgentSpec, 'kuby/kube-db/dsl/api/v1/agent_spec'
|
13
|
+
autoload :PodTemplateSpec, 'kuby/kube-db/dsl/api/v1/pod_template_spec'
|
18
14
|
autoload :PrometheusSpec, 'kuby/kube-db/dsl/api/v1/prometheus_spec'
|
19
15
|
autoload :GCSSpec, 'kuby/kube-db/dsl/api/v1/gcs_spec'
|
16
|
+
autoload :AzureSpec, 'kuby/kube-db/dsl/api/v1/azure_spec'
|
17
|
+
autoload :ServiceTemplateSpec, 'kuby/kube-db/dsl/api/v1/service_template_spec'
|
20
18
|
end
|
@@ -6,7 +6,6 @@ module Kuby::KubeDB::DSL::Api::V1
|
|
6
6
|
object_field(:git_repo) { KubeDSL::DSL::V1::GitRepoVolumeSource.new }
|
7
7
|
object_field(:flocker) { KubeDSL::DSL::V1::FlockerVolumeSource.new }
|
8
8
|
object_field(:storageos) { KubeDSL::DSL::V1::StorageOSVolumeSource.new }
|
9
|
-
object_field(:csi) { KubeDSL::DSL::V1::CSIVolumeSource.new }
|
10
9
|
object_field(:iscsi) { KubeDSL::DSL::V1::ISCSIVolumeSource.new }
|
11
10
|
object_field(:projected) { KubeDSL::DSL::V1::ProjectedVolumeSource.new }
|
12
11
|
object_field(:secret) { KubeDSL::DSL::V1::SecretVolumeSource.new }
|
@@ -39,7 +38,6 @@ module Kuby::KubeDB::DSL::Api::V1
|
|
39
38
|
result[:gitRepo] = git_repo.serialize
|
40
39
|
result[:flocker] = flocker.serialize
|
41
40
|
result[:storageos] = storageos.serialize
|
42
|
-
result[:csi] = csi.serialize
|
43
41
|
result[:iscsi] = iscsi.serialize
|
44
42
|
result[:projected] = projected.serialize
|
45
43
|
result[:secret] = secret.serialize
|
@@ -1,28 +1,9 @@
|
|
1
1
|
module Kuby::KubeDB::DSL::Api::V1
|
2
2
|
class ObjectMeta < ::KubeDSL::DSLObject
|
3
|
-
|
4
|
-
array_field(:owner_reference) { KubeDSL::DSL::Meta::V1::OwnerReference.new }
|
5
|
-
array_field(:managed_field) { KubeDSL::DSL::Meta::V1::ManagedFieldsEntry.new }
|
6
|
-
object_field(:labels) { ::KubeDSL::KeyValueFields.new(format: :string) }
|
7
|
-
object_field(:annotations) { ::KubeDSL::KeyValueFields.new(format: :string) }
|
3
|
+
key_value_field(:annotations, format: :string)
|
8
4
|
|
9
5
|
def serialize
|
10
6
|
{}.tap do |result|
|
11
|
-
result[:uid] = uid
|
12
|
-
result[:deletionTimestamp] = deletion_timestamp
|
13
|
-
result[:clusterName] = cluster_name
|
14
|
-
result[:deletionGracePeriodSeconds] = deletion_grace_period_seconds
|
15
|
-
result[:namespace] = namespace
|
16
|
-
result[:generation] = generation
|
17
|
-
result[:finalizers] = finalizers
|
18
|
-
result[:generateName] = generate_name
|
19
|
-
result[:resourceVersion] = resource_version
|
20
|
-
result[:creationTimestamp] = creation_timestamp
|
21
|
-
result[:selfLink] = self_link
|
22
|
-
result[:name] = name
|
23
|
-
result[:ownerReferences] = owner_references.map(&:serialize)
|
24
|
-
result[:managedFields] = managed_fields.map(&:serialize)
|
25
|
-
result[:labels] = labels.serialize
|
26
7
|
result[:annotations] = annotations.serialize
|
27
8
|
end
|
28
9
|
end
|
@@ -11,7 +11,7 @@ module Kuby::KubeDB::DSL::Api::V1
|
|
11
11
|
object_field(:readiness_probe) { KubeDSL::DSL::V1::Probe.new }
|
12
12
|
object_field(:lifecycle) { KubeDSL::DSL::V1::Lifecycle.new }
|
13
13
|
object_field(:resources) { KubeDSL::DSL::V1::ResourceRequirements.new }
|
14
|
-
|
14
|
+
key_value_field(:node_selector, format: :string)
|
15
15
|
|
16
16
|
def serialize
|
17
17
|
{}.tap do |result|
|
@@ -1,17 +1,13 @@
|
|
1
1
|
module Kuby::KubeDB::DSL::Api::V1
|
2
2
|
class PrometheusSpec < ::KubeDSL::DSLObject
|
3
|
-
value_fields :namespace, :
|
4
|
-
|
5
|
-
object_field(:service_monitor) { Kuby::KubeDB::DSL::Api::V1::ServiceMonitorSpec.new }
|
6
|
-
object_field(:labels) { ::KubeDSL::KeyValueFields.new(format: :string) }
|
3
|
+
value_fields :namespace, :port, :interval
|
4
|
+
key_value_field(:labels, format: :string)
|
7
5
|
|
8
6
|
def serialize
|
9
7
|
{}.tap do |result|
|
10
8
|
result[:namespace] = namespace
|
11
|
-
result[:interval] = interval
|
12
9
|
result[:port] = port
|
13
|
-
result[:
|
14
|
-
result[:serviceMonitor] = service_monitor.serialize
|
10
|
+
result[:interval] = interval
|
15
11
|
result[:labels] = labels.serialize
|
16
12
|
end
|
17
13
|
end
|
@@ -1,13 +1,12 @@
|
|
1
1
|
module Kuby::KubeDB::DSL::Api::V1
|
2
2
|
class S3Spec < ::KubeDSL::DSLObject
|
3
|
-
value_fields :prefix, :endpoint, :bucket
|
3
|
+
value_fields :prefix, :endpoint, :bucket
|
4
4
|
|
5
5
|
def serialize
|
6
6
|
{}.tap do |result|
|
7
7
|
result[:prefix] = prefix
|
8
8
|
result[:endpoint] = endpoint
|
9
9
|
result[:bucket] = bucket
|
10
|
-
result[:region] = region
|
11
10
|
end
|
12
11
|
end
|
13
12
|
|
@@ -1,20 +1,18 @@
|
|
1
1
|
module Kuby::KubeDB::DSL::Api::V1
|
2
2
|
class ServiceSpec < ::KubeDSL::DSLObject
|
3
|
-
value_fields :load_balancer_ip, :external_i_ps, :
|
3
|
+
value_fields :load_balancer_ip, :external_i_ps, :type, :external_traffic_policy, :cluster_ip, :load_balancer_source_ranges, :health_check_node_port
|
4
4
|
array_field(:port) { Kuby::KubeDB::DSL::Api::V1::ServicePort.new }
|
5
|
-
object_field(:session_affinity_config) { KubeDSL::DSL::V1::SessionAffinityConfig.new }
|
6
5
|
|
7
6
|
def serialize
|
8
7
|
{}.tap do |result|
|
9
8
|
result[:loadBalancerIP] = load_balancer_ip
|
10
9
|
result[:externalIPs] = external_i_ps
|
11
|
-
result[:externalTrafficPolicy] = external_traffic_policy
|
12
10
|
result[:type] = type
|
11
|
+
result[:externalTrafficPolicy] = external_traffic_policy
|
13
12
|
result[:clusterIP] = cluster_ip
|
14
13
|
result[:loadBalancerSourceRanges] = load_balancer_source_ranges
|
15
14
|
result[:healthCheckNodePort] = health_check_node_port
|
16
15
|
result[:ports] = ports.map(&:serialize)
|
17
|
-
result[:sessionAffinityConfig] = session_affinity_config.serialize
|
18
16
|
end
|
19
17
|
end
|
20
18
|
|
@@ -0,0 +1,24 @@
|
|
1
|
+
module Kuby::KubeDB::DSL::Authorization::V1alpha1
|
2
|
+
autoload :DatabaseAccessRequestSpec, 'kuby/kube-db/dsl/authorization/v1alpha1/database_access_request_spec'
|
3
|
+
autoload :PostgresRoleCondition, 'kuby/kube-db/dsl/authorization/v1alpha1/postgres_role_condition'
|
4
|
+
autoload :DatabaseAccessRequestList, 'kuby/kube-db/dsl/authorization/v1alpha1/database_access_request_list'
|
5
|
+
autoload :RoleReference, 'kuby/kube-db/dsl/authorization/v1alpha1/role_reference'
|
6
|
+
autoload :Lease, 'kuby/kube-db/dsl/authorization/v1alpha1/lease'
|
7
|
+
autoload :MongoDBRoleSpec, 'kuby/kube-db/dsl/authorization/v1alpha1/mongo_db_role_spec'
|
8
|
+
autoload :DatabaseAccessRequestStatus, 'kuby/kube-db/dsl/authorization/v1alpha1/database_access_request_status'
|
9
|
+
autoload :MySQLRoleSpec, 'kuby/kube-db/dsl/authorization/v1alpha1/my_sql_role_spec'
|
10
|
+
autoload :PostgresRoleSpec, 'kuby/kube-db/dsl/authorization/v1alpha1/postgres_role_spec'
|
11
|
+
autoload :MongoDBRoleCondition, 'kuby/kube-db/dsl/authorization/v1alpha1/mongo_db_role_condition'
|
12
|
+
autoload :PostgresRoleList, 'kuby/kube-db/dsl/authorization/v1alpha1/postgres_role_list'
|
13
|
+
autoload :MongoDBRoleList, 'kuby/kube-db/dsl/authorization/v1alpha1/mongo_db_role_list'
|
14
|
+
autoload :MySQLRoleStatus, 'kuby/kube-db/dsl/authorization/v1alpha1/my_sql_role_status'
|
15
|
+
autoload :DatabaseAccessRequestCondition, 'kuby/kube-db/dsl/authorization/v1alpha1/database_access_request_condition'
|
16
|
+
autoload :MySQLRoleCondition, 'kuby/kube-db/dsl/authorization/v1alpha1/my_sql_role_condition'
|
17
|
+
autoload :MySQLRole, 'kuby/kube-db/dsl/authorization/v1alpha1/my_sql_role'
|
18
|
+
autoload :DatabaseAccessRequest, 'kuby/kube-db/dsl/authorization/v1alpha1/database_access_request'
|
19
|
+
autoload :MySQLRoleList, 'kuby/kube-db/dsl/authorization/v1alpha1/my_sql_role_list'
|
20
|
+
autoload :MongoDBRoleStatus, 'kuby/kube-db/dsl/authorization/v1alpha1/mongo_db_role_status'
|
21
|
+
autoload :PostgresRoleStatus, 'kuby/kube-db/dsl/authorization/v1alpha1/postgres_role_status'
|
22
|
+
autoload :MongoDBRole, 'kuby/kube-db/dsl/authorization/v1alpha1/mongo_db_role'
|
23
|
+
autoload :PostgresRole, 'kuby/kube-db/dsl/authorization/v1alpha1/postgres_role'
|
24
|
+
end
|
@@ -0,0 +1,22 @@
|
|
1
|
+
module Kuby::KubeDB::DSL::Authorization::V1alpha1
|
2
|
+
class DatabaseAccessRequest < ::KubeDSL::DSLObject
|
3
|
+
value_fields :api_version
|
4
|
+
object_field(:status) { Kuby::KubeDB::DSL::Authorization::V1alpha1::DatabaseAccessRequestStatus.new }
|
5
|
+
object_field(:spec) { Kuby::KubeDB::DSL::Authorization::V1alpha1::DatabaseAccessRequestSpec.new }
|
6
|
+
object_field(:metadata) { KubeDSL::DSL::Meta::V1::ObjectMeta.new }
|
7
|
+
|
8
|
+
def serialize
|
9
|
+
{}.tap do |result|
|
10
|
+
result[:kind] = "DatabaseAccessRequest"
|
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
|
+
:database_access_request
|
20
|
+
end
|
21
|
+
end
|
22
|
+
end
|
@@ -0,0 +1,18 @@
|
|
1
|
+
module Kuby::KubeDB::DSL::Authorization::V1alpha1
|
2
|
+
class DatabaseAccessRequestCondition < ::KubeDSL::DSLObject
|
3
|
+
value_fields :message, :type, :reason, :last_update_time
|
4
|
+
|
5
|
+
def serialize
|
6
|
+
{}.tap do |result|
|
7
|
+
result[:message] = message
|
8
|
+
result[:type] = type
|
9
|
+
result[:reason] = reason
|
10
|
+
result[:lastUpdateTime] = last_update_time
|
11
|
+
end
|
12
|
+
end
|
13
|
+
|
14
|
+
def kind_sym
|
15
|
+
:database_access_request_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 DatabaseAccessRequestList < ::KubeDSL::DSLObject
|
3
3
|
value_fields :api_version
|
4
|
-
array_field(:item) { Kuby::KubeDB::DSL::
|
4
|
+
array_field(:item) { Kuby::KubeDB::DSL::Authorization::V1alpha1::DatabaseAccessRequest.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] = "DatabaseAccessRequestList"
|
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::Catalog::V1alpha1
|
|
14
14
|
end
|
15
15
|
|
16
16
|
def kind_sym
|
17
|
-
:
|
17
|
+
:database_access_request_list
|
18
18
|
end
|
19
19
|
end
|
20
20
|
end
|
@@ -0,0 +1,19 @@
|
|
1
|
+
module Kuby::KubeDB::DSL::Authorization::V1alpha1
|
2
|
+
class DatabaseAccessRequestSpec < ::KubeDSL::DSLObject
|
3
|
+
value_fields :ttl
|
4
|
+
array_field(:subject) { KubeDSL::DSL::Rbac::V1::Subject.new }
|
5
|
+
object_field(:role_ref) { Kuby::KubeDB::DSL::Authorization::V1alpha1::RoleReference.new }
|
6
|
+
|
7
|
+
def serialize
|
8
|
+
{}.tap do |result|
|
9
|
+
result[:ttl] = ttl
|
10
|
+
result[:subjects] = subjects.map(&:serialize)
|
11
|
+
result[:roleRef] = role_ref.serialize
|
12
|
+
end
|
13
|
+
end
|
14
|
+
|
15
|
+
def kind_sym
|
16
|
+
:database_access_request_spec
|
17
|
+
end
|
18
|
+
end
|
19
|
+
end
|
@@ -0,0 +1,19 @@
|
|
1
|
+
module Kuby::KubeDB::DSL::Authorization::V1alpha1
|
2
|
+
class DatabaseAccessRequestStatus < ::KubeDSL::DSLObject
|
3
|
+
array_field(:condition) { Kuby::KubeDB::DSL::Authorization::V1alpha1::DatabaseAccessRequestCondition.new }
|
4
|
+
object_field(:secret) { KubeDSL::DSL::V1::LocalObjectReference.new }
|
5
|
+
object_field(:lease) { Kuby::KubeDB::DSL::Authorization::V1alpha1::Lease.new }
|
6
|
+
|
7
|
+
def serialize
|
8
|
+
{}.tap do |result|
|
9
|
+
result[:conditions] = conditions.map(&:serialize)
|
10
|
+
result[:secret] = secret.serialize
|
11
|
+
result[:lease] = lease.serialize
|
12
|
+
end
|
13
|
+
end
|
14
|
+
|
15
|
+
def kind_sym
|
16
|
+
:database_access_request_status
|
17
|
+
end
|
18
|
+
end
|
19
|
+
end
|
@@ -0,0 +1,17 @@
|
|
1
|
+
module Kuby::KubeDB::DSL::Authorization::V1alpha1
|
2
|
+
class Lease < ::KubeDSL::DSLObject
|
3
|
+
value_fields :duration, :id, :renewable
|
4
|
+
|
5
|
+
def serialize
|
6
|
+
{}.tap do |result|
|
7
|
+
result[:duration] = duration
|
8
|
+
result[:id] = id
|
9
|
+
result[:renewable] = renewable
|
10
|
+
end
|
11
|
+
end
|
12
|
+
|
13
|
+
def kind_sym
|
14
|
+
:lease
|
15
|
+
end
|
16
|
+
end
|
17
|
+
end
|
data/lib/kuby/kube-db/dsl/{kubedb/v1alpha1/proxy_sql.rb → authorization/v1alpha1/mongo_db_role.rb}
RENAMED
@@ -1,13 +1,13 @@
|
|
1
|
-
module Kuby::KubeDB::DSL::
|
2
|
-
class
|
1
|
+
module Kuby::KubeDB::DSL::Authorization::V1alpha1
|
2
|
+
class MongoDBRole < ::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::MongoDBRoleStatus.new }
|
5
|
+
object_field(:spec) { Kuby::KubeDB::DSL::Authorization::V1alpha1::MongoDBRoleSpec.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] = "MongoDBRole"
|
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
|
+
:mongo_db_role
|
20
20
|
end
|
21
21
|
end
|
22
22
|
end
|
@@ -0,0 +1,18 @@
|
|
1
|
+
module Kuby::KubeDB::DSL::Authorization::V1alpha1
|
2
|
+
class MongoDBRoleCondition < ::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
|
+
:mongo_db_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 MongoDBRoleList < ::KubeDSL::DSLObject
|
3
3
|
value_fields :api_version
|
4
|
-
array_field(:item) { Kuby::KubeDB::DSL::
|
4
|
+
array_field(:item) { Kuby::KubeDB::DSL::Authorization::V1alpha1::MongoDBRole.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] = "MongoDBRoleList"
|
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
|
+
:mongo_db_role_list
|
18
18
|
end
|
19
19
|
end
|
20
20
|
end
|