Skip to content

Commit 58e802b

Browse files
committed
Add zig executor url
1 parent c3a2a22 commit 58e802b

3 files changed

Lines changed: 6 additions & 9 deletions

File tree

k8s/Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ kb-get-services:
1818
helm-init: helm-install-app
1919

2020
helm-upgrade-app:
21-
helm upgrade --install app $(PWD)/app-chart
21+
helm upgrade --install app $(PWD)/app-chart -f $(PWD)/envs/common/values.yaml -f $(PWD)/envs/simple/values.yaml
2222

2323
helm-rollback-app:
2424
helm rollback app 108

services/app/apps/codebattle/lib/codebattle/code_check/checker.ex

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,4 @@ defmodule Codebattle.CodeCheck.Checker do
7878
Application.fetch_env!(:codebattle, :checker_executor)
7979
end
8080
end
81-
82-
# defp get_executor, do: Codebattle.CodeCheck.Executor.RemoteZig
8381
end

services/app/apps/codebattle/lib/codebattle/code_check/executor/remote_zig.ex

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -96,10 +96,9 @@ defmodule Codebattle.CodeCheck.Executor.RemoteZig do
9696
to_string(:rand.uniform(10_000_000))
9797
end
9898

99-
defp runner_url(_lang), do: "http://localhost:4040/run"
100-
101-
# defp runner_url(lang) do
102-
# namespace = Application.get_env(:codebattle, :k8s_namespace, "default")
103-
# "http://runner-#{lang}.#{namespace}.svc/run"
104-
# end
99+
defp runner_url(lang) do
100+
namespace = Application.get_env(:codebattle, :k8s_namespace, "default")
101+
"http://runner-#{lang}.#{namespace}.svc/run"
102+
# "http://localhost:4040/run"
103+
end
105104
end

0 commit comments

Comments
 (0)