kubernetes-deploy 0.12.4 → 0.12.5
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
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a7d6c5ab6b0e0dacbe697e1c31304e3393a6efdb
|
4
|
+
data.tar.gz: 3a04f9387411d3bcad0242f869da7d2abc2cd614
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ba9bfe0c5b6a088c1163b28ddabb64bfb17156c135ee03160a4b119cd502cca1fa4c617f19f0c62e52e393adb4323cde138ad93e7c3bc6e5fefc843f0ffa766e
|
7
|
+
data.tar.gz: be46425cf8c5c9996b9bfbee3085f7a85f72ef8777d85e0aaba24d676f5047d544d6c2e4125ac6a85e3fc8129fb0a8bc1ad2098ccccb6d321aad1938762ccae1
|
@@ -17,11 +17,12 @@ module KubernetesDeploy
|
|
17
17
|
EJSON_SECRETS_FILE = "secrets.ejson"
|
18
18
|
EJSON_KEYS_SECRET = "ejson-keys"
|
19
19
|
|
20
|
-
def initialize(namespace:, context:, template_dir:, logger:)
|
20
|
+
def initialize(namespace:, context:, template_dir:, logger:, prune: true)
|
21
21
|
@namespace = namespace
|
22
22
|
@context = context
|
23
23
|
@ejson_file = "#{template_dir}/#{EJSON_SECRETS_FILE}"
|
24
24
|
@logger = logger
|
25
|
+
@prune = prune
|
25
26
|
@kubectl = Kubectl.new(namespace: @namespace, context: @context, logger: @logger, log_failure_by_default: false)
|
26
27
|
end
|
27
28
|
|
@@ -31,7 +32,7 @@ module KubernetesDeploy
|
|
31
32
|
|
32
33
|
def run
|
33
34
|
create_secrets
|
34
|
-
prune_managed_secrets
|
35
|
+
prune_managed_secrets if @prune
|
35
36
|
end
|
36
37
|
|
37
38
|
private
|
@@ -100,7 +100,8 @@ module KubernetesDeploy
|
|
100
100
|
namespace: @namespace,
|
101
101
|
context: @context,
|
102
102
|
template_dir: @template_dir,
|
103
|
-
logger: @logger
|
103
|
+
logger: @logger,
|
104
|
+
prune: prune,
|
104
105
|
)
|
105
106
|
if ejson.secret_changes_required?
|
106
107
|
@logger.phase_heading("Deploying kubernetes secrets from #{EjsonSecretProvisioner::EJSON_SECRETS_FILE}")
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: kubernetes-deploy
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.12.
|
4
|
+
version: 0.12.5
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Katrina Verey
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: exe
|
11
11
|
cert_chain: []
|
12
|
-
date: 2017-09-
|
12
|
+
date: 2017-09-28 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: activesupport
|