kube_schema 1.3.5 → 1.3.7
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/Gemfile.lock +1 -1
- data/bin/copy-schemas-over +1 -0
- data/lib/kube/monkey_patches.rb +13 -0
- data/lib/kube/schema/version.rb +1 -1
- data/schemas/kubevirt-definitions.json +9080 -0
- metadata +2 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 62b3e8a58b6c7bddc3a809f00aea499f1661830b4d3837729dfafe4b0c3c78f8
|
|
4
|
+
data.tar.gz: '0191485897891f2e9dbcf1511cbc85635959b2be77a82fccdf250dc821a452cc'
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 70fdc2c264e203d7375eff2c3d2a15936c4299ede1f78b19b3e88e7da8e0782c830ced154a746ca4272e23c69ba02943d1457b59dbc53a2b99e4a3708c20db37
|
|
7
|
+
data.tar.gz: 9eeeef3be619d50a329493e7615c5e94b6408c1ce871cfd10923cab5862ba9500bd979302283556de4939c8fb4c023fce988598ffd6b0d10c0921c3e8c14388f
|
data/Gemfile.lock
CHANGED
data/bin/copy-schemas-over
CHANGED
|
@@ -3,6 +3,7 @@ mkdir -p schemas
|
|
|
3
3
|
|
|
4
4
|
git show schemas2:data/crds/05-crd-only-definitions.json > schemas/crd-definitions.json
|
|
5
5
|
git show schemas2:data/crds/07-loft-definitions.json > schemas/loft-definitions.json
|
|
6
|
+
git show schemas2:data/crds/08-kubevirt-definitions.json > schemas/kubevirt-definitions.json
|
|
6
7
|
|
|
7
8
|
git ls-tree --name-only schemas2 data/k8s.io/ | while read -r path; do
|
|
8
9
|
git show "schemas2:$path" > "schemas/$(basename "$path")"
|
data/lib/kube/monkey_patches.rb
CHANGED
|
@@ -20,4 +20,17 @@ class Hash
|
|
|
20
20
|
#def respond_to_missing(name, _priv = false)
|
|
21
21
|
# name.to_s.end_with?("=") || key?(name.to_sym)
|
|
22
22
|
#end
|
|
23
|
+
|
|
24
|
+
# Build a Hash with autovivification via a block DSL.
|
|
25
|
+
#
|
|
26
|
+
# Hash.vivify {
|
|
27
|
+
# metadata.name = "web"
|
|
28
|
+
# spec.replicas = 3
|
|
29
|
+
# spec.selector.matchLabels.app = "web"
|
|
30
|
+
# }
|
|
31
|
+
# # => { metadata: { name: "web" }, spec: { replicas: 3, selector: { matchLabels: { app: "web" } } } }
|
|
32
|
+
#
|
|
33
|
+
def self.vivify(&block)
|
|
34
|
+
new.tap { |h| h.instance_exec(&block) }
|
|
35
|
+
end
|
|
23
36
|
end
|