Sha256: 3bbf5a0ed0de73bb8dcb7b3ffa76328029ce9eacab36000589f6735c6de4a39d
Contents?: true
Size: 633 Bytes
Versions: 4
Compression:
Stored size: 633 Bytes
Contents
class KuberKit::Actions::KubectlAttacher include KuberKit::Import[ "shell.kubectl_commands", "shell.local_shell", "ui" ] Contract String, Hash => Any def call(pod_name, options) kubeconfig_path = KuberKit.current_configuration.kubeconfig_path deployer_namespace = KuberKit.current_configuration.deployer_namespace kubectl_commands.exec( local_shell, pod_name, "bash", args: "-it", kubeconfig_path: kubeconfig_path, interactive: true, namespace: deployer_namespace ) true rescue KuberKit::Error => e ui.print_error("Error", e.message) false end end
Version data entries
4 entries across 4 versions & 1 rubygems