Skip to content
This repository has been archived by the owner on Sep 21, 2020. It is now read-only.

Commit

Permalink
GPII-3748: Make istio state import optional based on xk param
Browse files Browse the repository at this point in the history
  • Loading branch information
stepanstipl committed Jun 19, 2019
1 parent f8738c9 commit 79fd7a0
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions shared/rakefiles/entrypoint.rake
Expand Up @@ -69,7 +69,7 @@ end

desc "Create cluster and deploy GPII components to it"
task :deploy => [:set_vars, :apply_infra] do
sh "#{@exekube_cmd} rake xk[up]"
sh "#{@exekube_cmd} rake xk[up,false,false,true]"
Rake::Task["display_cluster_info"].invoke
end

Expand Down Expand Up @@ -314,7 +314,7 @@ task :deploy_module, [:module] => [:set_vars, :fetch_helm_certs] do |taskname, a
puts " ERROR: args[:module] must point to Terragrunt directory!"
raise
end
sh "#{@exekube_cmd} rake xk['apply live/#{@env}/#{args[:module]}',skip_secret_mgmt]"
sh "#{@exekube_cmd} rake xk['apply live/#{@env}/#{args[:module]}',true,false,true]"
end

desc "[ADVANCED] Destroy provided module in the cluster -- rake destroy_module['k8s/kube-system/cert-manager']"
Expand Down
2 changes: 1 addition & 1 deletion shared/rakefiles/xk.rake
Expand Up @@ -12,7 +12,7 @@ require_relative "./sh_filter.rb"
# This task is being called from entrypoint.rake and runs inside exekube container.
# It applies secret-mgmt, sets secrets, and then executes arbitrary command from args[:cmd].
# You should not invoke this task directly!
task :xk, [:cmd, :skip_secret_mgmt, :preserve_stderr] => [:configure, :configure_secrets] do |taskname, args|
task :xk, [:cmd, :skip_secret_mgmt, :preserve_stderr, :sync_gke_istio_state] => [:configure, :configure_secrets] do |taskname, args|
sh "#{@exekube_cmd} up live/#{@env}/secret-mgmt" unless args[:skip_secret_mgmt]

Rake::Task["set_secrets"].invoke
Expand Down

0 comments on commit 79fd7a0

Please sign in to comment.