helmsnap 1.4.1 → 2.0.2
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/.rubocop.yml +1 -1
- data/Dockerfile +2 -2
- data/Gemfile.lock +82 -60
- data/lib/helmsnap/args_parser.rb +1 -1
- data/lib/helmsnap/setup_dependencies.rb +0 -1
- data/lib/helmsnap/version.rb +1 -1
- data/lib/helmsnap.rb +2 -3
- metadata +8 -13
- data/helmsnap.gemspec +0 -34
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 7f9fb7494bffb611934e0afa9a3f9c435e9941180def0f4e874574302dae51db
|
|
4
|
+
data.tar.gz: 1bd0702017bb67f035726e6fef261106a5d35cdf87a7a63829234bec448e8a9c
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: d919619d68698df294fc09711396c3d2c3b2fc8e1047b84e46bf9646a1ab6840332ff8cd081c78f69932ebe4568810edcfe85569e4f9fe16c3fca125dfaff896
|
|
7
|
+
data.tar.gz: 877afa2959baf3adbfad09e425e92fd8bb0cb2d43b03919c962f295a5a4b47002f594171faaf6c2b9592bdc6b53bcded96f867183ce183293bcadb89736b0a9a
|
data/.rubocop.yml
CHANGED
data/Dockerfile
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
FROM alpine/helm:
|
|
1
|
+
FROM alpine/helm:4
|
|
2
2
|
|
|
3
3
|
RUN apk add --update --no-cache ruby git colordiff
|
|
4
4
|
|
|
5
5
|
WORKDIR /wd
|
|
6
6
|
|
|
7
|
-
COPY --from=ghcr.io/helmfile/helmfile:
|
|
7
|
+
COPY --from=ghcr.io/helmfile/helmfile:v1.5.2 /usr/local/bin/helmfile /usr/local/bin/helmfile
|
|
8
8
|
COPY . .
|
|
9
9
|
|
|
10
10
|
RUN gem install colorize && gem build && gem install helmsnap --local
|
data/Gemfile.lock
CHANGED
|
@@ -1,104 +1,126 @@
|
|
|
1
1
|
PATH
|
|
2
2
|
remote: .
|
|
3
3
|
specs:
|
|
4
|
-
helmsnap (
|
|
5
|
-
colorize
|
|
4
|
+
helmsnap (2.0.2)
|
|
5
|
+
colorize (~> 1.1)
|
|
6
6
|
|
|
7
7
|
GEM
|
|
8
8
|
remote: https://rubygems.org/
|
|
9
9
|
specs:
|
|
10
|
-
activesupport (
|
|
10
|
+
activesupport (8.1.3)
|
|
11
11
|
base64
|
|
12
12
|
bigdecimal
|
|
13
|
-
concurrent-ruby (~> 1.0, >= 1.
|
|
13
|
+
concurrent-ruby (~> 1.0, >= 1.3.1)
|
|
14
14
|
connection_pool (>= 2.2.5)
|
|
15
15
|
drb
|
|
16
16
|
i18n (>= 1.6, < 2)
|
|
17
|
+
json
|
|
18
|
+
logger (>= 1.4.2)
|
|
17
19
|
minitest (>= 5.1)
|
|
18
|
-
|
|
19
|
-
tzinfo (~> 2.0)
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
20
|
+
securerandom (>= 0.3)
|
|
21
|
+
tzinfo (~> 2.0, >= 2.0.5)
|
|
22
|
+
uri (>= 0.13.1)
|
|
23
|
+
ast (2.4.3)
|
|
24
|
+
base64 (0.3.0)
|
|
25
|
+
bigdecimal (4.1.2)
|
|
23
26
|
coderay (1.1.3)
|
|
24
27
|
colorize (1.1.0)
|
|
25
|
-
concurrent-ruby (1.3.
|
|
26
|
-
connection_pool (
|
|
27
|
-
diff-lcs (1.
|
|
28
|
-
drb (2.2.
|
|
29
|
-
i18n (1.14.
|
|
28
|
+
concurrent-ruby (1.3.6)
|
|
29
|
+
connection_pool (3.0.2)
|
|
30
|
+
diff-lcs (1.6.2)
|
|
31
|
+
drb (2.2.3)
|
|
32
|
+
i18n (1.14.8)
|
|
30
33
|
concurrent-ruby (~> 1.0)
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
+
io-console (0.8.2)
|
|
35
|
+
json (2.19.7)
|
|
36
|
+
language_server-protocol (3.17.0.5)
|
|
37
|
+
lint_roller (1.1.0)
|
|
38
|
+
logger (1.7.0)
|
|
34
39
|
method_source (1.1.0)
|
|
35
|
-
minitest (
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
40
|
+
minitest (6.0.6)
|
|
41
|
+
drb (~> 2.0)
|
|
42
|
+
prism (~> 1.5)
|
|
43
|
+
parallel (1.28.0)
|
|
44
|
+
parser (3.3.11.1)
|
|
39
45
|
ast (~> 2.4.1)
|
|
40
46
|
racc
|
|
41
|
-
|
|
47
|
+
prism (1.9.0)
|
|
48
|
+
pry (0.16.0)
|
|
42
49
|
coderay (~> 1.1)
|
|
43
50
|
method_source (~> 1.0)
|
|
51
|
+
reline (>= 0.6.0)
|
|
44
52
|
racc (1.8.1)
|
|
45
|
-
rack (3.
|
|
53
|
+
rack (3.2.6)
|
|
46
54
|
rainbow (3.1.1)
|
|
47
|
-
rake (13.2
|
|
48
|
-
regexp_parser (2.
|
|
49
|
-
|
|
55
|
+
rake (13.4.2)
|
|
56
|
+
regexp_parser (2.12.0)
|
|
57
|
+
reline (0.6.3)
|
|
58
|
+
io-console (~> 0.5)
|
|
59
|
+
rspec (3.13.2)
|
|
50
60
|
rspec-core (~> 3.13.0)
|
|
51
61
|
rspec-expectations (~> 3.13.0)
|
|
52
62
|
rspec-mocks (~> 3.13.0)
|
|
53
|
-
rspec-core (3.13.
|
|
63
|
+
rspec-core (3.13.6)
|
|
54
64
|
rspec-support (~> 3.13.0)
|
|
55
|
-
rspec-expectations (3.13.
|
|
65
|
+
rspec-expectations (3.13.5)
|
|
56
66
|
diff-lcs (>= 1.2.0, < 2.0)
|
|
57
67
|
rspec-support (~> 3.13.0)
|
|
58
|
-
rspec-mocks (3.13.
|
|
68
|
+
rspec-mocks (3.13.8)
|
|
59
69
|
diff-lcs (>= 1.2.0, < 2.0)
|
|
60
70
|
rspec-support (~> 3.13.0)
|
|
61
|
-
rspec-support (3.13.
|
|
62
|
-
rubocop (1.
|
|
71
|
+
rspec-support (3.13.7)
|
|
72
|
+
rubocop (1.84.2)
|
|
63
73
|
json (~> 2.3)
|
|
64
|
-
language_server-protocol (
|
|
74
|
+
language_server-protocol (~> 3.17.0.2)
|
|
75
|
+
lint_roller (~> 1.1.0)
|
|
65
76
|
parallel (~> 1.10)
|
|
66
77
|
parser (>= 3.3.0.2)
|
|
67
78
|
rainbow (>= 2.2.2, < 4.0)
|
|
68
|
-
regexp_parser (>= 2.
|
|
69
|
-
rubocop-ast (>= 1.
|
|
79
|
+
regexp_parser (>= 2.9.3, < 3.0)
|
|
80
|
+
rubocop-ast (>= 1.49.0, < 2.0)
|
|
70
81
|
ruby-progressbar (~> 1.7)
|
|
71
|
-
unicode-display_width (>= 2.4.0, <
|
|
72
|
-
rubocop-ast (1.
|
|
73
|
-
parser (>= 3.3.
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
rubocop
|
|
77
|
-
rubocop-
|
|
78
|
-
rubocop-
|
|
79
|
-
rubocop-
|
|
80
|
-
rubocop-
|
|
81
|
-
rubocop-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
rubocop (
|
|
86
|
-
|
|
87
|
-
|
|
82
|
+
unicode-display_width (>= 2.4.0, < 4.0)
|
|
83
|
+
rubocop-ast (1.49.1)
|
|
84
|
+
parser (>= 3.3.7.2)
|
|
85
|
+
prism (~> 1.7)
|
|
86
|
+
rubocop-config-umbrellio (1.84.118)
|
|
87
|
+
rubocop (~> 1.84.0)
|
|
88
|
+
rubocop-factory_bot (~> 2.28.0)
|
|
89
|
+
rubocop-performance (~> 1.26.0)
|
|
90
|
+
rubocop-rails (~> 2.34.0)
|
|
91
|
+
rubocop-rake (~> 0.7.0)
|
|
92
|
+
rubocop-rspec (~> 3.9.0)
|
|
93
|
+
rubocop-sequel (~> 0.4.0)
|
|
94
|
+
rubocop-factory_bot (2.28.0)
|
|
95
|
+
lint_roller (~> 1.1)
|
|
96
|
+
rubocop (~> 1.72, >= 1.72.1)
|
|
97
|
+
rubocop-performance (1.26.1)
|
|
98
|
+
lint_roller (~> 1.1)
|
|
99
|
+
rubocop (>= 1.75.0, < 2.0)
|
|
100
|
+
rubocop-ast (>= 1.47.1, < 2.0)
|
|
101
|
+
rubocop-rails (2.34.3)
|
|
88
102
|
activesupport (>= 4.2.0)
|
|
103
|
+
lint_roller (~> 1.1)
|
|
89
104
|
rack (>= 1.1)
|
|
90
|
-
rubocop (>= 1.
|
|
91
|
-
rubocop-ast (>= 1.
|
|
92
|
-
rubocop-rake (0.
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
rubocop (~> 1.
|
|
105
|
+
rubocop (>= 1.75.0, < 2.0)
|
|
106
|
+
rubocop-ast (>= 1.44.0, < 2.0)
|
|
107
|
+
rubocop-rake (0.7.1)
|
|
108
|
+
lint_roller (~> 1.1)
|
|
109
|
+
rubocop (>= 1.72.1)
|
|
110
|
+
rubocop-rspec (3.9.0)
|
|
111
|
+
lint_roller (~> 1.1)
|
|
112
|
+
rubocop (~> 1.81)
|
|
113
|
+
rubocop-sequel (0.4.1)
|
|
114
|
+
lint_roller (~> 1.1)
|
|
115
|
+
rubocop (>= 1.72.1, < 2)
|
|
98
116
|
ruby-progressbar (1.13.0)
|
|
117
|
+
securerandom (0.4.1)
|
|
99
118
|
tzinfo (2.0.6)
|
|
100
119
|
concurrent-ruby (~> 1.0)
|
|
101
|
-
unicode-display_width (2.
|
|
120
|
+
unicode-display_width (3.2.0)
|
|
121
|
+
unicode-emoji (~> 4.1)
|
|
122
|
+
unicode-emoji (4.2.0)
|
|
123
|
+
uri (1.1.1)
|
|
102
124
|
|
|
103
125
|
PLATFORMS
|
|
104
126
|
arm64-darwin-21
|
data/lib/helmsnap/args_parser.rb
CHANGED
|
@@ -79,6 +79,5 @@ class Helmsnap::SetupDependencies < Helmsnap::Service
|
|
|
79
79
|
base_cmd = ["helm", "dependency", "update", chart_path]
|
|
80
80
|
result = run_cmd(*base_cmd, "--skip-refresh", allow_failure: true)
|
|
81
81
|
run_cmd(*base_cmd) unless result.success # Try with deps refresh in case of any failure
|
|
82
|
-
true
|
|
83
82
|
end
|
|
84
83
|
end
|
data/lib/helmsnap/version.rb
CHANGED
data/lib/helmsnap.rb
CHANGED
|
@@ -6,7 +6,6 @@ require "open3"
|
|
|
6
6
|
require "optparse"
|
|
7
7
|
require "pathname"
|
|
8
8
|
require "shellwords"
|
|
9
|
-
require "set"
|
|
10
9
|
require "tmpdir"
|
|
11
10
|
require "yaml"
|
|
12
11
|
|
|
@@ -28,8 +27,8 @@ module Helmsnap
|
|
|
28
27
|
|
|
29
28
|
class Error < StandardError; end
|
|
30
29
|
|
|
31
|
-
def self.run_cmd(*cmd_parts, **
|
|
30
|
+
def self.run_cmd(*cmd_parts, **)
|
|
32
31
|
cmd = Shellwords.join(cmd_parts)
|
|
33
|
-
Helmsnap::Command.call(cmd, **
|
|
32
|
+
Helmsnap::Command.call(cmd, **)
|
|
34
33
|
end
|
|
35
34
|
end
|
metadata
CHANGED
|
@@ -1,30 +1,28 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: helmsnap
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version:
|
|
4
|
+
version: 2.0.2
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Yuri Smirnov
|
|
8
|
-
autorequire:
|
|
9
8
|
bindir: exe
|
|
10
9
|
cert_chain: []
|
|
11
|
-
date:
|
|
10
|
+
date: 1980-01-02 00:00:00.000000000 Z
|
|
12
11
|
dependencies:
|
|
13
12
|
- !ruby/object:Gem::Dependency
|
|
14
13
|
name: colorize
|
|
15
14
|
requirement: !ruby/object:Gem::Requirement
|
|
16
15
|
requirements:
|
|
17
|
-
- - "
|
|
16
|
+
- - "~>"
|
|
18
17
|
- !ruby/object:Gem::Version
|
|
19
|
-
version: '
|
|
18
|
+
version: '1.1'
|
|
20
19
|
type: :runtime
|
|
21
20
|
prerelease: false
|
|
22
21
|
version_requirements: !ruby/object:Gem::Requirement
|
|
23
22
|
requirements:
|
|
24
|
-
- - "
|
|
23
|
+
- - "~>"
|
|
25
24
|
- !ruby/object:Gem::Version
|
|
26
|
-
version: '
|
|
27
|
-
description:
|
|
25
|
+
version: '1.1'
|
|
28
26
|
email:
|
|
29
27
|
- tycooon@yandex.ru
|
|
30
28
|
executables:
|
|
@@ -44,7 +42,6 @@ files:
|
|
|
44
42
|
- bin/console
|
|
45
43
|
- bin/setup
|
|
46
44
|
- exe/helmsnap
|
|
47
|
-
- helmsnap.gemspec
|
|
48
45
|
- lib/helmsnap.rb
|
|
49
46
|
- lib/helmsnap/args_parser.rb
|
|
50
47
|
- lib/helmsnap/check.rb
|
|
@@ -63,7 +60,6 @@ licenses:
|
|
|
63
60
|
metadata:
|
|
64
61
|
homepage_uri: https://github.com/tycooon/helmsnap
|
|
65
62
|
source_code_uri: https://github.com/tycooon/helmsnap
|
|
66
|
-
post_install_message:
|
|
67
63
|
rdoc_options: []
|
|
68
64
|
require_paths:
|
|
69
65
|
- lib
|
|
@@ -71,15 +67,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
|
71
67
|
requirements:
|
|
72
68
|
- - ">="
|
|
73
69
|
- !ruby/object:Gem::Version
|
|
74
|
-
version: 3.
|
|
70
|
+
version: 3.3.0
|
|
75
71
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
|
76
72
|
requirements:
|
|
77
73
|
- - ">="
|
|
78
74
|
- !ruby/object:Gem::Version
|
|
79
75
|
version: '0'
|
|
80
76
|
requirements: []
|
|
81
|
-
rubygems_version: 3.
|
|
82
|
-
signing_key:
|
|
77
|
+
rubygems_version: 3.6.9
|
|
83
78
|
specification_version: 4
|
|
84
79
|
summary: A tool for creating and checking helm chart snapshots.
|
|
85
80
|
test_files: []
|
data/helmsnap.gemspec
DELETED
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
# frozen_string_literal: true
|
|
2
|
-
|
|
3
|
-
require_relative "lib/helmsnap/version"
|
|
4
|
-
|
|
5
|
-
Gem::Specification.new do |spec|
|
|
6
|
-
spec.name = "helmsnap"
|
|
7
|
-
spec.version = Helmsnap::VERSION
|
|
8
|
-
spec.authors = ["Yuri Smirnov"]
|
|
9
|
-
spec.email = ["tycooon@yandex.ru"]
|
|
10
|
-
|
|
11
|
-
spec.summary = "A tool for creating and checking helm chart snapshots."
|
|
12
|
-
spec.homepage = "https://github.com/tycooon/helmsnap"
|
|
13
|
-
spec.license = "MIT"
|
|
14
|
-
spec.required_ruby_version = ">= 3.0.0"
|
|
15
|
-
|
|
16
|
-
# spec.metadata["allowed_push_host"] = "TODO: Set to your gem server 'https://example.com'"
|
|
17
|
-
spec.metadata["homepage_uri"] = spec.homepage
|
|
18
|
-
spec.metadata["source_code_uri"] = spec.homepage
|
|
19
|
-
# spec.metadata["changelog_uri"] = "TODO: Put your gem's CHANGELOG.md URL here."
|
|
20
|
-
|
|
21
|
-
# Specify which files should be added to the gem when it is released.
|
|
22
|
-
# The `git ls-files -z` loads the files in the RubyGem that have been added into git.
|
|
23
|
-
spec.files = Dir.chdir(File.expand_path(__dir__)) do
|
|
24
|
-
`git ls-files -z`.split("\x0").reject do |f|
|
|
25
|
-
(f == __FILE__) || f.match(%r{\A(?:(?:test|spec|features)/|\.(?:git|travis|circleci))})
|
|
26
|
-
end
|
|
27
|
-
end
|
|
28
|
-
|
|
29
|
-
spec.bindir = "exe"
|
|
30
|
-
spec.executables = spec.files.grep(%r{\Aexe/}) { |f| File.basename(f) }
|
|
31
|
-
spec.require_paths = ["lib"]
|
|
32
|
-
|
|
33
|
-
spec.add_dependency "colorize"
|
|
34
|
-
end
|