Sha256: ce6ceb41d3fcb3aa99519937f4c5abc81388d41cb025e0088824d63fda6b2916
Contents?: true
Size: 764 Bytes
Versions: 2
Compression:
Stored size: 764 Bytes
Contents
class KuberKit::ShellLauncher::Strategies::Kubernetes < KuberKit::ShellLauncher::Strategies::Abstract include KuberKit::Import[ "core.artifact_path_resolver", "shell.kubectl_commands", "configs", ] Contract KuberKit::Shell::AbstractShell => Any def call(shell) kubeconfig_path = KuberKit.current_configuration.kubeconfig_path if kubeconfig_path.is_a?(KuberKit::Core::ArtifactPath) kubeconfig_path = artifact_path_resolver.call(kubeconfig_path) end deployer_namespace = KuberKit.current_configuration.deployer_namespace if deployer_namespace kubectl_commands.set_namespace(shell, deployer_namespace, kubeconfig_path: kubeconfig_path) end shell.replace!(env: ["KUBECONFIG=#{kubeconfig_path}"]) end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
kuber_kit-0.9.5 | lib/kuber_kit/shell_launcher/strategies/kubernetes.rb |
kuber_kit-0.9.4 | lib/kuber_kit/shell_launcher/strategies/kubernetes.rb |