kustomizer 0.1.12 → 0.1.17

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 9d4194dfeac67756db2018524a29771521143059e7c6b01783e50ef454f5c710
4
- data.tar.gz: cf815fc480191d91626c273f925eac81fff5487b859d3b261dddaab6b9b2c594
3
+ metadata.gz: b0e23bb99ff2c5d0462fe3c4514832e3e913af662f3533e13458d6b41efa05a8
4
+ data.tar.gz: 9364050fb8ea2baae96f79bc37c1544935f31c2bab9173032e0b67b2142b4a0b
5
5
  SHA512:
6
- metadata.gz: 0edca955dacb8cc04b4d3643008aa4fa9f7a884ff8aa9c3534d15bf8f38ba9a879cc0dceddca03d9c95a743971da98f9342c730f17b5882eaf63e37f6814aecc
7
- data.tar.gz: 645696be6aa341742d34fd8f7099fe68d3ea55f0f5548c42641a3452cfb4dc41325fd5b3b59681e1631af4d98dcd8e399091d88e6b71dc53cebc3c58a2d63350
6
+ metadata.gz: 2011db3757e66d6eab7350ad172f9e8e4fb902c96c571396edf1596d6f44d880634495e480524262e8252e3adaf08b4ae3f231323b0c1e5c3748ee65bd0615c2
7
+ data.tar.gz: 33008c799b27b7144823eacf921364628c13ba980f33dba5c400392a452871dfecd40b113423075a9898fbf40c39d2bd1f7fd3bb4c9c1cb1b69767edabc130ae
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- kustomizer (0.1.12)
4
+ kustomizer (0.1.17)
5
5
  accessory (~> 0.1.11)
6
6
  base32-multi
7
7
 
@@ -11,7 +11,7 @@ GEM
11
11
  accessory (0.1.11)
12
12
  base32-multi (0.1.1)
13
13
  diff-lcs (1.4.4)
14
- rake (13.0.3)
14
+ rake (13.0.6)
15
15
  rspec (3.10.0)
16
16
  rspec-core (~> 3.10.0)
17
17
  rspec-expectations (~> 3.10.0)
@@ -33,3 +33,6 @@ DEPENDENCIES
33
33
  kustomizer!
34
34
  rake (~> 13.0)
35
35
  rspec (~> 3.0)
36
+
37
+ BUNDLED WITH
38
+ 2.2.30
data/README.md CHANGED
@@ -47,7 +47,7 @@ Status of support for other Kustomize features:
47
47
 
48
48
  * [ ] Automatic name suffixing of generated resources
49
49
  * [x] Secrets
50
- * [ ] ConfigMaps
50
+ * [x] ConfigMaps
51
51
 
52
52
  Status of support for "extra" features not supported by Kustomize:
53
53
 
@@ -24,11 +24,14 @@ class Kustomize::Transform::ImageTransform < Kustomize::Transform
24
24
  end
25
25
 
26
26
  TEMPLATE_POD_SPEC_LENS = Lens["spec", "template", "spec", "containers", Access.all, "image"]
27
+ TEMPLATE_CRONJOB_SPEC_LENS = Lens["spec", "jobTemplate"] + TEMPLATE_POD_SPEC_LENS
27
28
 
28
29
  LENS_BY_KIND = {
29
30
  "Deployment" => TEMPLATE_POD_SPEC_LENS,
30
31
  "DaemonSet" => TEMPLATE_POD_SPEC_LENS,
31
- "StatefulSet" => TEMPLATE_POD_SPEC_LENS
32
+ "StatefulSet" => TEMPLATE_POD_SPEC_LENS,
33
+ "Job" => TEMPLATE_POD_SPEC_LENS,
34
+ "CronJob" => TEMPLATE_CRONJOB_SPEC_LENS
32
35
  }
33
36
 
34
37
  def rewrite(rc_doc)
@@ -24,10 +24,16 @@ class Kustomize::Transform::RefFixupTransform < Kustomize::Transform
24
24
  Lens["spec", "template", "spec", "volumes", Access.all, "secret", "secretName"]
25
25
  ]
26
26
 
27
+ CRONJOB_TEMPLATE_LENSES = POD_TEMPLATE_LENSES.map do |lens|
28
+ Lens["spec", "jobTemplate"] + lens
29
+ end
30
+
27
31
  KEY_REF_LENSES_BY_KIND = {
28
32
  "Deployment" => POD_TEMPLATE_LENSES,
29
33
  "StatefulSet" => POD_TEMPLATE_LENSES,
30
- "DaemonSet" => POD_TEMPLATE_LENSES
34
+ "DaemonSet" => POD_TEMPLATE_LENSES,
35
+ "Job" => POD_TEMPLATE_LENSES,
36
+ "CronJob" => CRONJOB_TEMPLATE_LENSES
31
37
  }
32
38
 
33
39
  def rewrite_all(rcs)
@@ -1,3 +1,3 @@
1
1
  module Kustomize
2
- VERSION = "0.1.12"
2
+ VERSION = "0.1.17"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: kustomizer
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.12
4
+ version: 0.1.17
5
5
  platform: ruby
6
6
  authors:
7
7
  - Levi Aul
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2021-03-08 00:00:00.000000000 Z
11
+ date: 2021-10-29 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: accessory
@@ -113,7 +113,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
113
113
  - !ruby/object:Gem::Version
114
114
  version: '0'
115
115
  requirements: []
116
- rubygems_version: 3.2.3
116
+ rubygems_version: 3.2.22
117
117
  signing_key:
118
118
  specification_version: 4
119
119
  summary: Pure-ruby impl of Kubernetes kustomize