helmsnap 0.7.5 → 0.9.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Dockerfile +1 -1
- data/Gemfile.lock +45 -47
- data/README.md +7 -3
- data/lib/helmsnap/runner.rb +5 -2
- data/lib/helmsnap/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a677f9669389745853563f4949e114f539f3e28cbba93f3c9318e406166d928f
|
4
|
+
data.tar.gz: cf186d8a23296935428ed2d6b1f9e80f96847353ca405c1183d895b70a57c39e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 5c5e1bf0d0f7ea3b372e337e65ff8714439bb7c9f08e61f77e59115a66c0c4cae1c6f3ae6640921287282cba87022ced9be96859cadb588f14fc5e6f4041b922
|
7
|
+
data.tar.gz: 5e643f42ad9d96f20e97f9f94a67c0640be6821009714e6bc2c4ff5140504a0d269d404a6f39e7739fb236c3cf0099f272b8d41140e8354d4d78ddad29bb7047
|
data/Dockerfile
CHANGED
@@ -4,7 +4,7 @@ RUN apk add --update --no-cache ruby git colordiff
|
|
4
4
|
|
5
5
|
WORKDIR /wd
|
6
6
|
|
7
|
-
COPY --from=quay.io/roboll/helmfile:v0.
|
7
|
+
COPY --from=quay.io/roboll/helmfile:v0.144.0 /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,91 +1,89 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
helmsnap (0.
|
4
|
+
helmsnap (0.9.0)
|
5
5
|
colorize
|
6
6
|
|
7
7
|
GEM
|
8
8
|
remote: https://rubygems.org/
|
9
9
|
specs:
|
10
|
-
activesupport (
|
10
|
+
activesupport (7.0.3)
|
11
11
|
concurrent-ruby (~> 1.0, >= 1.0.2)
|
12
12
|
i18n (>= 1.6, < 2)
|
13
13
|
minitest (>= 5.1)
|
14
14
|
tzinfo (~> 2.0)
|
15
|
-
zeitwerk (~> 2.3)
|
16
15
|
ast (2.4.2)
|
17
16
|
coderay (1.1.3)
|
18
17
|
colorize (0.8.1)
|
19
|
-
concurrent-ruby (1.1.
|
20
|
-
diff-lcs (1.
|
21
|
-
i18n (1.
|
18
|
+
concurrent-ruby (1.1.10)
|
19
|
+
diff-lcs (1.5.0)
|
20
|
+
i18n (1.10.0)
|
22
21
|
concurrent-ruby (~> 1.0)
|
23
22
|
method_source (1.0.0)
|
24
|
-
minitest (5.
|
25
|
-
parallel (1.
|
26
|
-
parser (3.
|
23
|
+
minitest (5.15.0)
|
24
|
+
parallel (1.22.1)
|
25
|
+
parser (3.1.2.0)
|
27
26
|
ast (~> 2.4.1)
|
28
27
|
pry (0.14.1)
|
29
28
|
coderay (~> 1.1)
|
30
29
|
method_source (~> 1.0)
|
31
|
-
rack (2.2.3)
|
32
|
-
rainbow (3.
|
30
|
+
rack (2.2.3.1)
|
31
|
+
rainbow (3.1.1)
|
33
32
|
rake (13.0.6)
|
34
|
-
regexp_parser (2.
|
33
|
+
regexp_parser (2.5.0)
|
35
34
|
rexml (3.2.5)
|
36
|
-
rspec (3.
|
37
|
-
rspec-core (~> 3.
|
38
|
-
rspec-expectations (~> 3.
|
39
|
-
rspec-mocks (~> 3.
|
40
|
-
rspec-core (3.
|
41
|
-
rspec-support (~> 3.
|
42
|
-
rspec-expectations (3.
|
35
|
+
rspec (3.11.0)
|
36
|
+
rspec-core (~> 3.11.0)
|
37
|
+
rspec-expectations (~> 3.11.0)
|
38
|
+
rspec-mocks (~> 3.11.0)
|
39
|
+
rspec-core (3.11.0)
|
40
|
+
rspec-support (~> 3.11.0)
|
41
|
+
rspec-expectations (3.11.0)
|
43
42
|
diff-lcs (>= 1.2.0, < 2.0)
|
44
|
-
rspec-support (~> 3.
|
45
|
-
rspec-mocks (3.
|
43
|
+
rspec-support (~> 3.11.0)
|
44
|
+
rspec-mocks (3.11.1)
|
46
45
|
diff-lcs (>= 1.2.0, < 2.0)
|
47
|
-
rspec-support (~> 3.
|
48
|
-
rspec-support (3.
|
49
|
-
rubocop (1.
|
46
|
+
rspec-support (~> 3.11.0)
|
47
|
+
rspec-support (3.11.0)
|
48
|
+
rubocop (1.30.0)
|
50
49
|
parallel (~> 1.10)
|
51
|
-
parser (>= 3.
|
50
|
+
parser (>= 3.1.0.0)
|
52
51
|
rainbow (>= 2.2.2, < 4.0)
|
53
52
|
regexp_parser (>= 1.8, < 3.0)
|
54
|
-
rexml
|
55
|
-
rubocop-ast (>= 1.
|
53
|
+
rexml (>= 3.2.5, < 4.0)
|
54
|
+
rubocop-ast (>= 1.18.0, < 2.0)
|
56
55
|
ruby-progressbar (~> 1.7)
|
57
56
|
unicode-display_width (>= 1.4.0, < 3.0)
|
58
|
-
rubocop-ast (1.
|
59
|
-
parser (>= 3.
|
60
|
-
rubocop-config-umbrellio (1.
|
61
|
-
rubocop (
|
62
|
-
rubocop-performance (
|
63
|
-
rubocop-rails (
|
64
|
-
rubocop-rake (
|
65
|
-
rubocop-rspec (
|
66
|
-
rubocop-sequel (
|
67
|
-
rubocop-performance (1.
|
68
|
-
rubocop (>=
|
57
|
+
rubocop-ast (1.18.0)
|
58
|
+
parser (>= 3.1.1.0)
|
59
|
+
rubocop-config-umbrellio (1.30.0.65)
|
60
|
+
rubocop (~> 1.30.0)
|
61
|
+
rubocop-performance (~> 1.14.0)
|
62
|
+
rubocop-rails (~> 2.14.2)
|
63
|
+
rubocop-rake (~> 0.6.0)
|
64
|
+
rubocop-rspec (~> 2.11.1)
|
65
|
+
rubocop-sequel (~> 0.3.3)
|
66
|
+
rubocop-performance (1.14.0)
|
67
|
+
rubocop (>= 1.7.0, < 2.0)
|
69
68
|
rubocop-ast (>= 0.4.0)
|
70
|
-
rubocop-rails (2.
|
69
|
+
rubocop-rails (2.14.2)
|
71
70
|
activesupport (>= 4.2.0)
|
72
71
|
rack (>= 1.1)
|
73
|
-
rubocop (>=
|
74
|
-
rubocop-rake (0.
|
75
|
-
rubocop
|
76
|
-
rubocop-rspec (2.2.0)
|
72
|
+
rubocop (>= 1.7.0, < 2.0)
|
73
|
+
rubocop-rake (0.6.0)
|
77
74
|
rubocop (~> 1.0)
|
78
|
-
|
79
|
-
|
75
|
+
rubocop-rspec (2.11.1)
|
76
|
+
rubocop (~> 1.19)
|
77
|
+
rubocop-sequel (0.3.3)
|
80
78
|
rubocop (~> 1.0)
|
81
79
|
ruby-progressbar (1.11.0)
|
82
80
|
tzinfo (2.0.4)
|
83
81
|
concurrent-ruby (~> 1.0)
|
84
82
|
unicode-display_width (2.1.0)
|
85
|
-
zeitwerk (2.5.1)
|
86
83
|
|
87
84
|
PLATFORMS
|
88
85
|
arm64-darwin-21
|
86
|
+
ruby
|
89
87
|
x86_64-darwin-20
|
90
88
|
x86_64-linux
|
91
89
|
|
@@ -98,4 +96,4 @@ DEPENDENCIES
|
|
98
96
|
rubocop-config-umbrellio
|
99
97
|
|
100
98
|
BUNDLED WITH
|
101
|
-
2.
|
99
|
+
2.3.15
|
data/README.md
CHANGED
@@ -57,11 +57,11 @@ You can also override configuration file location using `--config` option.
|
|
57
57
|
|
58
58
|
### Helm dependency management
|
59
59
|
|
60
|
-
Helmsnap will
|
60
|
+
Helmsnap will automatically rebuild your chart dependencies on every snapshot generation or check. In case your dependency is using url to some local helm repo and you don't have a proper repo added, it will add it automatically which is useful in CI. It also will detect local dependencies (those that start with `file://`) and rebuild their dependencies as well.
|
61
61
|
|
62
62
|
### Timestamp replacement
|
63
63
|
|
64
|
-
Helmsnap will
|
64
|
+
Helmsnap will automatically replace all occurencies of patterns that look like timestamps (format like `2022-01-01 00:00:00.000`) in your templates. This is useful in case you have some annotations like `releaseTime` that would break your snapshots checks otherwise.
|
65
65
|
|
66
66
|
## Installation
|
67
67
|
|
@@ -71,7 +71,11 @@ Just install the gem and use the provided `helmsnap` binary.
|
|
71
71
|
gem install helmsnap
|
72
72
|
```
|
73
73
|
|
74
|
-
Alaternatively, you can use the [Docker image](https://github.com/tycooon/helmsnap/pkgs/container/helmsnap) with Ruby, helm and helmsnap gem preinstalled. This is useful for CIs or if you don't want to install Ruby and Helmfile on your machine.
|
74
|
+
Alaternatively, you can use the [Docker image](https://github.com/tycooon/helmsnap/pkgs/container/helmsnap) with Ruby, helm and helmsnap gem preinstalled. This is useful for CIs or if you don't want to install Ruby and Helmfile on your machine. Here is an example docker command that can be used to generate snapshots:
|
75
|
+
|
76
|
+
```sh
|
77
|
+
docker run --rm -it -w /wd -v $PWD:/wd ghcr.io/tycooon/helmsnap helmsnap generate
|
78
|
+
```
|
75
79
|
|
76
80
|
## CI example
|
77
81
|
|
data/lib/helmsnap/runner.rb
CHANGED
@@ -22,7 +22,7 @@ class Helmsnap::Runner < Helmsnap::Service
|
|
22
22
|
end
|
23
23
|
|
24
24
|
case cmd
|
25
|
-
when "generate"
|
25
|
+
when "generate", "gen"
|
26
26
|
generate!
|
27
27
|
when "check"
|
28
28
|
check!
|
@@ -51,7 +51,10 @@ class Helmsnap::Runner < Helmsnap::Service
|
|
51
51
|
Helmsnap::Console.error(
|
52
52
|
$stdout,
|
53
53
|
"Snapshots are outdated. You should check the diff above and either fix your chart or " \
|
54
|
-
"update the snapshots using the following command:\n> #{example_cmd}"
|
54
|
+
"update the snapshots using the following command:\n> #{example_cmd}\n" \
|
55
|
+
"Please make sure that you have the latest version of helmsnap installed!\n\n" \
|
56
|
+
"In case you don't have Ruby on your machine, you can use the following Docker command:\n" \
|
57
|
+
"> docker run --rm -it -w /wd -v $PWD:/wd ghcr.io/tycooon/helmsnap #{example_cmd}",
|
55
58
|
)
|
56
59
|
|
57
60
|
exit 1
|
data/lib/helmsnap/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: helmsnap
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.9.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Yuri Smirnov
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2022-06-01 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: colorize
|
@@ -92,7 +92,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
92
92
|
- !ruby/object:Gem::Version
|
93
93
|
version: '0'
|
94
94
|
requirements: []
|
95
|
-
rubygems_version: 3.
|
95
|
+
rubygems_version: 3.3.14
|
96
96
|
signing_key:
|
97
97
|
specification_version: 4
|
98
98
|
summary: A tool for creating and checking helm chart snapshots.
|