helmsnap 1.2.1 → 1.2.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +1 -1
- data/lib/helmsnap/config.rb +3 -3
- data/lib/helmsnap/setup_dependencies.rb +1 -1
- data/lib/helmsnap/version.rb +1 -1
- metadata +3 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 6d8c61b007ee5627461c099a7eaf61136fc1b5dc65ca8157719b8d8cfef4652f
|
4
|
+
data.tar.gz: 0b36ff7c7ce1d74b92db8d731b5379bb8de8e661174761e0cb270dda7f5f34c1
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 92bb9e04dcb8ccc122e755e4921a842986b41f39619c03a6c15106680893ebe90b2dc762da8c0bc828af1855a7e1912fe9e2cd1138ae0db7306b38f98f71cce6
|
7
|
+
data.tar.gz: 1fe3fc73a7757e9a175d9dcaeb26d7ff6f7d25852a9f61223d9a757620c0838e57e7a663a1d2d6ccc7aaa7eb3f94b01c9029eafba0b2ea60f60b2924909c2063
|
data/Gemfile.lock
CHANGED
data/lib/helmsnap/config.rb
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
2
|
|
3
3
|
class Helmsnap::Config
|
4
|
-
Credentials = Struct.new(:username, :password)
|
4
|
+
Credentials = Struct.new(:repo, :username, :password)
|
5
5
|
|
6
6
|
attr_reader :envs, :snapshots_path, :credentials
|
7
7
|
|
@@ -34,8 +34,8 @@ class Helmsnap::Config
|
|
34
34
|
end
|
35
35
|
|
36
36
|
def parse_credentials(yaml)
|
37
|
-
yaml.fetch("credentials", []).
|
38
|
-
|
37
|
+
yaml.fetch("credentials", []).map do |obj|
|
38
|
+
Credentials.new(obj["repo"], obj["username"], obj["password"])
|
39
39
|
end
|
40
40
|
end
|
41
41
|
end
|
@@ -44,7 +44,7 @@ class Helmsnap::SetupDependencies < Helmsnap::Service
|
|
44
44
|
dep_list.scan(%r{(https?://.+?)\s}) do |dep_path|
|
45
45
|
url = dep_path.first
|
46
46
|
|
47
|
-
if (credentials = config.credentials
|
47
|
+
if (credentials = config.credentials.find { |x| url.start_with?(x.repo) })
|
48
48
|
extra_args = ["--username", credentials.username, "--password", credentials.password]
|
49
49
|
end
|
50
50
|
|
data/lib/helmsnap/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: helmsnap
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.2.
|
4
|
+
version: 1.2.2
|
5
5
|
platform: ruby
|
6
|
-
original_platform: ''
|
7
6
|
authors:
|
8
7
|
- Yuri Smirnov
|
9
8
|
bindir: exe
|
10
9
|
cert_chain: []
|
11
|
-
date: 2024-12-
|
10
|
+
date: 2024-12-26 00:00:00.000000000 Z
|
12
11
|
dependencies:
|
13
12
|
- !ruby/object:Gem::Dependency
|
14
13
|
name: colorize
|
@@ -76,7 +75,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
76
75
|
- !ruby/object:Gem::Version
|
77
76
|
version: '0'
|
78
77
|
requirements: []
|
79
|
-
rubygems_version: 3.6.
|
78
|
+
rubygems_version: 3.6.2
|
80
79
|
specification_version: 4
|
81
80
|
summary: A tool for creating and checking helm chart snapshots.
|
82
81
|
test_files: []
|