kube_cluster 1.2.1 → 1.3.1
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/CHANGELOG.md +19 -0
- data/Gemfile.lock +1 -1
- data/lib/kube/cluster/standard/cloud_native_pg/cluster.rb +4 -10
- data/lib/kube/cluster/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 821079f616a7cafa9d2115b32cebda37de37601d9ac116827c7fbcead48de3eb
|
|
4
|
+
data.tar.gz: bb33e6aec68bc2a83c67272d2a2fa73e38234095aefbb686e6b749bbd4add87c
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 070b4bdf62bbf662bfa99eb55a464335d9666734ef3985f08949b072c78aa548cd51d0527c9cee62d26ca8839df8d2ddafa285b0fb44f0b346268174aab78ec8
|
|
7
|
+
data.tar.gz: 28f9483b8a10994f19f485c9e55b33e464541742842eff8c5791218ff294435f6ce55f59921aa9eb5c8725bd456d8a63d74be2f39c25d88c46e8601295829f13
|
data/CHANGELOG.md
CHANGED
|
@@ -5,6 +5,25 @@ All notable changes to this project are documented in this file.
|
|
|
5
5
|
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/),
|
|
6
6
|
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
|
|
7
7
|
|
|
8
|
+
## [1.3.1] - 2026-07-13
|
|
9
|
+
|
|
10
|
+
### Changed
|
|
11
|
+
- `Standard::CloudNativePg::Cluster` is now the bare named `Cluster` CR subclass
|
|
12
|
+
(resolved to `postgresql.cnpg.io/v1/Cluster`); the whole spec is supplied via
|
|
13
|
+
the block.
|
|
14
|
+
|
|
15
|
+
### Removed
|
|
16
|
+
- `Standard::CloudNativePg::PostgresCluster` (shipped in 1.3.0) — it baked in a
|
|
17
|
+
specific deployment's config, which belongs at the call site, not the library.
|
|
18
|
+
|
|
19
|
+
## [1.3.0] - 2026-07-13
|
|
20
|
+
|
|
21
|
+
### Added
|
|
22
|
+
- `Standard::CloudNativePg::PostgresCluster` — the standard single-node
|
|
23
|
+
PostgreSQL cluster (custom image, HA replication slots, logical WAL,
|
|
24
|
+
barman-cloud WAL archiving) preconfigured; deployment-specific spec (managed
|
|
25
|
+
roles, etc.) via the block.
|
|
26
|
+
|
|
8
27
|
## [1.2.1] - 2026-07-13
|
|
9
28
|
|
|
10
29
|
### Added
|
data/Gemfile.lock
CHANGED
|
@@ -7,16 +7,9 @@ module Kube
|
|
|
7
7
|
module Cluster
|
|
8
8
|
module Standard
|
|
9
9
|
module CloudNativePg
|
|
10
|
-
# A CloudNativePG Cluster CR
|
|
11
|
-
# (large, deployment-specific) spec
|
|
10
|
+
# A CloudNativePG Cluster CR, resolved to postgresql.cnpg.io/v1/Cluster.
|
|
11
|
+
# The (large, deployment-specific) spec is supplied via the block.
|
|
12
12
|
class Cluster < Kube::Cluster["Cluster"]
|
|
13
|
-
def initialize(name: "postgres", namespace: nil, &block)
|
|
14
|
-
super() {
|
|
15
|
-
metadata.name = name
|
|
16
|
-
metadata.namespace = namespace if namespace
|
|
17
|
-
instance_exec(&block) if block
|
|
18
|
-
}
|
|
19
|
-
end
|
|
20
13
|
end
|
|
21
14
|
end
|
|
22
15
|
end
|
|
@@ -28,7 +21,8 @@ __END__
|
|
|
28
21
|
describe "CloudNativePg::Cluster" do
|
|
29
22
|
it "initializes without error" do
|
|
30
23
|
Kube::Cluster::Standard::CloudNativePg::Cluster
|
|
31
|
-
.new
|
|
24
|
+
.new {
|
|
25
|
+
metadata.name = "postgres"
|
|
32
26
|
spec.instances = 1
|
|
33
27
|
spec.storage = { size: "1Gi" }
|
|
34
28
|
}
|
data/lib/kube/cluster/version.rb
CHANGED