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
data/lib/kuby/kube-db/plugin.rb
CHANGED
@@ -1,12 +1,14 @@
|
|
1
1
|
require 'helm-cli'
|
2
2
|
require 'kuby'
|
3
|
+
require 'kuby/kube-db/version'
|
3
4
|
|
4
5
|
module Kuby
|
5
6
|
module KubeDB
|
6
7
|
class KubeDBError < StandardError; end
|
7
8
|
class OperatorDeployError < KubeDBError; end
|
9
|
+
class APIResourcesError < KubeDBError; end
|
8
10
|
|
9
|
-
class Plugin < ::Kuby::
|
11
|
+
class Plugin < ::Kuby::Plugin
|
10
12
|
NAMESPACE = 'kube-system'.freeze
|
11
13
|
REPO_NAME = 'appscode'.freeze
|
12
14
|
REPO_URL = 'https://charts.appscode.com/stable/'.freeze
|
@@ -15,8 +17,8 @@ module Kuby
|
|
15
17
|
CATALOG_RELEASE_NAME = 'kubedb-catalog'.freeze
|
16
18
|
OPERATOR_CHART_NAME = 'appscode/kubedb'.freeze
|
17
19
|
CATALOG_CHART_NAME = 'appscode/kubedb-catalog'.freeze
|
18
|
-
|
19
|
-
|
20
|
+
WAIT_INTERVAL = 5 # seconds
|
21
|
+
WAIT_MAX = 120 # seconds
|
20
22
|
|
21
23
|
OPERATOR_PARAMS = {
|
22
24
|
'apiserver.enableValidatingWebhook' => 'true',
|
@@ -39,6 +41,10 @@ module Kuby
|
|
39
41
|
Kuby.logger.info('Waiting for kubedb operator deployment')
|
40
42
|
end
|
41
43
|
|
44
|
+
wait_for_api_resources do
|
45
|
+
Kuby.logger.info('Waiting for API resources to become available')
|
46
|
+
end
|
47
|
+
|
42
48
|
Kuby.logger.info('Deploying kubedb catalog')
|
43
49
|
catalog_deployed? ? upgrade_catalog : install_catalog
|
44
50
|
|
@@ -87,15 +93,35 @@ module Kuby
|
|
87
93
|
loop do
|
88
94
|
break if operator_ready?
|
89
95
|
|
90
|
-
if time_elapsed >=
|
96
|
+
if time_elapsed >= WAIT_MAX
|
91
97
|
raise OperatorDeployError, 'timeout waiting for operator to start. '\
|
92
98
|
"Waited #{time_elapsed}s."
|
93
99
|
end
|
94
100
|
|
95
101
|
yield
|
96
102
|
|
97
|
-
sleep
|
98
|
-
time_elapsed +=
|
103
|
+
sleep WAIT_INTERVAL
|
104
|
+
time_elapsed += WAIT_INTERVAL
|
105
|
+
end
|
106
|
+
end
|
107
|
+
|
108
|
+
def wait_for_api_resources
|
109
|
+
time_elapsed = 0
|
110
|
+
|
111
|
+
loop do
|
112
|
+
begin
|
113
|
+
if time_elapsed >= WAIT_MAX
|
114
|
+
raise APIResourcesError, 'timeout waiting for API resources to '\
|
115
|
+
"become available. Waited #{time_elapsed}s."
|
116
|
+
end
|
117
|
+
|
118
|
+
kubernetes_cli.api_resources
|
119
|
+
break
|
120
|
+
rescue KubernetesCLI::KubernetesError
|
121
|
+
yield
|
122
|
+
sleep WAIT_INTERVAL
|
123
|
+
time_elapsed += WAIT_INTERVAL
|
124
|
+
end
|
99
125
|
end
|
100
126
|
end
|
101
127
|
|
@@ -167,7 +193,7 @@ module Kuby
|
|
167
193
|
end
|
168
194
|
|
169
195
|
def helm_cli
|
170
|
-
|
196
|
+
provider.helm_cli
|
171
197
|
end
|
172
198
|
|
173
199
|
def kubernetes_cli
|
@@ -175,7 +201,7 @@ module Kuby
|
|
175
201
|
end
|
176
202
|
|
177
203
|
def provider
|
178
|
-
|
204
|
+
environment.kubernetes.provider
|
179
205
|
end
|
180
206
|
end
|
181
207
|
end
|
data/lib/kuby/kube-db/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: kuby-kube-db
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.6.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Cameron Dutro
|
8
|
-
autorequire:
|
8
|
+
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2020-
|
11
|
+
date: 2020-09-10 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: helm-cli
|
@@ -16,14 +16,28 @@ dependencies:
|
|
16
16
|
requirements:
|
17
17
|
- - "~>"
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: '0.
|
19
|
+
version: '0.3'
|
20
20
|
type: :runtime
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
24
|
- - "~>"
|
25
25
|
- !ruby/object:Gem::Version
|
26
|
-
version: '0.
|
26
|
+
version: '0.3'
|
27
|
+
- !ruby/object:Gem::Dependency
|
28
|
+
name: kube-dsl
|
29
|
+
requirement: !ruby/object:Gem::Requirement
|
30
|
+
requirements:
|
31
|
+
- - "~>"
|
32
|
+
- !ruby/object:Gem::Version
|
33
|
+
version: '0.3'
|
34
|
+
type: :runtime
|
35
|
+
prerelease: false
|
36
|
+
version_requirements: !ruby/object:Gem::Requirement
|
37
|
+
requirements:
|
38
|
+
- - "~>"
|
39
|
+
- !ruby/object:Gem::Version
|
40
|
+
version: '0.3'
|
27
41
|
description: KubeDB plugin for Kuby.
|
28
42
|
email:
|
29
43
|
- camertron@gmail.com
|
@@ -31,6 +45,7 @@ executables: []
|
|
31
45
|
extensions: []
|
32
46
|
extra_rdoc_files: []
|
33
47
|
files:
|
48
|
+
- CHANGELOG.md
|
34
49
|
- Gemfile
|
35
50
|
- LICENSE
|
36
51
|
- Rakefile
|
@@ -48,11 +63,9 @@ files:
|
|
48
63
|
- lib/kuby/kube-db/dsl/api/v1/object_meta.rb
|
49
64
|
- lib/kuby/kube-db/dsl/api/v1/pod_spec.rb
|
50
65
|
- lib/kuby/kube-db/dsl/api/v1/pod_template_spec.rb
|
51
|
-
- lib/kuby/kube-db/dsl/api/v1/prometheus_exporter_spec.rb
|
52
66
|
- lib/kuby/kube-db/dsl/api/v1/prometheus_spec.rb
|
53
67
|
- lib/kuby/kube-db/dsl/api/v1/rest_server_spec.rb
|
54
68
|
- lib/kuby/kube-db/dsl/api/v1/s3_spec.rb
|
55
|
-
- lib/kuby/kube-db/dsl/api/v1/service_monitor_spec.rb
|
56
69
|
- lib/kuby/kube-db/dsl/api/v1/service_port.rb
|
57
70
|
- lib/kuby/kube-db/dsl/api/v1/service_spec.rb
|
58
71
|
- lib/kuby/kube-db/dsl/api/v1/service_template_spec.rb
|
@@ -60,6 +73,30 @@ files:
|
|
60
73
|
- lib/kuby/kube-db/dsl/appcatalog.rb
|
61
74
|
- lib/kuby/kube-db/dsl/appcatalog/v1alpha1.rb
|
62
75
|
- lib/kuby/kube-db/dsl/appcatalog/v1alpha1/app_reference.rb
|
76
|
+
- lib/kuby/kube-db/dsl/authorization.rb
|
77
|
+
- lib/kuby/kube-db/dsl/authorization/v1alpha1.rb
|
78
|
+
- lib/kuby/kube-db/dsl/authorization/v1alpha1/database_access_request.rb
|
79
|
+
- lib/kuby/kube-db/dsl/authorization/v1alpha1/database_access_request_condition.rb
|
80
|
+
- lib/kuby/kube-db/dsl/authorization/v1alpha1/database_access_request_list.rb
|
81
|
+
- lib/kuby/kube-db/dsl/authorization/v1alpha1/database_access_request_spec.rb
|
82
|
+
- lib/kuby/kube-db/dsl/authorization/v1alpha1/database_access_request_status.rb
|
83
|
+
- lib/kuby/kube-db/dsl/authorization/v1alpha1/lease.rb
|
84
|
+
- lib/kuby/kube-db/dsl/authorization/v1alpha1/mongo_db_role.rb
|
85
|
+
- lib/kuby/kube-db/dsl/authorization/v1alpha1/mongo_db_role_condition.rb
|
86
|
+
- lib/kuby/kube-db/dsl/authorization/v1alpha1/mongo_db_role_list.rb
|
87
|
+
- lib/kuby/kube-db/dsl/authorization/v1alpha1/mongo_db_role_spec.rb
|
88
|
+
- lib/kuby/kube-db/dsl/authorization/v1alpha1/mongo_db_role_status.rb
|
89
|
+
- lib/kuby/kube-db/dsl/authorization/v1alpha1/my_sql_role.rb
|
90
|
+
- lib/kuby/kube-db/dsl/authorization/v1alpha1/my_sql_role_condition.rb
|
91
|
+
- lib/kuby/kube-db/dsl/authorization/v1alpha1/my_sql_role_list.rb
|
92
|
+
- lib/kuby/kube-db/dsl/authorization/v1alpha1/my_sql_role_spec.rb
|
93
|
+
- lib/kuby/kube-db/dsl/authorization/v1alpha1/my_sql_role_status.rb
|
94
|
+
- lib/kuby/kube-db/dsl/authorization/v1alpha1/postgres_role.rb
|
95
|
+
- lib/kuby/kube-db/dsl/authorization/v1alpha1/postgres_role_condition.rb
|
96
|
+
- lib/kuby/kube-db/dsl/authorization/v1alpha1/postgres_role_list.rb
|
97
|
+
- lib/kuby/kube-db/dsl/authorization/v1alpha1/postgres_role_spec.rb
|
98
|
+
- lib/kuby/kube-db/dsl/authorization/v1alpha1/postgres_role_status.rb
|
99
|
+
- lib/kuby/kube-db/dsl/authorization/v1alpha1/role_reference.rb
|
63
100
|
- lib/kuby/kube-db/dsl/catalog.rb
|
64
101
|
- lib/kuby/kube-db/dsl/catalog/v1alpha1.rb
|
65
102
|
- lib/kuby/kube-db/dsl/catalog/v1alpha1/elasticsearch_version.rb
|
@@ -96,16 +133,8 @@ files:
|
|
96
133
|
- lib/kuby/kube-db/dsl/catalog/v1alpha1/my_sql_version_init_container.rb
|
97
134
|
- lib/kuby/kube-db/dsl/catalog/v1alpha1/my_sql_version_list.rb
|
98
135
|
- lib/kuby/kube-db/dsl/catalog/v1alpha1/my_sql_version_pod_security_policy.rb
|
99
|
-
- lib/kuby/kube-db/dsl/catalog/v1alpha1/my_sql_version_replication_mode_detector.rb
|
100
136
|
- lib/kuby/kube-db/dsl/catalog/v1alpha1/my_sql_version_spec.rb
|
101
137
|
- lib/kuby/kube-db/dsl/catalog/v1alpha1/my_sql_version_tools.rb
|
102
|
-
- lib/kuby/kube-db/dsl/catalog/v1alpha1/percona_xtra_db_version.rb
|
103
|
-
- lib/kuby/kube-db/dsl/catalog/v1alpha1/percona_xtra_db_version_database.rb
|
104
|
-
- lib/kuby/kube-db/dsl/catalog/v1alpha1/percona_xtra_db_version_exporter.rb
|
105
|
-
- lib/kuby/kube-db/dsl/catalog/v1alpha1/percona_xtra_db_version_init_container.rb
|
106
|
-
- lib/kuby/kube-db/dsl/catalog/v1alpha1/percona_xtra_db_version_list.rb
|
107
|
-
- lib/kuby/kube-db/dsl/catalog/v1alpha1/percona_xtra_db_version_pod_security_policy.rb
|
108
|
-
- lib/kuby/kube-db/dsl/catalog/v1alpha1/percona_xtra_db_version_spec.rb
|
109
138
|
- lib/kuby/kube-db/dsl/catalog/v1alpha1/postgres_version.rb
|
110
139
|
- lib/kuby/kube-db/dsl/catalog/v1alpha1/postgres_version_database.rb
|
111
140
|
- lib/kuby/kube-db/dsl/catalog/v1alpha1/postgres_version_exporter.rb
|
@@ -113,12 +142,6 @@ files:
|
|
113
142
|
- lib/kuby/kube-db/dsl/catalog/v1alpha1/postgres_version_pod_security_policy.rb
|
114
143
|
- lib/kuby/kube-db/dsl/catalog/v1alpha1/postgres_version_spec.rb
|
115
144
|
- lib/kuby/kube-db/dsl/catalog/v1alpha1/postgres_version_tools.rb
|
116
|
-
- lib/kuby/kube-db/dsl/catalog/v1alpha1/proxy_sql_version.rb
|
117
|
-
- lib/kuby/kube-db/dsl/catalog/v1alpha1/proxy_sql_version_exporter.rb
|
118
|
-
- lib/kuby/kube-db/dsl/catalog/v1alpha1/proxy_sql_version_list.rb
|
119
|
-
- lib/kuby/kube-db/dsl/catalog/v1alpha1/proxy_sql_version_pod_security_policy.rb
|
120
|
-
- lib/kuby/kube-db/dsl/catalog/v1alpha1/proxy_sql_version_proxysql.rb
|
121
|
-
- lib/kuby/kube-db/dsl/catalog/v1alpha1/proxy_sql_version_spec.rb
|
122
145
|
- lib/kuby/kube-db/dsl/catalog/v1alpha1/redis_version.rb
|
123
146
|
- lib/kuby/kube-db/dsl/catalog/v1alpha1/redis_version_database.rb
|
124
147
|
- lib/kuby/kube-db/dsl/catalog/v1alpha1/redis_version_exporter.rb
|
@@ -127,9 +150,11 @@ files:
|
|
127
150
|
- lib/kuby/kube-db/dsl/catalog/v1alpha1/redis_version_spec.rb
|
128
151
|
- lib/kuby/kube-db/dsl/kubedb.rb
|
129
152
|
- lib/kuby/kube-db/dsl/kubedb/v1alpha1.rb
|
130
|
-
- lib/kuby/kube-db/dsl/kubedb/v1alpha1/
|
131
|
-
- lib/kuby/kube-db/dsl/kubedb/v1alpha1/
|
132
|
-
- lib/kuby/kube-db/dsl/kubedb/v1alpha1/
|
153
|
+
- lib/kuby/kube-db/dsl/kubedb/v1alpha1/backup_schedule_spec.rb
|
154
|
+
- lib/kuby/kube-db/dsl/kubedb/v1alpha1/dormant_database.rb
|
155
|
+
- lib/kuby/kube-db/dsl/kubedb/v1alpha1/dormant_database_list.rb
|
156
|
+
- lib/kuby/kube-db/dsl/kubedb/v1alpha1/dormant_database_spec.rb
|
157
|
+
- lib/kuby/kube-db/dsl/kubedb/v1alpha1/dormant_database_status.rb
|
133
158
|
- lib/kuby/kube-db/dsl/kubedb/v1alpha1/elasticsearch.rb
|
134
159
|
- lib/kuby/kube-db/dsl/kubedb/v1alpha1/elasticsearch_cluster_topology.rb
|
135
160
|
- lib/kuby/kube-db/dsl/kubedb/v1alpha1/elasticsearch_list.rb
|
@@ -142,10 +167,6 @@ files:
|
|
142
167
|
- lib/kuby/kube-db/dsl/kubedb/v1alpha1/etcd_status.rb
|
143
168
|
- lib/kuby/kube-db/dsl/kubedb/v1alpha1/init_spec.rb
|
144
169
|
- lib/kuby/kube-db/dsl/kubedb/v1alpha1/leader_election_config.rb
|
145
|
-
- lib/kuby/kube-db/dsl/kubedb/v1alpha1/maria_db.rb
|
146
|
-
- lib/kuby/kube-db/dsl/kubedb/v1alpha1/maria_db_list.rb
|
147
|
-
- lib/kuby/kube-db/dsl/kubedb/v1alpha1/maria_db_spec.rb
|
148
|
-
- lib/kuby/kube-db/dsl/kubedb/v1alpha1/maria_db_status.rb
|
149
170
|
- lib/kuby/kube-db/dsl/kubedb/v1alpha1/member_secret.rb
|
150
171
|
- lib/kuby/kube-db/dsl/kubedb/v1alpha1/memcached.rb
|
151
172
|
- lib/kuby/kube-db/dsl/kubedb/v1alpha1/memcached_list.rb
|
@@ -166,25 +187,14 @@ files:
|
|
166
187
|
- lib/kuby/kube-db/dsl/kubedb/v1alpha1/my_sql_list.rb
|
167
188
|
- lib/kuby/kube-db/dsl/kubedb/v1alpha1/my_sql_spec.rb
|
168
189
|
- lib/kuby/kube-db/dsl/kubedb/v1alpha1/my_sql_status.rb
|
169
|
-
- lib/kuby/kube-db/dsl/kubedb/v1alpha1/
|
170
|
-
- lib/kuby/kube-db/dsl/kubedb/v1alpha1/
|
171
|
-
- lib/kuby/kube-db/dsl/kubedb/v1alpha1/percona_xtra_db_spec.rb
|
172
|
-
- lib/kuby/kube-db/dsl/kubedb/v1alpha1/percona_xtra_db_status.rb
|
173
|
-
- lib/kuby/kube-db/dsl/kubedb/v1alpha1/pg_bouncer.rb
|
174
|
-
- lib/kuby/kube-db/dsl/kubedb/v1alpha1/pg_bouncer_list.rb
|
175
|
-
- lib/kuby/kube-db/dsl/kubedb/v1alpha1/pg_bouncer_spec.rb
|
176
|
-
- lib/kuby/kube-db/dsl/kubedb/v1alpha1/pg_bouncer_status.rb
|
190
|
+
- lib/kuby/kube-db/dsl/kubedb/v1alpha1/origin.rb
|
191
|
+
- lib/kuby/kube-db/dsl/kubedb/v1alpha1/origin_spec.rb
|
177
192
|
- lib/kuby/kube-db/dsl/kubedb/v1alpha1/postgres.rb
|
178
193
|
- lib/kuby/kube-db/dsl/kubedb/v1alpha1/postgres_archiver_spec.rb
|
179
194
|
- lib/kuby/kube-db/dsl/kubedb/v1alpha1/postgres_list.rb
|
180
195
|
- lib/kuby/kube-db/dsl/kubedb/v1alpha1/postgres_spec.rb
|
181
196
|
- lib/kuby/kube-db/dsl/kubedb/v1alpha1/postgres_status.rb
|
182
197
|
- lib/kuby/kube-db/dsl/kubedb/v1alpha1/postgres_wal_source_spec.rb
|
183
|
-
- lib/kuby/kube-db/dsl/kubedb/v1alpha1/proxy_sql.rb
|
184
|
-
- lib/kuby/kube-db/dsl/kubedb/v1alpha1/proxy_sql_backend_spec.rb
|
185
|
-
- lib/kuby/kube-db/dsl/kubedb/v1alpha1/proxy_sql_list.rb
|
186
|
-
- lib/kuby/kube-db/dsl/kubedb/v1alpha1/proxy_sql_spec.rb
|
187
|
-
- lib/kuby/kube-db/dsl/kubedb/v1alpha1/proxy_sql_status.rb
|
188
198
|
- lib/kuby/kube-db/dsl/kubedb/v1alpha1/recovery_target.rb
|
189
199
|
- lib/kuby/kube-db/dsl/kubedb/v1alpha1/redis.rb
|
190
200
|
- lib/kuby/kube-db/dsl/kubedb/v1alpha1/redis_cluster_spec.rb
|
@@ -192,17 +202,25 @@ files:
|
|
192
202
|
- lib/kuby/kube-db/dsl/kubedb/v1alpha1/redis_spec.rb
|
193
203
|
- lib/kuby/kube-db/dsl/kubedb/v1alpha1/redis_status.rb
|
194
204
|
- lib/kuby/kube-db/dsl/kubedb/v1alpha1/script_source_spec.rb
|
195
|
-
- lib/kuby/kube-db/dsl/kubedb/v1alpha1/
|
205
|
+
- lib/kuby/kube-db/dsl/kubedb/v1alpha1/snapshot.rb
|
206
|
+
- lib/kuby/kube-db/dsl/kubedb/v1alpha1/snapshot_list.rb
|
207
|
+
- lib/kuby/kube-db/dsl/kubedb/v1alpha1/snapshot_source_spec.rb
|
208
|
+
- lib/kuby/kube-db/dsl/kubedb/v1alpha1/snapshot_spec.rb
|
209
|
+
- lib/kuby/kube-db/dsl/kubedb/v1alpha1/snapshot_status.rb
|
196
210
|
- lib/kuby/kube-db/dsl/kubedb/v1alpha1/tls_policy.rb
|
211
|
+
- lib/kuby/kube-db/dsl/meta.rb
|
212
|
+
- lib/kuby/kube-db/dsl/meta/v1.rb
|
213
|
+
- lib/kuby/kube-db/dsl/meta/v1/initializer.rb
|
214
|
+
- lib/kuby/kube-db/dsl/meta/v1/initializers.rb
|
197
215
|
- lib/kuby/kube-db/dsl/v1.rb
|
198
216
|
- lib/kuby/kube-db/dsl/v1/volume_source.rb
|
199
217
|
- lib/kuby/kube-db/entrypoint.rb
|
200
218
|
- lib/kuby/kube-db/plugin.rb
|
201
219
|
- lib/kuby/kube-db/version.rb
|
202
|
-
homepage: http://github.com/
|
220
|
+
homepage: http://github.com/getkuby/kuby-kube-db
|
203
221
|
licenses: []
|
204
222
|
metadata: {}
|
205
|
-
post_install_message:
|
223
|
+
post_install_message:
|
206
224
|
rdoc_options: []
|
207
225
|
require_paths:
|
208
226
|
- lib
|
@@ -217,8 +235,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
217
235
|
- !ruby/object:Gem::Version
|
218
236
|
version: '0'
|
219
237
|
requirements: []
|
220
|
-
rubygems_version: 3.
|
221
|
-
signing_key:
|
238
|
+
rubygems_version: 3.1.4
|
239
|
+
signing_key:
|
222
240
|
specification_version: 4
|
223
241
|
summary: KubeDB plugin for Kuby.
|
224
242
|
test_files: []
|
@@ -1,22 +0,0 @@
|
|
1
|
-
module Kuby::KubeDB::DSL::Api::V1
|
2
|
-
class PrometheusExporterSpec < ::KubeDSL::DSLObject
|
3
|
-
value_fields :args, :port
|
4
|
-
array_field(:env) { KubeDSL::DSL::V1::EnvVar.new }
|
5
|
-
object_field(:security_context) { KubeDSL::DSL::V1::SecurityContext.new }
|
6
|
-
object_field(:resources) { KubeDSL::DSL::V1::ResourceRequirements.new }
|
7
|
-
|
8
|
-
def serialize
|
9
|
-
{}.tap do |result|
|
10
|
-
result[:args] = args
|
11
|
-
result[:port] = port
|
12
|
-
result[:env] = envs.map(&:serialize)
|
13
|
-
result[:securityContext] = security_context.serialize
|
14
|
-
result[:resources] = resources.serialize
|
15
|
-
end
|
16
|
-
end
|
17
|
-
|
18
|
-
def kind_sym
|
19
|
-
:prometheus_exporter_spec
|
20
|
-
end
|
21
|
-
end
|
22
|
-
end
|
@@ -1,18 +0,0 @@
|
|
1
|
-
module Kuby::KubeDB::DSL::Api::V1
|
2
|
-
class ServiceMonitorSpec < ::KubeDSL::DSLObject
|
3
|
-
value_fields :namespace, :interval
|
4
|
-
object_field(:labels) { ::KubeDSL::KeyValueFields.new(format: :string) }
|
5
|
-
|
6
|
-
def serialize
|
7
|
-
{}.tap do |result|
|
8
|
-
result[:namespace] = namespace
|
9
|
-
result[:interval] = interval
|
10
|
-
result[:labels] = labels.serialize
|
11
|
-
end
|
12
|
-
end
|
13
|
-
|
14
|
-
def kind_sym
|
15
|
-
:service_monitor_spec
|
16
|
-
end
|
17
|
-
end
|
18
|
-
end
|
@@ -1,15 +0,0 @@
|
|
1
|
-
module Kuby::KubeDB::DSL::Catalog::V1alpha1
|
2
|
-
class MySQLVersionReplicationModeDetector < ::KubeDSL::DSLObject
|
3
|
-
value_fields :image
|
4
|
-
|
5
|
-
def serialize
|
6
|
-
{}.tap do |result|
|
7
|
-
result[:image] = image
|
8
|
-
end
|
9
|
-
end
|
10
|
-
|
11
|
-
def kind_sym
|
12
|
-
:my_sql_version_replication_mode_detector
|
13
|
-
end
|
14
|
-
end
|
15
|
-
end
|
@@ -1,20 +0,0 @@
|
|
1
|
-
module Kuby::KubeDB::DSL::Catalog::V1alpha1
|
2
|
-
class PerconaXtraDBVersion < ::KubeDSL::DSLObject
|
3
|
-
value_fields :api_version
|
4
|
-
object_field(:spec) { Kuby::KubeDB::DSL::Catalog::V1alpha1::PerconaXtraDBVersionSpec.new }
|
5
|
-
object_field(:metadata) { KubeDSL::DSL::Meta::V1::ObjectMeta.new }
|
6
|
-
|
7
|
-
def serialize
|
8
|
-
{}.tap do |result|
|
9
|
-
result[:kind] = "PerconaXtraDBVersion"
|
10
|
-
result[:apiVersion] = api_version
|
11
|
-
result[:spec] = spec.serialize
|
12
|
-
result[:metadata] = metadata.serialize
|
13
|
-
end
|
14
|
-
end
|
15
|
-
|
16
|
-
def kind_sym
|
17
|
-
:percona_xtra_db_version
|
18
|
-
end
|
19
|
-
end
|
20
|
-
end
|
@@ -1,15 +0,0 @@
|
|
1
|
-
module Kuby::KubeDB::DSL::Catalog::V1alpha1
|
2
|
-
class PerconaXtraDBVersionDatabase < ::KubeDSL::DSLObject
|
3
|
-
value_fields :image
|
4
|
-
|
5
|
-
def serialize
|
6
|
-
{}.tap do |result|
|
7
|
-
result[:image] = image
|
8
|
-
end
|
9
|
-
end
|
10
|
-
|
11
|
-
def kind_sym
|
12
|
-
:percona_xtra_db_version_database
|
13
|
-
end
|
14
|
-
end
|
15
|
-
end
|
@@ -1,15 +0,0 @@
|
|
1
|
-
module Kuby::KubeDB::DSL::Catalog::V1alpha1
|
2
|
-
class PerconaXtraDBVersionExporter < ::KubeDSL::DSLObject
|
3
|
-
value_fields :image
|
4
|
-
|
5
|
-
def serialize
|
6
|
-
{}.tap do |result|
|
7
|
-
result[:image] = image
|
8
|
-
end
|
9
|
-
end
|
10
|
-
|
11
|
-
def kind_sym
|
12
|
-
:percona_xtra_db_version_exporter
|
13
|
-
end
|
14
|
-
end
|
15
|
-
end
|
@@ -1,15 +0,0 @@
|
|
1
|
-
module Kuby::KubeDB::DSL::Catalog::V1alpha1
|
2
|
-
class PerconaXtraDBVersionInitContainer < ::KubeDSL::DSLObject
|
3
|
-
value_fields :image
|
4
|
-
|
5
|
-
def serialize
|
6
|
-
{}.tap do |result|
|
7
|
-
result[:image] = image
|
8
|
-
end
|
9
|
-
end
|
10
|
-
|
11
|
-
def kind_sym
|
12
|
-
:percona_xtra_db_version_init_container
|
13
|
-
end
|
14
|
-
end
|
15
|
-
end
|