Module: KitchenKubernetes::Helper Private
- Defined in:
- lib/kitchen-kubernetes/helper.rb
Overview
This module is part of a private API. You should avoid using this module if possible, as it may be removed or be changed in the future.
Utility mixin for other classes in this plugin.
Instance Method Summary collapse
-
#kube_options ⇒ Object
private
Because plugins and connections have different APIs.
- #kubectl_command(*cmd) ⇒ Object private
Instance Method Details
#kube_options ⇒ Object
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
Because plugins and connections have different APIs.
25 26 27 28 29 30 31 32 33 |
# File 'lib/kitchen-kubernetes/helper.rb', line 25 def if defined?(config) config elsif defined?() else raise "Something went wrong, please file a bug" end end |
#kubectl_command(*cmd) ⇒ Object
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
35 36 37 38 39 40 41 42 43 |
# File 'lib/kitchen-kubernetes/helper.rb', line 35 def kubectl_command(*cmd) out = [[:kubectl_command]] if [:context] out << '--context' out << [:context] end out.concat(cmd) out end |