kube_cluster 0.5.4 → 0.6.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/.gitignore +2 -0
- data/Gemfile.lock +1 -1
- data/lib/kube/cluster/standard/cloud_native_pg/helm.rb +91 -0
- data/lib/kube/cluster/standard/cloud_native_pg.rb +17 -0
- data/lib/kube/cluster/version.rb +1 -1
- metadata +3 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 4cfe0887eeac1f4f52fc6f4f9730e5db9dacc66e132765301380d2a16933ebe7
|
|
4
|
+
data.tar.gz: 9ab9e7350e92274bc4f4ba73f5ffc025d18035a87fee5ed2a1c1d29e1e9dfc5b
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 4d2f96411424735612533763d8e79430bcc52792399732de0b06ab9e9a5f07e3ec3329ffd04a479353d050753e404b6b0d66dbb920a26cc2f985a066dad10751
|
|
7
|
+
data.tar.gz: aff4fe39dabe60aee449c15e57656c7deaf33e73de8bbbc5a046186bec2fe6c79370e024ae86a4acb8f5b00218515a41bbf5fcf0468a56a8352474a8b6c5885f
|
data/.gitignore
CHANGED
data/Gemfile.lock
CHANGED
|
@@ -0,0 +1,91 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
require "bundler/setup"
|
|
4
|
+
require "kube/cluster"
|
|
5
|
+
|
|
6
|
+
module Kube
|
|
7
|
+
module Cluster
|
|
8
|
+
module Standard
|
|
9
|
+
module CloudNativePg
|
|
10
|
+
module Helm
|
|
11
|
+
class Operator < Kube::Cluster["HelmChart"]
|
|
12
|
+
def initialize(&block)
|
|
13
|
+
super {
|
|
14
|
+
metadata.name = "cloudnative-pg"
|
|
15
|
+
metadata.namespace = "kube-system"
|
|
16
|
+
spec.chart = "cloudnative-pg"
|
|
17
|
+
spec.version = "0.28.2"
|
|
18
|
+
spec.repo = "https://cloudnative-pg.github.io/charts"
|
|
19
|
+
spec.targetNamespace = "cnpg-system"
|
|
20
|
+
spec.createNamespace = true
|
|
21
|
+
|
|
22
|
+
instance_exec(&block) if block
|
|
23
|
+
}
|
|
24
|
+
end
|
|
25
|
+
end
|
|
26
|
+
|
|
27
|
+
# You shouldn't really need this... it's a dependency of
|
|
28
|
+
# the Operator chart...
|
|
29
|
+
#
|
|
30
|
+
# class Cluster < Kube::Cluster["HelmChart"]
|
|
31
|
+
# def initialize(&block)
|
|
32
|
+
# super {
|
|
33
|
+
# metadata.name = "cloudnative-pg"
|
|
34
|
+
# metadata.namespace = "kube-system"
|
|
35
|
+
# spec.chart = "cluster"
|
|
36
|
+
# spec.version = "0.6.1"
|
|
37
|
+
# spec.repo = "https://cloudnative-pg.github.io/charts"
|
|
38
|
+
# spec.targetNamespace = "cnpg-system"
|
|
39
|
+
# spec.createNamespace = true
|
|
40
|
+
|
|
41
|
+
# instance_exec(&block) if block
|
|
42
|
+
# }
|
|
43
|
+
# end
|
|
44
|
+
# end
|
|
45
|
+
|
|
46
|
+
class Barman < Kube::Cluster["HelmChart"]
|
|
47
|
+
def initialize(&block)
|
|
48
|
+
super {
|
|
49
|
+
metadata.name = "cloudnative-pg"
|
|
50
|
+
metadata.namespace = "kube-system"
|
|
51
|
+
spec.chart = "plugin-barman-cloud"
|
|
52
|
+
spec.version = "0.6.0"
|
|
53
|
+
spec.repo = "https://cloudnative-pg.github.io/charts"
|
|
54
|
+
spec.targetNamespace = "cnpg-system"
|
|
55
|
+
spec.createNamespace = true
|
|
56
|
+
|
|
57
|
+
instance_exec(&block) if block
|
|
58
|
+
}
|
|
59
|
+
end
|
|
60
|
+
end
|
|
61
|
+
end
|
|
62
|
+
end
|
|
63
|
+
end
|
|
64
|
+
end
|
|
65
|
+
end
|
|
66
|
+
|
|
67
|
+
test do
|
|
68
|
+
it "Operator initializes without error" do
|
|
69
|
+
Kube::Cluster::Standard::CloudNativePg::Helm::Operator
|
|
70
|
+
.new()
|
|
71
|
+
.to_yaml
|
|
72
|
+
.is_a?(String)
|
|
73
|
+
.should == true
|
|
74
|
+
end
|
|
75
|
+
|
|
76
|
+
# it "Cluster initializes without error" do
|
|
77
|
+
# Kube::Cluster::Standard::CloudNativePg::Helm::Cluster
|
|
78
|
+
# .new()
|
|
79
|
+
# .to_yaml
|
|
80
|
+
# .is_a?(String)
|
|
81
|
+
# .should == true
|
|
82
|
+
# end
|
|
83
|
+
|
|
84
|
+
it "Barman initializes without error" do
|
|
85
|
+
Kube::Cluster::Standard::CloudNativePg::Helm::Barman
|
|
86
|
+
.new()
|
|
87
|
+
.to_yaml
|
|
88
|
+
.is_a?(String)
|
|
89
|
+
.should == true
|
|
90
|
+
end
|
|
91
|
+
end
|
data/lib/kube/cluster/version.rb
CHANGED
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: kube_cluster
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.
|
|
4
|
+
version: 0.6.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Nathan K
|
|
@@ -195,6 +195,8 @@ files:
|
|
|
195
195
|
- lib/kube/cluster/resource/extensions/custom_resource_definition.rb
|
|
196
196
|
- lib/kube/cluster/resource/persistence.rb
|
|
197
197
|
- lib/kube/cluster/script_command.rb
|
|
198
|
+
- lib/kube/cluster/standard/cloud_native_pg.rb
|
|
199
|
+
- lib/kube/cluster/standard/cloud_native_pg/helm.rb
|
|
198
200
|
- lib/kube/cluster/version.rb
|
|
199
201
|
- lib/kube/cluster/version.rb.erb
|
|
200
202
|
- lib/kube/errors.rb
|