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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 037f1db5928b4637acc72c544a813abff1e86c09d20d62496fd752babba2bc52
4
- data.tar.gz: bd1c9803961947cf117c06cd9fc7a0c68eec31c207277a84a47af3cb513dfd3f
3
+ metadata.gz: 821079f616a7cafa9d2115b32cebda37de37601d9ac116827c7fbcead48de3eb
4
+ data.tar.gz: bb33e6aec68bc2a83c67272d2a2fa73e38234095aefbb686e6b749bbd4add87c
5
5
  SHA512:
6
- metadata.gz: 841bd3e920437edaf8e2abcb1805ceb805166d77596a93b909f9a8ad3ce29284c95bc81f2a93fa81227f2c939d48618cbb4fb95e1114af5944525ce4ef781b97
7
- data.tar.gz: a8cda216e78e795b13232bcbdc6cd934916989bc2ab6c60de069fad664008fa5bf61d2cd5b09df32708bf53678158180e87e8c230a056b9a7f9de720034a7558
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
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- kube_cluster (1.2.1)
4
+ kube_cluster (1.3.1)
5
5
  activesupport (~> 8.0)
6
6
  kube_kubectl (~> 2.0)
7
7
  kube_schema (~> 1.9.2)
@@ -7,16 +7,9 @@ module Kube
7
7
  module Cluster
8
8
  module Standard
9
9
  module CloudNativePg
10
- # A CloudNativePG Cluster CR. Thin wrapper: sets metadata, leaves the
11
- # (large, deployment-specific) spec to the block.
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(name: "postgres", namespace: "cloudnative-pg") {
24
+ .new {
25
+ metadata.name = "postgres"
32
26
  spec.instances = 1
33
27
  spec.storage = { size: "1Gi" }
34
28
  }
@@ -2,6 +2,6 @@
2
2
 
3
3
  module Kube
4
4
  module Cluster
5
- VERSION = "1.2.1"
5
+ VERSION = "1.3.1"
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: 1.2.1
4
+ version: 1.3.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Nathan K