Skip to content

Commit

Permalink
Don't use @kubectl in DeployTask, use the getter method instead
Browse files Browse the repository at this point in the history
  • Loading branch information
timothysmith0609 committed Sep 4, 2019
1 parent ec40d8d commit 6c9cbd4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/kubernetes-deploy/deploy_task.rb
Original file line number Diff line number Diff line change
Expand Up @@ -573,7 +573,7 @@ def kubectl

def ejson_keys_secret
@ejson_keys_secret ||= begin
out, err, st = @kubectl.run("get", "secret", EjsonSecretProvisioner::EJSON_KEYS_SECRET, output: "json",
out, err, st = kubectl.run("get", "secret", EjsonSecretProvisioner::EJSON_KEYS_SECRET, output: "json",
raise_if_not_found: true, attempts: 3, output_is_sensitive: true, log_failure: true)
unless st.success?
raise EjsonSecretError, "Error retrieving Secret/#{EjsonSecretProvisioner::EJSON_KEYS_SECRET}: #{err}"
Expand Down

0 comments on commit 6c9cbd4

Please sign in to comment.