Skip to content

Commit 50a3911

Browse files
committed
fix the attach/2 preparation
1 parent 55571cf commit 50a3911

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

lib/kubegen/resource.ex

+5-3
Original file line numberDiff line numberDiff line change
@@ -69,9 +69,11 @@ defmodule Kubegen.Resource do
6969
req_func =
7070
quote do
7171
defp req() do
72-
unquote(kubeconfig_pipeline)
73-
|> Kubereq.Kubeconfig.load()
74-
|> Kubereq.attach(resource_path: @resource_path)
72+
Req.new()
73+
|> Kubereq.attach(
74+
kubeconfig: unquote(kubeconfig_pipeline),
75+
resource_path: @resource_path
76+
)
7577
end
7678
end
7779

0 commit comments

Comments
 (0)