Sha256: 4967ee60d3eed40fb2a5beacc57780ff1f1f969d6044645e2f177e05dbec2f87
Contents?: true
Size: 836 Bytes
Versions: 8
Compression:
Stored size: 836 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}", "KUBER_KIT_SHELL_CONFIGURATION=#{KuberKit.current_configuration.name}"]) end end
Version data entries
8 entries across 8 versions & 1 rubygems