kube_cluster 1.0.0 → 1.0.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: 462551e605fb3e1e675b9e6fbf15275b5e47e8d92182a1bb78e6a4bff5aa1ec2
4
- data.tar.gz: 0cd151a210e51ffd9143b1a16686c7b4b01e865e5086d62492294f0f764cb1ba
3
+ metadata.gz: cff2cff26d95919ba88b763d17c91b4fd48b024e038bf5bcbaba269fbf549f6b
4
+ data.tar.gz: cb2b14a5cc86d623c2871517771f7b4e3ecfad529d8ac48093e573065fc80f9d
5
5
  SHA512:
6
- metadata.gz: 16c8211e12773eb6ad277a73d9d3ff56c2111e82077a30dfa2ff527c4c2af9d1259bedef44c42f8528dc76c72f44d7c5aa6f6fa434984383f8ccf78d06551d2f
7
- data.tar.gz: 10330e17dad9bf19a5e7f96d6dfb8fa007f6c584d21a53c2e4e143ea96e145911995c0be166c959d6007a23a9ca97642e82bc021868be802488ced36d7a3dc28
6
+ metadata.gz: b6333f789ef8a88beaef674cc32752a42a885a300f5d6bb5ab09f14c2dcab973f111e5ccb20f360605177e24beb3eac69769cd2e85269e98907c162d217adf25
7
+ data.tar.gz: 2cf30bce0097d24f98a20691b99a3f47514581dde2642d4ec2d1dd04c0cf4daf5c660befdbf511976728e084a0083ec21eb283edd5b5c43b9f593946cbfb9204
data/CHANGELOG.md CHANGED
@@ -5,6 +5,14 @@ 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.0.1] - 2026-07-13
9
+
10
+ ### Added
11
+ - `require "kube/cluster/standard"` — an aggregator that loads the entire
12
+ Standard tree at once, for projects that use most of it. The tree remains
13
+ opt-in (`require "kube/cluster"` alone does not load it), so resolve overrides
14
+ still take effect. The core auto-require now also skips this aggregator file.
15
+
8
16
  ## [1.0.0] - 2026-07-13
9
17
 
10
18
  ### Added
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- kube_cluster (1.0.0)
4
+ kube_cluster (1.0.1)
5
5
  activesupport (~> 8.0)
6
6
  kube_kubectl (~> 2.0)
7
7
  kube_schema (~> 1.9.2)
@@ -0,0 +1,13 @@
1
+ # frozen_string_literal: true
2
+ #
3
+ # Opt-in loader for the whole Standard tree.
4
+ #
5
+ # `require "kube/cluster"` deliberately does NOT auto-load the Standard classes
6
+ # (so resolve overrides can be configured before they bind their superclasses).
7
+ # Requiring this file pulls in every Standard class at once — the convenient
8
+ # "give me all of them" entry point for projects that use most of the tree.
9
+ require "kube/cluster"
10
+
11
+ Dir.glob("#{__dir__}/standard/**/*.rb").sort.each do |path|
12
+ require path
13
+ end
@@ -2,6 +2,6 @@
2
2
 
3
3
  module Kube
4
4
  module Cluster
5
- VERSION = "1.0.0"
5
+ VERSION = "1.0.1"
6
6
  end
7
7
  end
data/lib/kube/cluster.rb CHANGED
@@ -142,11 +142,12 @@ Kube::Cluster.config do
142
142
  resolve "PersesGlobalDatasource", to: "perses.dev/v1alpha2/PersesGlobalDatasource"
143
143
  end
144
144
 
145
- standard_dir = "#{__dir__}/cluster/standard/"
145
+ standard_root = "#{__dir__}/cluster/standard"
146
146
  Dir.glob("#{__dir__}/cluster/**/*.rb").sort.each do |path|
147
- # The standard/ tree is opt-in: projects require the specific classes they
148
- # use, so that resolve overrides can be configured beforehand.
149
- next if path.start_with?(standard_dir)
147
+ # The standard/ tree is opt-in via `require "kube/cluster/standard"` or a
148
+ # specific class — so that resolve overrides can be configured beforehand.
149
+ # Skip both the tree and its aggregator loader (cluster/standard.rb).
150
+ next if path == "#{standard_root}.rb" || path.start_with?("#{standard_root}/")
150
151
 
151
152
  require path
152
153
  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.0.0
4
+ version: 1.0.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Nathan K
@@ -198,6 +198,7 @@ files:
198
198
  - lib/kube/cluster/resource/extensions/custom_resource_definition.rb
199
199
  - lib/kube/cluster/resource/persistence.rb
200
200
  - lib/kube/cluster/script_command.rb
201
+ - lib/kube/cluster/standard.rb
201
202
  - lib/kube/cluster/standard/cdi/data_volume.rb
202
203
  - lib/kube/cluster/standard/cloud_native_pg/cluster.rb
203
204
  - lib/kube/cluster/standard/cloud_native_pg/database_with_external_secret.rb