lib/seira/pods.rb in seira-0.4.2 vs lib/seira/pods.rb in seira-0.4.3
- old
+ new
@@ -142,10 +142,10 @@
unless kubectl("delete pods/#{temp_name}", context: context)
puts 'Failed to delete temp pod'
end
else
# If we don't need a dedicated pod, it's way easier - just connect to the already running one
- connect_to_pod(target_pod.dig('metadata', 'name'))
+ connect_to_pod(target_pod.dig('metadata', 'name'), command)
end
end
def connect_to_pod(name, command = 'sh')
puts "Connecting to #{name}..."