Skip to content

Commit

Permalink
use handbuilt request for link
Browse files Browse the repository at this point in the history
  • Loading branch information
michaeljguarino committed Jan 13, 2023
1 parent f0d2f5f commit b91830f
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion lib/console/watchers/pod.ex
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,12 @@ defmodule Console.Watchers.Pod do

def handle_info(:start, state) do
Logger.info "starting pod watcher"
request = CoreV1.list_pod_for_all_namespaces!()
request = %Kazan.Request{
method: "get",
path: "/api/v1/pods",
query_params: %{},
response_model: CoreV1.Pod
}
{:ok, pid} = Watcher.start_link(request, send_to: self(), recv_timeout: 15_000)

:timer.send_interval(5000, :watcher_ping)
Expand Down

0 comments on commit b91830f

Please sign in to comment.