kuby-kube-db 0.3.0 → 0.6.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (101) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +20 -0
  3. data/kuby-kube-db.gemspec +1 -1
  4. data/lib/kuby/kube-db/dsl.rb +3 -1
  5. data/lib/kuby/kube-db/dsl/api/v1.rb +8 -10
  6. data/lib/kuby/kube-db/dsl/api/v1/local_spec.rb +0 -2
  7. data/lib/kuby/kube-db/dsl/api/v1/object_meta.rb +0 -19
  8. data/lib/kuby/kube-db/dsl/api/v1/prometheus_spec.rb +2 -6
  9. data/lib/kuby/kube-db/dsl/api/v1/s3_spec.rb +1 -2
  10. data/lib/kuby/kube-db/dsl/api/v1/service_spec.rb +2 -4
  11. data/lib/kuby/kube-db/dsl/authorization.rb +3 -0
  12. data/lib/kuby/kube-db/dsl/authorization/v1alpha1.rb +24 -0
  13. data/lib/kuby/kube-db/dsl/authorization/v1alpha1/database_access_request.rb +22 -0
  14. data/lib/kuby/kube-db/dsl/authorization/v1alpha1/database_access_request_condition.rb +18 -0
  15. data/lib/kuby/kube-db/dsl/{catalog/v1alpha1/proxy_sql_version_list.rb → authorization/v1alpha1/database_access_request_list.rb} +5 -5
  16. data/lib/kuby/kube-db/dsl/authorization/v1alpha1/database_access_request_spec.rb +19 -0
  17. data/lib/kuby/kube-db/dsl/authorization/v1alpha1/database_access_request_status.rb +19 -0
  18. data/lib/kuby/kube-db/dsl/authorization/v1alpha1/lease.rb +17 -0
  19. data/lib/kuby/kube-db/dsl/{kubedb/v1alpha1/proxy_sql.rb → authorization/v1alpha1/mongo_db_role.rb} +6 -6
  20. data/lib/kuby/kube-db/dsl/authorization/v1alpha1/mongo_db_role_condition.rb +18 -0
  21. data/lib/kuby/kube-db/dsl/{kubedb/v1alpha1/percona_xtra_db_list.rb → authorization/v1alpha1/mongo_db_role_list.rb} +5 -5
  22. data/lib/kuby/kube-db/dsl/authorization/v1alpha1/mongo_db_role_spec.rb +22 -0
  23. data/lib/kuby/kube-db/dsl/authorization/v1alpha1/mongo_db_role_status.rb +18 -0
  24. data/lib/kuby/kube-db/dsl/{kubedb/v1alpha1/percona_xtra_db.rb → authorization/v1alpha1/my_sql_role.rb} +6 -6
  25. data/lib/kuby/kube-db/dsl/authorization/v1alpha1/my_sql_role_condition.rb +18 -0
  26. data/lib/kuby/kube-db/dsl/{kubedb/v1alpha1/proxy_sql_list.rb → authorization/v1alpha1/my_sql_role_list.rb} +5 -5
  27. data/lib/kuby/kube-db/dsl/authorization/v1alpha1/my_sql_role_spec.rb +22 -0
  28. data/lib/kuby/kube-db/dsl/authorization/v1alpha1/my_sql_role_status.rb +18 -0
  29. data/lib/kuby/kube-db/dsl/authorization/v1alpha1/postgres_role.rb +22 -0
  30. data/lib/kuby/kube-db/dsl/authorization/v1alpha1/postgres_role_condition.rb +18 -0
  31. data/lib/kuby/kube-db/dsl/authorization/v1alpha1/postgres_role_list.rb +20 -0
  32. data/lib/kuby/kube-db/dsl/authorization/v1alpha1/postgres_role_spec.rb +24 -0
  33. data/lib/kuby/kube-db/dsl/authorization/v1alpha1/postgres_role_status.rb +18 -0
  34. data/lib/kuby/kube-db/dsl/authorization/v1alpha1/role_reference.rb +17 -0
  35. data/lib/kuby/kube-db/dsl/catalog/v1alpha1.rb +38 -52
  36. data/lib/kuby/kube-db/dsl/catalog/v1alpha1/elasticsearch_version_init_container.rb +1 -2
  37. data/lib/kuby/kube-db/dsl/catalog/v1alpha1/elasticsearch_version_pod_security_policy.rb +2 -1
  38. data/lib/kuby/kube-db/dsl/catalog/v1alpha1/elasticsearch_version_spec.rb +1 -2
  39. data/lib/kuby/kube-db/dsl/catalog/v1alpha1/mongo_db_version_pod_security_policy.rb +2 -1
  40. data/lib/kuby/kube-db/dsl/catalog/v1alpha1/my_sql_version_pod_security_policy.rb +2 -1
  41. data/lib/kuby/kube-db/dsl/catalog/v1alpha1/my_sql_version_spec.rb +0 -2
  42. data/lib/kuby/kube-db/dsl/catalog/v1alpha1/postgres_version_pod_security_policy.rb +2 -1
  43. data/lib/kuby/kube-db/dsl/kubedb/v1alpha1.rb +48 -57
  44. data/lib/kuby/kube-db/dsl/kubedb/v1alpha1/backup_schedule_spec.rb +35 -0
  45. data/lib/kuby/kube-db/dsl/kubedb/v1alpha1/{pg_bouncer.rb → dormant_database.rb} +5 -5
  46. data/lib/kuby/kube-db/dsl/kubedb/v1alpha1/{pg_bouncer_list.rb → dormant_database_list.rb} +4 -4
  47. data/lib/kuby/kube-db/dsl/kubedb/v1alpha1/dormant_database_spec.rb +17 -0
  48. data/lib/kuby/kube-db/dsl/kubedb/v1alpha1/{percona_xtra_db_status.rb → dormant_database_status.rb} +5 -3
  49. data/lib/kuby/kube-db/dsl/kubedb/v1alpha1/elasticsearch_node.rb +1 -2
  50. data/lib/kuby/kube-db/dsl/kubedb/v1alpha1/elasticsearch_spec.rb +3 -5
  51. data/lib/kuby/kube-db/dsl/kubedb/v1alpha1/etcd_spec.rb +3 -3
  52. data/lib/kuby/kube-db/dsl/kubedb/v1alpha1/init_spec.rb +2 -2
  53. data/lib/kuby/kube-db/dsl/kubedb/v1alpha1/memcached_spec.rb +1 -3
  54. data/lib/kuby/kube-db/dsl/kubedb/v1alpha1/mongo_db_replica_set.rb +2 -0
  55. data/lib/kuby/kube-db/dsl/kubedb/v1alpha1/mongo_db_spec.rb +7 -11
  56. data/lib/kuby/kube-db/dsl/kubedb/v1alpha1/my_sql_spec.rb +6 -8
  57. data/lib/kuby/kube-db/dsl/kubedb/v1alpha1/origin.rb +17 -0
  58. data/lib/kuby/kube-db/dsl/kubedb/v1alpha1/origin_spec.rb +27 -0
  59. data/lib/kuby/kube-db/dsl/kubedb/v1alpha1/postgres_spec.rb +5 -7
  60. data/lib/kuby/kube-db/dsl/kubedb/v1alpha1/redis_spec.rb +1 -3
  61. data/lib/kuby/kube-db/dsl/kubedb/v1alpha1/script_source_spec.rb +0 -2
  62. data/lib/kuby/kube-db/dsl/kubedb/v1alpha1/{maria_db.rb → snapshot.rb} +5 -5
  63. data/lib/kuby/kube-db/dsl/kubedb/v1alpha1/{maria_db_list.rb → snapshot_list.rb} +4 -4
  64. data/lib/kuby/kube-db/dsl/kubedb/v1alpha1/snapshot_source_spec.rb +17 -0
  65. data/lib/kuby/kube-db/dsl/kubedb/v1alpha1/snapshot_spec.rb +35 -0
  66. data/lib/kuby/kube-db/dsl/kubedb/v1alpha1/{proxy_sql_status.rb → snapshot_status.rb} +5 -3
  67. data/lib/kuby/kube-db/dsl/meta.rb +3 -0
  68. data/lib/kuby/kube-db/dsl/meta/v1.rb +4 -0
  69. data/lib/kuby/kube-db/dsl/meta/v1/initializer.rb +15 -0
  70. data/lib/kuby/kube-db/dsl/meta/v1/initializers.rb +17 -0
  71. data/lib/kuby/kube-db/dsl/v1/volume_source.rb +0 -2
  72. data/lib/kuby/kube-db/entrypoint.rb +108 -144
  73. data/lib/kuby/kube-db/plugin.rb +43 -18
  74. data/lib/kuby/kube-db/version.rb +2 -2
  75. metadata +44 -41
  76. data/lib/kuby/kube-db/dsl/api/v1/prometheus_exporter_spec.rb +0 -22
  77. data/lib/kuby/kube-db/dsl/api/v1/service_monitor_spec.rb +0 -18
  78. data/lib/kuby/kube-db/dsl/catalog/v1alpha1/my_sql_version_replication_mode_detector.rb +0 -15
  79. data/lib/kuby/kube-db/dsl/catalog/v1alpha1/percona_xtra_db_version.rb +0 -20
  80. data/lib/kuby/kube-db/dsl/catalog/v1alpha1/percona_xtra_db_version_database.rb +0 -15
  81. data/lib/kuby/kube-db/dsl/catalog/v1alpha1/percona_xtra_db_version_exporter.rb +0 -15
  82. data/lib/kuby/kube-db/dsl/catalog/v1alpha1/percona_xtra_db_version_init_container.rb +0 -15
  83. data/lib/kuby/kube-db/dsl/catalog/v1alpha1/percona_xtra_db_version_list.rb +0 -20
  84. data/lib/kuby/kube-db/dsl/catalog/v1alpha1/percona_xtra_db_version_pod_security_policy.rb +0 -15
  85. data/lib/kuby/kube-db/dsl/catalog/v1alpha1/percona_xtra_db_version_spec.rb +0 -24
  86. data/lib/kuby/kube-db/dsl/catalog/v1alpha1/proxy_sql_version.rb +0 -20
  87. data/lib/kuby/kube-db/dsl/catalog/v1alpha1/proxy_sql_version_exporter.rb +0 -15
  88. data/lib/kuby/kube-db/dsl/catalog/v1alpha1/proxy_sql_version_pod_security_policy.rb +0 -15
  89. data/lib/kuby/kube-db/dsl/catalog/v1alpha1/proxy_sql_version_proxysql.rb +0 -15
  90. data/lib/kuby/kube-db/dsl/catalog/v1alpha1/proxy_sql_version_spec.rb +0 -22
  91. data/lib/kuby/kube-db/dsl/kubedb/v1alpha1/certificate_spec.rb +0 -20
  92. data/lib/kuby/kube-db/dsl/kubedb/v1alpha1/connection_pool_config.rb +0 -28
  93. data/lib/kuby/kube-db/dsl/kubedb/v1alpha1/databases.rb +0 -20
  94. data/lib/kuby/kube-db/dsl/kubedb/v1alpha1/maria_db_spec.rb +0 -36
  95. data/lib/kuby/kube-db/dsl/kubedb/v1alpha1/maria_db_status.rb +0 -17
  96. data/lib/kuby/kube-db/dsl/kubedb/v1alpha1/percona_xtra_db_spec.rb +0 -38
  97. data/lib/kuby/kube-db/dsl/kubedb/v1alpha1/pg_bouncer_spec.rb +0 -31
  98. data/lib/kuby/kube-db/dsl/kubedb/v1alpha1/pg_bouncer_status.rb +0 -17
  99. data/lib/kuby/kube-db/dsl/kubedb/v1alpha1/proxy_sql_backend_spec.rb +0 -17
  100. data/lib/kuby/kube-db/dsl/kubedb/v1alpha1/proxy_sql_spec.rb +0 -34
  101. 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: 8f182e8a41ccccbf1a4420e57afb7ad46937355d362d17e56df1c3871100aa9e
4
- data.tar.gz: b82611c381d553229b8584b3583c2c6f6be88f92c96af942cd801d17bd47d024
3
+ metadata.gz: 0eb811de37c1d31869e60816db656816532bfac247b19abcf9d0036ab5ddc95c
4
+ data.tar.gz: 73467e22e8d5be095fffb4f7d9ab0dbecb88560bfdcf710a56c7c6c241f19e3c
5
5
  SHA512:
6
- metadata.gz: 30873e1aea3775239355d5c74607f9a2345087167588d022ef78902faeebf9755858e72612c703ffe9f70c7217716ad59cacc50769cb7233176504a0de492582
7
- data.tar.gz: 82cddc258d9c3c4a61cb194312af36cf9785b241a6c7252717de0db698bc35b8558c2afd090c26df2b173f005df67b1a6c94893c315e43d71ebeb3afb8f889e8
6
+ metadata.gz: 87499ebb4c0e6a713b0955c86def01cb4c7520b7a113a0763017aae1a294bb6efe5706a6d60e32030ff60106aabf4d0a6c6085a7304013f93eab6f188931d0d6
7
+ data.tar.gz: 45a5c060121248003e0084a645a5abc3904e8199c56a78c9efccd1a593f3dd2c94b9363e0f14f59f8d1b886336598ed893b6f12621178cc5242c6d6336fc2244
data/CHANGELOG.md CHANGED
@@ -1,3 +1,23 @@
1
+ ## 0.6.2
2
+ * Fix bad constant references
3
+
4
+ ## 0.6.1
5
+ * Pass keyword arguments correctly to helm-cli (#1, @rept)
6
+
7
+ ## 0.6.0
8
+ * Wait for API resources to become available.
9
+ - 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.
10
+
11
+ ## 0.5.0
12
+ * Conform to new plugin architecture.
13
+ * Accept `environment` instead of `definition` instances.
14
+
15
+ ## 0.4.0
16
+ * Downgrade to kubedb 0.12.0, the latest stable release.
17
+ - For some reason, the API spec for 0.13.0.rc-0 was removed from the apimachinery repo.
18
+ - Other rcs in the 0.13.0 line, eg. 0.13.0.rc-1 are not published as Helm charts.
19
+ * Upgrade to helm-cli 0.2.
20
+
1
21
  ## 0.3.0
2
22
  * Upgrade to kube-dsl 0.3.
3
23
 
data/kuby-kube-db.gemspec CHANGED
@@ -12,7 +12,7 @@ Gem::Specification.new do |s|
12
12
 
13
13
  s.platform = Gem::Platform::RUBY
14
14
 
15
- s.add_dependency 'helm-cli', '~> 0.1'
15
+ s.add_dependency 'helm-cli', '~> 0.3'
16
16
  s.add_dependency 'kube-dsl', '~> 0.3'
17
17
 
18
18
  s.require_path = 'lib'
@@ -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 :Appcatalog, 'kuby/kube-db/dsl/appcatalog'
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 :ServiceTemplateSpec, 'kuby/kube-db/dsl/api/v1/service_template_spec'
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 :PodTemplateSpec, 'kuby/kube-db/dsl/api/v1/pod_template_spec'
7
- autoload :ServiceMonitorSpec, 'kuby/kube-db/dsl/api/v1/service_monitor_spec'
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 :PrometheusExporterSpec, 'kuby/kube-db/dsl/api/v1/prometheus_exporter_spec'
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
- value_fields :uid, :deletion_timestamp, :cluster_name, :deletion_grace_period_seconds, :namespace, :generation, :finalizers, :generate_name, :resource_version, :creation_timestamp, :self_link, :name
4
- array_field(:owner_reference) { KubeDSL::DSL::Meta::V1::OwnerReference.new }
5
- array_field(:managed_field) { KubeDSL::DSL::Meta::V1::ManagedFieldsEntry.new }
6
- key_value_field(:labels, format: :string)
7
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
@@ -1,17 +1,13 @@
1
1
  module Kuby::KubeDB::DSL::Api::V1
2
2
  class PrometheusSpec < ::KubeDSL::DSLObject
3
- value_fields :namespace, :interval, :port
4
- object_field(:exporter) { Kuby::KubeDB::DSL::Api::V1::PrometheusExporterSpec.new }
5
- object_field(:service_monitor) { Kuby::KubeDB::DSL::Api::V1::ServiceMonitorSpec.new }
3
+ value_fields :namespace, :port, :interval
6
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[:exporter] = exporter.serialize
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, :region
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, :external_traffic_policy, :type, :cluster_ip, :load_balancer_source_ranges, :health_check_node_port
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,3 @@
1
+ module Kuby::KubeDB::DSL::Authorization
2
+ autoload :V1alpha1, 'kuby/kube-db/dsl/authorization/v1alpha1'
3
+ end
@@ -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::Catalog::V1alpha1
2
- class ProxySQLVersionList < ::KubeDSL::DSLObject
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::Catalog::V1alpha1::ProxySQLVersion.new }
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] = "ProxySQLVersionList"
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
- :proxy_sql_version_list
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
@@ -1,13 +1,13 @@
1
- module Kuby::KubeDB::DSL::Kubedb::V1alpha1
2
- class ProxySQL < ::KubeDSL::DSLObject
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::Kubedb::V1alpha1::ProxySQLStatus.new }
5
- object_field(:spec) { Kuby::KubeDB::DSL::Kubedb::V1alpha1::ProxySQLSpec.new }
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] = "ProxySQL"
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
- :proxy_sql
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::Kubedb::V1alpha1
2
- class PerconaXtraDBList < ::KubeDSL::DSLObject
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::Kubedb::V1alpha1::PerconaXtraDB.new }
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] = "PerconaXtraDBList"
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
- :percona_xtra_db_list
17
+ :mongo_db_role_list
18
18
  end
19
19
  end
20
20
  end
@@ -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