Class: Minfra::Cli::KubeCtlRunner

Inherits:
Runner
  • Object
show all
Defined in:
lib/minfra/cli/kubectl_runner.rb

Instance Attribute Summary

Attributes inherited from Runner

#cmd, #exit_on_error, #on_output, #runner

Instance Method Summary collapse

Methods inherited from Runner

run, #run

Methods included from Logging

#debug, #deprecated, #error, #exit_error, #info, #warn

Constructor Details

#initialize(cmd, **args) ⇒ KubeCtlRunner

Returns a new instance of KubeCtlRunner.



6
7
8
9
10
# File 'lib/minfra/cli/kubectl_runner.rb', line 6

def initialize(cmd, **args)
  insecure_flag = l('infra::allow_insecure_k8s_connections') ? '--insecure-skip-tls-verify' : ''
  cmd = "kubectl #{insecure_flag} #{cmd}"
  super(cmd, **args)
end