Sha256: 61a989ad18e713971c2247a4ebaacd71749b7935329f0e5667064182c46cd4ba
Contents?: true
Size: 758 Bytes
Versions: 2
Compression:
Stored size: 758 Bytes
Contents
class KuberKit::ServiceDeployer::Strategies::Kubernetes < KuberKit::ServiceDeployer::Strategies::Abstract include KuberKit::Import[ "service_deployer.service_reader", "shell.kubectl_commands", "configs", ] Contract KuberKit::Shell::AbstractShell, KuberKit::Core::Service => Any def restart(shell, service) service_config = service_reader.read(shell, service) config_path = "#{configs.service_config_dir}/#{service.name}.yml" shell.write(config_path, service_config) kubeconfig_path = KuberKit.current_configuration.kubeconfig_path kubectl_commands.apply_file(shell, config_path, kubeconfig_path: kubeconfig_path) kubectl_commands.rolling_restart(shell, service.uri, kubeconfig_path: kubeconfig_path) end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
kuber_kit-0.1.5 | lib/kuber_kit/service_deployer/strategies/kubernetes.rb |
kuber_kit-0.1.4 | lib/kuber_kit/service_deployer/strategies/kubernetes.rb |