kustomizer 0.1.3 → 0.1.4

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: 4f39b98c4f11fd4d80b1a70192211c56532c9033b7f4c9f6fe14ccbf92651f90
4
- data.tar.gz: 652461e4c5610ec39a669ee4c224eba7e0d513e96feccb9c3433363b5c8cb659
3
+ metadata.gz: 488be81bc2cbf22fdb68614216b86dfe0aaed6ad370b7beca33b235917e4eac5
4
+ data.tar.gz: 17a614a19a36d59860ea5542b8939122539d599b81ef8cc6ed8aef9ab5eddbff
5
5
  SHA512:
6
- metadata.gz: 7068ff28557ca6c1eea591e2e5dbddb8ef666621f575417a08393c78c87ec6e1522b273b70efc433577e126df7eed821a472593f036169c54e23b1793c64350c
7
- data.tar.gz: beea6d68509ff19341f0c995baf6211ebec1d39c7116efd3effef9d3b8f12a4171e5d84f05f909380e5b1e2a449914d389bed20809dd9da6ddf7364ace15481e
6
+ metadata.gz: 85192a2d5c5e92c6170b33bb030f42051c674d6ac294de6348b38eb6ae2ebe625d768f1687b5fad78d064c0388f0a5e919c83970f5f641a8f3906399556b452a
7
+ data.tar.gz: 22b1660cf1750b0869a09a43f8d9a2a331ddcbe1f2de38eb1026d2cd543feea66bb943a9c7596acba5996e1a8caa3f8186d4deceafe499ab9f980ab28a3be05a
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- kustomizer (0.1.3)
4
+ kustomizer (0.1.4)
5
5
  accessory (~> 0.1.9)
6
6
  base32-multi
7
7
 
@@ -35,4 +35,4 @@ DEPENDENCIES
35
35
  rspec (~> 3.0)
36
36
 
37
37
  BUNDLED WITH
38
- 2.2.6
38
+ 2.2.7
@@ -14,8 +14,7 @@ class Kustomize::Transform::RefFixupTransform < Kustomize::Transform
14
14
 
15
15
  FINGERPRINT_LENS = Lens['metadata', 'annotations', 'kustomizer.covalenthq.com/effective-fingerprint']
16
16
 
17
- KEY_REF_LENSES_BY_KIND = {
18
- "Deployment" => [
17
+ POD_TEMPLATE_LENSES = [
19
18
  Lens["spec", "template", "spec", "containers", Access.all, "envFrom", Access.all, "configMapRef", "name"],
20
19
  Lens["spec", "template", "spec", "containers", Access.all, "env", Access.all, "valueFrom", "configMapKeyRef", "name"],
21
20
  Lens["spec", "template", "spec", "volumes", Access.all, "configMap", "name"],
@@ -23,7 +22,12 @@ class Kustomize::Transform::RefFixupTransform < Kustomize::Transform
23
22
  Lens["spec", "template", "spec", "containers", Access.all, "env", Access.all, "valueFrom", "secretKeyRef", "name"],
24
23
  Lens["spec", "template", "spec", "volumes", Access.all, "secret", "name"],
25
24
  Lens["spec", "template", "spec", "volumes", Access.all, "secret", "secretName"]
26
- ]
25
+ ]
26
+
27
+ KEY_REF_LENSES_BY_KIND = {
28
+ "Deployment" => POD_TEMPLATE_LENSES,
29
+ "StatefulSet" => POD_TEMPLATE_LENSES,
30
+ "DaemonSet" => POD_TEMPLATE_LENSES
27
31
  }
28
32
 
29
33
  def rewrite_all(rcs)
@@ -1,3 +1,3 @@
1
1
  module Kustomize
2
- VERSION = "0.1.3"
2
+ VERSION = "0.1.4"
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.3
4
+ version: 0.1.4
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-01-25 00:00:00.000000000 Z
11
+ date: 2021-01-29 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: accessory