Class: Kitchen::Transport::Kubernetes
- Inherits:
-
Base
- Object
- Base
- Kitchen::Transport::Kubernetes
- Defined in:
- lib/kitchen/transport/kubernetes.rb
Overview
Kubernetes transport for Kitchen. Uses kubectl exec.
Defined Under Namespace
Classes: Connection
Instance Method Summary collapse
Instance Method Details
#connection(state, &block) ⇒ Object
38 39 40 41 42 43 44 45 46 47 48 49 50 |
# File 'lib/kitchen/transport/kubernetes.rb', line 38 def connection(state, &block) # No persistent anything so no need to reuse connections. Connection.new( pod_id: state[:pod_id], kubectl_command: config[:kubectl_command], rsync_command: config[:rsync_command], rsync_rsh: config[:rsync_rsh], log_level: config[:log_level], logger: logger ).tap do |conn| block.call(conn) if block end end |