Skip to content

Commit

Permalink
Merge pull request #1290 from Sifchain/chainops/automationupdates
Browse files Browse the repository at this point in the history
Chainops/automationupdates
  • Loading branch information
_IM authored May 11, 2021
2 parents 1d216d6 + 762a97e commit f935845
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions deploy/rake/cluster.rake
Original file line number Diff line number Diff line change
Expand Up @@ -490,6 +490,17 @@ echo ' sssssssssss iiiiiiiifffffffff cccccccccccccccchhhhhhh
end
end

desc "Push Secret To Vault"
namespace :vault do
desc "Push Secret to Vault"
task :push_secret_to_vault, [:path] do |t, args|
require "json"
secret_to_insert = File.read("app_secrets").to_s
secrets_json = `kubectl exec -n vault --kubeconfig=./kubeconfig -it vault-0 -- vault kv put -format json #{args[:path]} #{secret_to_insert}`
puts secrets_json
end
end

desc "CONFIGURE AWS PROFILE AND KUBECONFIG"
namespace :automation do
desc "Deploy a new ebrelayer to an existing cluster"
Expand Down

0 comments on commit f935845

Please sign in to comment.