9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
|
# File 'lib/kuber_kit/defaults.rb', line 9
def init!
container["artifacts_sync.artifact_updater"].use_strategy(
container["artifacts_sync.strategies.git_updater"],
artifact_class: KuberKit::Core::Artifacts::Git
)
container["artifacts_sync.artifact_updater"].use_strategy(
container["artifacts_sync.strategies.null_updater"],
artifact_class: KuberKit::Core::Artifacts::Local
)
container["env_file_reader.reader"].use_reader(
container["env_file_reader.strategies.artifact_file"],
env_file_class: KuberKit::Core::EnvFiles::ArtifactFile
)
container["env_file_reader.reader"].use_reader(
container["env_file_reader.strategies.env_group"],
env_file_class: KuberKit::Core::EnvFiles::EnvGroup
)
container["template_reader.reader"].use_reader(
container["template_reader.strategies.artifact_file"],
template_class: KuberKit::Core::Templates::ArtifactFile
)
container["service_deployer.deployer"].register_strategy(
:kubernetes,
KuberKit::ServiceDeployer::Strategies::Kubernetes.new
)
container["service_deployer.deployer"].register_strategy(
:docker,
KuberKit::ServiceDeployer::Strategies::Docker.new
)
container["service_deployer.deployer"].register_strategy(
:docker_compose,
KuberKit::ServiceDeployer::Strategies::DockerCompose.new
)
container["service_deployer.deployer"].register_strategy(
:helm,
KuberKit::ServiceDeployer::Strategies::Helm.new
)
container["service_generator.generator"].register_strategy(
:helm,
KuberKit::ServiceGenerator::Strategies::Helm.new
)
container["shell_launcher.launcher"].register_strategy(
:kubernetes,
KuberKit::ShellLauncher::Strategies::Kubernetes.new
)
end
|