Class: Kitchen::Transport::K8s
- Inherits:
-
Base
- Object
- Base
- Kitchen::Transport::K8s
- Defined in:
- lib/kitchen/transport/k8s.rb
Overview
Kubernetes transport for Kitchen. Uses kubectl exec.
Instance Method Summary collapse
-
#connection(state, &block) ⇒ Object
All configuration options can be found in the Driver class.
Instance Method Details
#connection(state, &block) ⇒ Object
All configuration options can be found in the Driver class.
16 17 18 19 20 21 22 23 24 |
# File 'lib/kitchen/transport/k8s.rb', line 16 def connection(state, &block) Connection.new( pod_id: state[:pod_id], namespace: config[:namespace], binary: config[:binary] ).tap do |conn| yield(conn) if block end end |