kustomizer 0.1.8 → 0.1.9
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/kustomize/transform/fingerprint_suffix_transform.rb +12 -4
- data/lib/kustomize/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: babe9435689f3621c9ae15695634702cafaec38bf59dda8a1ea48693156a00a6
|
4
|
+
data.tar.gz: 895bc312069b35b30fbe89a5851213cdef4bba9e181ca29fd3ebb87fb05fb28b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 525e73552ce0429c7e9ceeba3313af956837db05ba9f82c6459b814b65842caea74c7d2f4fa447bf9b9c66c2ace9608b8b539f69abf4579a526d1c9af9889ac1
|
7
|
+
data.tar.gz: 1c35d9b12473299f2727d4b48c728bb5f8310b9676f21cf2393351e393a81ea7a0ec57086f72c4bf4e580f327567087911637fc7eb9961f69cc73764359ec6e5
|
data/Gemfile.lock
CHANGED
@@ -35,7 +35,13 @@ class Kustomize::Transform::FingerprintSuffixTransform < Kustomize::Transform
|
|
35
35
|
return rc unless APPLICABLE_KINDS.member?(rc_kind)
|
36
36
|
|
37
37
|
FINGERPRINT_LENS.update_in(rc) do |orig_value|
|
38
|
-
|
38
|
+
if orig_value
|
39
|
+
if orig_value == ''
|
40
|
+
next(:pop)
|
41
|
+
else
|
42
|
+
next(:keep)
|
43
|
+
end
|
44
|
+
end
|
39
45
|
|
40
46
|
content_part = CONTENT_LENS_BY_KIND[rc_kind].get_in(rc)
|
41
47
|
content_ser = content_part.to_json
|
@@ -47,9 +53,11 @@ class Kustomize::Transform::FingerprintSuffixTransform < Kustomize::Transform
|
|
47
53
|
base_name = NAME_LENS.get_in(rc)
|
48
54
|
fingerprint = FINGERPRINT_LENS.get_in(rc)
|
49
55
|
|
50
|
-
|
51
|
-
|
52
|
-
|
56
|
+
if fingerprint
|
57
|
+
NAME_LENS.update_in(rc) do |base_name|
|
58
|
+
suffixed_name = [base_name, fingerprint].join(SUFFIX_JOINER)
|
59
|
+
[:set, suffixed_name]
|
60
|
+
end
|
53
61
|
end
|
54
62
|
|
55
63
|
rc
|
data/lib/kustomize/version.rb
CHANGED