k8s-ruby 0.13.0 → 0.15.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/.expeditor/config.yml +33 -0
- data/.expeditor/update_version.sh +8 -0
- data/.github/workflows/tests.yml +20 -3
- data/Gemfile +2 -0
- data/README.md +2 -0
- data/VERSION +1 -0
- data/docker-compose.yaml +15 -0
- data/k8s-ruby.gemspec +5 -5
- data/lib/k8s/config.rb +4 -1
- data/lib/k8s/resource.rb +1 -1
- data/lib/k8s/ruby/version.rb +1 -1
- metadata +29 -27
- data/Gemfile.lock +0 -117
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: ad7875d61420834647e84ae563ade83f3a0b5c81d8c105c5cf94a15452d3127b
|
|
4
|
+
data.tar.gz: 729cedef48bbb59522d178a9f6f189f9c4a7b20f5a4bfe9292e733f14a31ab7e
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: d900ec75b985d43ebd8b48aff686564a21769b97d0ea63de7af4e9ec5696983bfce4770bc545b18e9c6dfc8e992e143871e54838f82211fc53f4df04d50118ce
|
|
7
|
+
data.tar.gz: de2f4f643bc5a8e631678fcbdcb02d2360c10c429c21e90e726ce76c92e5d3ce8d62c5bf92b9b6acd9e66336e33c0a8f2750d811fceae5fe5f74c19d5ea533d5
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
project:
|
|
2
|
+
alias: k8s-ruby
|
|
3
|
+
|
|
4
|
+
# Slack channel in Chef Software slack to send notifications about build failures, etc
|
|
5
|
+
slack:
|
|
6
|
+
notify_channel:
|
|
7
|
+
- inspec-notify
|
|
8
|
+
|
|
9
|
+
github:
|
|
10
|
+
delete_branch_on_merge: true
|
|
11
|
+
version_tag_format: v{{version}}
|
|
12
|
+
|
|
13
|
+
# pipelines:
|
|
14
|
+
# - verify:
|
|
15
|
+
# trigger: pull_request
|
|
16
|
+
# description: Pull Request validation tests
|
|
17
|
+
|
|
18
|
+
rubygems:
|
|
19
|
+
- k8s-ruby
|
|
20
|
+
|
|
21
|
+
release_branches:
|
|
22
|
+
- main:
|
|
23
|
+
version_constraint: "*"
|
|
24
|
+
|
|
25
|
+
subscriptions:
|
|
26
|
+
- workload: pull_request_merged:{{github_repo}}:{{release_branch}}:*
|
|
27
|
+
actions:
|
|
28
|
+
# we pull the latest tags from `k8s-ruby/k8s-ruby` hence we don't bump version here.
|
|
29
|
+
# But we build and publish gems from here
|
|
30
|
+
- built_in:build_gem
|
|
31
|
+
- workload: project_promoted:{{agent_id}}:*
|
|
32
|
+
actions:
|
|
33
|
+
- built_in:publish_rubygems
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
#!/bin/bash
|
|
2
|
+
#
|
|
3
|
+
# After a PR merge, Chef Expeditor will bump the PATCH version in the VERSION file.
|
|
4
|
+
# It then executes this file to update any other files/components with that new version.
|
|
5
|
+
|
|
6
|
+
set -evx
|
|
7
|
+
|
|
8
|
+
sed -i -r "s/VERSION = \".*\"/VERSION = \"$(cat VERSION)\"/" lib/k8s/ruby/version.rb
|
data/.github/workflows/tests.yml
CHANGED
|
@@ -11,16 +11,33 @@ jobs:
|
|
|
11
11
|
runs-on: ubuntu-latest
|
|
12
12
|
steps:
|
|
13
13
|
- uses: actions/checkout@v3
|
|
14
|
-
- run: docker-compose
|
|
14
|
+
- run: docker-compose build rspec-2.6
|
|
15
|
+
- run: docker-compose run rspec-2.6
|
|
15
16
|
|
|
16
17
|
build-2-7:
|
|
17
18
|
runs-on: ubuntu-latest
|
|
18
19
|
steps:
|
|
19
20
|
- uses: actions/checkout@v3
|
|
20
|
-
- run: docker-compose
|
|
21
|
+
- run: docker-compose build rspec-2.7
|
|
22
|
+
- run: docker-compose run rspec-2.7
|
|
21
23
|
|
|
22
24
|
build-3-0:
|
|
23
25
|
runs-on: ubuntu-latest
|
|
24
26
|
steps:
|
|
25
27
|
- uses: actions/checkout@v3
|
|
26
|
-
- run: docker-compose
|
|
28
|
+
- run: docker-compose build rspec-3.0
|
|
29
|
+
- run: docker-compose run rspec-3.0
|
|
30
|
+
|
|
31
|
+
build-3-1:
|
|
32
|
+
runs-on: ubuntu-latest
|
|
33
|
+
steps:
|
|
34
|
+
- uses: actions/checkout@v3
|
|
35
|
+
- run: docker-compose build rspec-3.1
|
|
36
|
+
- run: docker-compose run rspec-3.1
|
|
37
|
+
|
|
38
|
+
build-3-2:
|
|
39
|
+
runs-on: ubuntu-latest
|
|
40
|
+
steps:
|
|
41
|
+
- uses: actions/checkout@v3
|
|
42
|
+
- run: docker-compose build rspec-3.2
|
|
43
|
+
- run: docker-compose run rspec-3.2
|
data/Gemfile
CHANGED
data/README.md
CHANGED
data/VERSION
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
0.15.1
|
data/docker-compose.yaml
CHANGED
|
@@ -20,3 +20,18 @@ services:
|
|
|
20
20
|
BASE_IMAGE: ruby:3.0
|
|
21
21
|
volumes:
|
|
22
22
|
- .:/app
|
|
23
|
+
rspec-3.1:
|
|
24
|
+
build:
|
|
25
|
+
context: .
|
|
26
|
+
args:
|
|
27
|
+
BASE_IMAGE: ruby:3.1
|
|
28
|
+
volumes:
|
|
29
|
+
- .:/app
|
|
30
|
+
rspec-3.2:
|
|
31
|
+
build:
|
|
32
|
+
context: .
|
|
33
|
+
args:
|
|
34
|
+
BASE_IMAGE: ruby:3.2
|
|
35
|
+
volumes:
|
|
36
|
+
- .:/app
|
|
37
|
+
entrypoint: bundle exec rspec
|
data/k8s-ruby.gemspec
CHANGED
|
@@ -21,17 +21,17 @@ Gem::Specification.new do |spec|
|
|
|
21
21
|
spec.bindir = "bin"
|
|
22
22
|
spec.executables = []
|
|
23
23
|
spec.require_paths = ["lib"]
|
|
24
|
-
spec.required_ruby_version = [">= 2.4", "
|
|
24
|
+
spec.required_ruby_version = spec.required_ruby_version = [">= 2.4", "<= 3.2.2"]
|
|
25
25
|
|
|
26
26
|
spec.add_runtime_dependency "excon", "~> 0.71"
|
|
27
|
-
spec.add_runtime_dependency "dry-struct"
|
|
28
|
-
spec.add_runtime_dependency "dry-types"
|
|
29
|
-
spec.add_runtime_dependency "dry-configurable"
|
|
27
|
+
spec.add_runtime_dependency "dry-struct"
|
|
28
|
+
spec.add_runtime_dependency "dry-types"
|
|
29
|
+
spec.add_runtime_dependency "dry-configurable"
|
|
30
30
|
spec.add_runtime_dependency "recursive-open-struct", "~> 1.1.3"
|
|
31
31
|
spec.add_runtime_dependency "hashdiff", "~> 1.0.0"
|
|
32
32
|
spec.add_runtime_dependency "jsonpath", "~> 0.9.5"
|
|
33
33
|
spec.add_runtime_dependency "yajl-ruby", "~> 1.4.0"
|
|
34
|
-
spec.add_runtime_dependency "yaml-
|
|
34
|
+
spec.add_runtime_dependency "yaml-safe_load_stream3"
|
|
35
35
|
|
|
36
36
|
spec.add_development_dependency "bundler", ">= 1.17", "< 3.0"
|
|
37
37
|
spec.add_development_dependency "rake", ">= 12.3.3"
|
data/lib/k8s/config.rb
CHANGED
|
@@ -111,7 +111,10 @@ module K8s
|
|
|
111
111
|
# @param path [String]
|
|
112
112
|
# @return [K8s::Config]
|
|
113
113
|
def self.load_file(path)
|
|
114
|
-
new(YAML.safe_load(File.read(File.expand_path(path)),
|
|
114
|
+
new(YAML.safe_load(File.read(File.expand_path(path)),
|
|
115
|
+
permitted_classes: [Time, DateTime, Date],
|
|
116
|
+
permitted_symbols: [],
|
|
117
|
+
aliases: true))
|
|
115
118
|
end
|
|
116
119
|
|
|
117
120
|
# Loads configuration files listed in KUBE_CONFIG environment variable and
|
data/lib/k8s/resource.rb
CHANGED
|
@@ -23,7 +23,7 @@ module K8s
|
|
|
23
23
|
# @param filename [String] file path
|
|
24
24
|
# @return [K8s::Resource]
|
|
25
25
|
def self.from_file(filename)
|
|
26
|
-
new(YAML.safe_load(File.read(filename), [], [], true, filename))
|
|
26
|
+
new(YAML.safe_load(File.read(filename), permitted_classes: [], permitted_symbols: [], aliases: true, filename: filename))
|
|
27
27
|
end
|
|
28
28
|
|
|
29
29
|
# @param path [String] file path
|
data/lib/k8s/ruby/version.rb
CHANGED
metadata
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: k8s-ruby
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.
|
|
4
|
+
version: 0.15.1
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- rdx.net
|
|
8
8
|
- Kontena, Inc.
|
|
9
|
-
autorequire:
|
|
9
|
+
autorequire:
|
|
10
10
|
bindir: bin
|
|
11
11
|
cert_chain: []
|
|
12
|
-
date:
|
|
12
|
+
date: 2023-08-30 00:00:00.000000000 Z
|
|
13
13
|
dependencies:
|
|
14
14
|
- !ruby/object:Gem::Dependency
|
|
15
15
|
name: excon
|
|
@@ -29,44 +29,44 @@ dependencies:
|
|
|
29
29
|
name: dry-struct
|
|
30
30
|
requirement: !ruby/object:Gem::Requirement
|
|
31
31
|
requirements:
|
|
32
|
-
- - "
|
|
32
|
+
- - ">="
|
|
33
33
|
- !ruby/object:Gem::Version
|
|
34
|
-
version:
|
|
34
|
+
version: '0'
|
|
35
35
|
type: :runtime
|
|
36
36
|
prerelease: false
|
|
37
37
|
version_requirements: !ruby/object:Gem::Requirement
|
|
38
38
|
requirements:
|
|
39
|
-
- - "
|
|
39
|
+
- - ">="
|
|
40
40
|
- !ruby/object:Gem::Version
|
|
41
|
-
version:
|
|
41
|
+
version: '0'
|
|
42
42
|
- !ruby/object:Gem::Dependency
|
|
43
43
|
name: dry-types
|
|
44
44
|
requirement: !ruby/object:Gem::Requirement
|
|
45
45
|
requirements:
|
|
46
|
-
- - "
|
|
46
|
+
- - ">="
|
|
47
47
|
- !ruby/object:Gem::Version
|
|
48
|
-
version:
|
|
48
|
+
version: '0'
|
|
49
49
|
type: :runtime
|
|
50
50
|
prerelease: false
|
|
51
51
|
version_requirements: !ruby/object:Gem::Requirement
|
|
52
52
|
requirements:
|
|
53
|
-
- - "
|
|
53
|
+
- - ">="
|
|
54
54
|
- !ruby/object:Gem::Version
|
|
55
|
-
version:
|
|
55
|
+
version: '0'
|
|
56
56
|
- !ruby/object:Gem::Dependency
|
|
57
57
|
name: dry-configurable
|
|
58
58
|
requirement: !ruby/object:Gem::Requirement
|
|
59
59
|
requirements:
|
|
60
|
-
- - "
|
|
60
|
+
- - ">="
|
|
61
61
|
- !ruby/object:Gem::Version
|
|
62
|
-
version: 0
|
|
62
|
+
version: '0'
|
|
63
63
|
type: :runtime
|
|
64
64
|
prerelease: false
|
|
65
65
|
version_requirements: !ruby/object:Gem::Requirement
|
|
66
66
|
requirements:
|
|
67
|
-
- - "
|
|
67
|
+
- - ">="
|
|
68
68
|
- !ruby/object:Gem::Version
|
|
69
|
-
version: 0
|
|
69
|
+
version: '0'
|
|
70
70
|
- !ruby/object:Gem::Dependency
|
|
71
71
|
name: recursive-open-struct
|
|
72
72
|
requirement: !ruby/object:Gem::Requirement
|
|
@@ -124,19 +124,19 @@ dependencies:
|
|
|
124
124
|
- !ruby/object:Gem::Version
|
|
125
125
|
version: 1.4.0
|
|
126
126
|
- !ruby/object:Gem::Dependency
|
|
127
|
-
name: yaml-
|
|
127
|
+
name: yaml-safe_load_stream3
|
|
128
128
|
requirement: !ruby/object:Gem::Requirement
|
|
129
129
|
requirements:
|
|
130
|
-
- - "
|
|
130
|
+
- - ">="
|
|
131
131
|
- !ruby/object:Gem::Version
|
|
132
|
-
version: 0
|
|
132
|
+
version: '0'
|
|
133
133
|
type: :runtime
|
|
134
134
|
prerelease: false
|
|
135
135
|
version_requirements: !ruby/object:Gem::Requirement
|
|
136
136
|
requirements:
|
|
137
|
-
- - "
|
|
137
|
+
- - ">="
|
|
138
138
|
- !ruby/object:Gem::Version
|
|
139
|
-
version: 0
|
|
139
|
+
version: '0'
|
|
140
140
|
- !ruby/object:Gem::Dependency
|
|
141
141
|
name: bundler
|
|
142
142
|
requirement: !ruby/object:Gem::Requirement
|
|
@@ -227,13 +227,15 @@ dependencies:
|
|
|
227
227
|
- - "~>"
|
|
228
228
|
- !ruby/object:Gem::Version
|
|
229
229
|
version: '11.1'
|
|
230
|
-
description:
|
|
230
|
+
description:
|
|
231
231
|
email:
|
|
232
232
|
- firstname.lastname@rdx.net
|
|
233
233
|
executables: []
|
|
234
234
|
extensions: []
|
|
235
235
|
extra_rdoc_files: []
|
|
236
236
|
files:
|
|
237
|
+
- ".expeditor/config.yml"
|
|
238
|
+
- ".expeditor/update_version.sh"
|
|
237
239
|
- ".github/workflows/tests.yml"
|
|
238
240
|
- ".gitignore"
|
|
239
241
|
- ".rspec"
|
|
@@ -241,10 +243,10 @@ files:
|
|
|
241
243
|
- ".rubocop.yml"
|
|
242
244
|
- Dockerfile
|
|
243
245
|
- Gemfile
|
|
244
|
-
- Gemfile.lock
|
|
245
246
|
- LICENSE
|
|
246
247
|
- README.md
|
|
247
248
|
- Rakefile
|
|
249
|
+
- VERSION
|
|
248
250
|
- docker-compose.yaml
|
|
249
251
|
- entrypoint.sh
|
|
250
252
|
- k8s-ruby.gemspec
|
|
@@ -273,7 +275,7 @@ homepage: https://github.com/k8s-ruby/k8s-ruby
|
|
|
273
275
|
licenses:
|
|
274
276
|
- Apache-2.0
|
|
275
277
|
metadata: {}
|
|
276
|
-
post_install_message:
|
|
278
|
+
post_install_message:
|
|
277
279
|
rdoc_options: []
|
|
278
280
|
require_paths:
|
|
279
281
|
- lib
|
|
@@ -282,17 +284,17 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
|
282
284
|
- - ">="
|
|
283
285
|
- !ruby/object:Gem::Version
|
|
284
286
|
version: '2.4'
|
|
285
|
-
- - "
|
|
287
|
+
- - "<="
|
|
286
288
|
- !ruby/object:Gem::Version
|
|
287
|
-
version:
|
|
289
|
+
version: 3.2.2
|
|
288
290
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
|
289
291
|
requirements:
|
|
290
292
|
- - ">="
|
|
291
293
|
- !ruby/object:Gem::Version
|
|
292
294
|
version: '0'
|
|
293
295
|
requirements: []
|
|
294
|
-
rubygems_version: 3.
|
|
295
|
-
signing_key:
|
|
296
|
+
rubygems_version: 3.1.4
|
|
297
|
+
signing_key:
|
|
296
298
|
specification_version: 4
|
|
297
299
|
summary: Kubernetes client library for Ruby
|
|
298
300
|
test_files: []
|
data/Gemfile.lock
DELETED
|
@@ -1,117 +0,0 @@
|
|
|
1
|
-
PATH
|
|
2
|
-
remote: .
|
|
3
|
-
specs:
|
|
4
|
-
k8s-ruby (0.13.0)
|
|
5
|
-
dry-configurable (~> 0.13.0)
|
|
6
|
-
dry-struct (<= 1.6.0)
|
|
7
|
-
dry-types (<= 1.7.0)
|
|
8
|
-
excon (~> 0.71)
|
|
9
|
-
hashdiff (~> 1.0.0)
|
|
10
|
-
jsonpath (~> 0.9.5)
|
|
11
|
-
recursive-open-struct (~> 1.1.3)
|
|
12
|
-
yajl-ruby (~> 1.4.0)
|
|
13
|
-
yaml-safe_load_stream2 (~> 0.1.1)
|
|
14
|
-
|
|
15
|
-
GEM
|
|
16
|
-
remote: https://rubygems.org/
|
|
17
|
-
specs:
|
|
18
|
-
addressable (2.8.1)
|
|
19
|
-
public_suffix (>= 2.0.2, < 6.0)
|
|
20
|
-
ast (2.4.2)
|
|
21
|
-
byebug (11.1.3)
|
|
22
|
-
concurrent-ruby (1.1.10)
|
|
23
|
-
crack (0.4.5)
|
|
24
|
-
rexml
|
|
25
|
-
diff-lcs (1.5.0)
|
|
26
|
-
dry-configurable (0.13.0)
|
|
27
|
-
concurrent-ruby (~> 1.0)
|
|
28
|
-
dry-core (~> 0.6)
|
|
29
|
-
dry-container (0.11.0)
|
|
30
|
-
concurrent-ruby (~> 1.0)
|
|
31
|
-
dry-core (0.9.1)
|
|
32
|
-
concurrent-ruby (~> 1.0)
|
|
33
|
-
zeitwerk (~> 2.6)
|
|
34
|
-
dry-inflector (0.3.0)
|
|
35
|
-
dry-logic (1.3.0)
|
|
36
|
-
concurrent-ruby (~> 1.0)
|
|
37
|
-
dry-core (~> 0.9, >= 0.9)
|
|
38
|
-
zeitwerk (~> 2.6)
|
|
39
|
-
dry-struct (1.5.2)
|
|
40
|
-
dry-core (~> 0.9, >= 0.9)
|
|
41
|
-
dry-types (~> 1.6)
|
|
42
|
-
ice_nine (~> 0.11)
|
|
43
|
-
zeitwerk (~> 2.6)
|
|
44
|
-
dry-types (1.6.1)
|
|
45
|
-
concurrent-ruby (~> 1.0)
|
|
46
|
-
dry-container (~> 0.3)
|
|
47
|
-
dry-core (~> 0.9, >= 0.9)
|
|
48
|
-
dry-inflector (~> 0.1, >= 0.1.2)
|
|
49
|
-
dry-logic (~> 1.3, >= 1.3)
|
|
50
|
-
zeitwerk (~> 2.6)
|
|
51
|
-
excon (0.94.0)
|
|
52
|
-
hashdiff (1.0.1)
|
|
53
|
-
ice_nine (0.11.2)
|
|
54
|
-
jsonpath (0.9.9)
|
|
55
|
-
multi_json
|
|
56
|
-
to_regexp (~> 0.2.1)
|
|
57
|
-
multi_json (1.15.0)
|
|
58
|
-
parallel (1.22.1)
|
|
59
|
-
parser (3.1.2.1)
|
|
60
|
-
ast (~> 2.4.1)
|
|
61
|
-
public_suffix (5.0.0)
|
|
62
|
-
rainbow (3.1.1)
|
|
63
|
-
rake (13.0.6)
|
|
64
|
-
recursive-open-struct (1.1.3)
|
|
65
|
-
regexp_parser (2.6.1)
|
|
66
|
-
rexml (3.2.5)
|
|
67
|
-
rspec (3.12.0)
|
|
68
|
-
rspec-core (~> 3.12.0)
|
|
69
|
-
rspec-expectations (~> 3.12.0)
|
|
70
|
-
rspec-mocks (~> 3.12.0)
|
|
71
|
-
rspec-core (3.12.0)
|
|
72
|
-
rspec-support (~> 3.12.0)
|
|
73
|
-
rspec-expectations (3.12.0)
|
|
74
|
-
diff-lcs (>= 1.2.0, < 2.0)
|
|
75
|
-
rspec-support (~> 3.12.0)
|
|
76
|
-
rspec-mocks (3.12.0)
|
|
77
|
-
diff-lcs (>= 1.2.0, < 2.0)
|
|
78
|
-
rspec-support (~> 3.12.0)
|
|
79
|
-
rspec-support (3.12.0)
|
|
80
|
-
rubocop (0.93.1)
|
|
81
|
-
parallel (~> 1.10)
|
|
82
|
-
parser (>= 2.7.1.5)
|
|
83
|
-
rainbow (>= 2.2.2, < 4.0)
|
|
84
|
-
regexp_parser (>= 1.8)
|
|
85
|
-
rexml
|
|
86
|
-
rubocop-ast (>= 0.6.0)
|
|
87
|
-
ruby-progressbar (~> 1.7)
|
|
88
|
-
unicode-display_width (>= 1.4.0, < 2.0)
|
|
89
|
-
rubocop-ast (1.23.0)
|
|
90
|
-
parser (>= 3.1.1.0)
|
|
91
|
-
ruby-progressbar (1.11.0)
|
|
92
|
-
to_regexp (0.2.1)
|
|
93
|
-
unicode-display_width (1.8.0)
|
|
94
|
-
webmock (3.6.2)
|
|
95
|
-
addressable (>= 2.3.6)
|
|
96
|
-
crack (>= 0.3.2)
|
|
97
|
-
hashdiff (>= 0.4.0, < 2.0.0)
|
|
98
|
-
yajl-ruby (1.4.3)
|
|
99
|
-
yaml-safe_load_stream2 (0.1.1)
|
|
100
|
-
zeitwerk (2.6.6)
|
|
101
|
-
|
|
102
|
-
PLATFORMS
|
|
103
|
-
aarch64-linux
|
|
104
|
-
arm64-darwin-21
|
|
105
|
-
x86_64-darwin-21
|
|
106
|
-
|
|
107
|
-
DEPENDENCIES
|
|
108
|
-
bundler (>= 1.17, < 3.0)
|
|
109
|
-
byebug (~> 11.1)
|
|
110
|
-
k8s-ruby!
|
|
111
|
-
rake (>= 12.3.3)
|
|
112
|
-
rspec (~> 3.7)
|
|
113
|
-
rubocop (~> 0.82)
|
|
114
|
-
webmock (~> 3.6.2)
|
|
115
|
-
|
|
116
|
-
BUNDLED WITH
|
|
117
|
-
2.3.26
|