lib/seira/pods.rb in seira-0.9.0 vs lib/seira/pods.rb in seira-0.9.2
- old
+ new
@@ -149,9 +149,10 @@
# there's a limited amount of time that the temp pod is still taking up resources
# Note that this will break a pods which depends on containers running real commands, but
# for a simple terminal pod it's fine
spec['containers'].each do |container|
container['command'] = %w[sleep 86400] # 86400 seconds = 24 hours
+ container.delete('args')
end
puts 'Creating dedicated pod...'
unless system("kubectl --namespace=#{app} create -f - <<JSON\n#{temp_pod.to_json}\nJSON")
puts 'Failed to create dedicated pod'