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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 8f08a431382eaf0cccfb51c9d2bfd46428eef571da2d21bb147fc04168cc12ee
4
- data.tar.gz: 98af3d4b4d90aeef68a38b59240a3d966c8ae421e8d73a3e191f957c9c34a42c
3
+ metadata.gz: 4cfe0887eeac1f4f52fc6f4f9730e5db9dacc66e132765301380d2a16933ebe7
4
+ data.tar.gz: 9ab9e7350e92274bc4f4ba73f5ffc025d18035a87fee5ed2a1c1d29e1e9dfc5b
5
5
  SHA512:
6
- metadata.gz: 9eeeda7bcf98afac44f299b99d14d688b622cbe759725d5a0142c6c19be88cee89900584e2210de87e66acfc521db88d4025f3722fc56ebd362ae0b46ecd648d
7
- data.tar.gz: 3c13178ef039b611ecddeded6a9ae35a9e3063299fe850e9d481a4ffe6c9f68fb7aa96b86d5749dd28cd4be32208b3575d9230cc4628840b191406656fd90597
6
+ metadata.gz: 4d2f96411424735612533763d8e79430bcc52792399732de0b06ab9e9a5f07e3ec3329ffd04a479353d050753e404b6b0d66dbb920a26cc2f985a066dad10751
7
+ data.tar.gz: aff4fe39dabe60aee449c15e57656c7deaf33e73de8bbbc5a046186bec2fe6c79370e024ae86a4acb8f5b00218515a41bbf5fcf0468a56a8352474a8b6c5885f
data/.gitignore CHANGED
@@ -6,3 +6,5 @@
6
6
  /tmp/
7
7
  /vendor/bundle
8
8
  /kubeconfig.yaml
9
+ *.swo
10
+ *.swp
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- kube_cluster (0.5.3)
4
+ kube_cluster (0.6.0)
5
5
  kube_kubectl (~> 2.0)
6
6
  kube_schema (~> 1.5)
7
7
  scampi (~> 0.1)
@@ -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
@@ -0,0 +1,17 @@
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
+ end
11
+ end
12
+ end
13
+ end
14
+
15
+ test do
16
+ # no op
17
+ end
@@ -2,6 +2,6 @@
2
2
 
3
3
  module Kube
4
4
  module Cluster
5
- VERSION = "0.5.4"
5
+ VERSION = "0.6.0"
6
6
  end
7
7
  end
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.5.4
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