File tree Expand file tree Collapse file tree 1 file changed +7
-10
lines changed
crates/stackable-operator/src/utils Expand file tree Collapse file tree 1 file changed +7
-10
lines changed Original file line number Diff line number Diff line change @@ -15,10 +15,10 @@ pub enum Error {
15
15
#[ snafu( display( "failed to list nodes" ) ) ]
16
16
ListNodes { source : kube:: Error } ,
17
17
18
- #[ snafu( display( "failed to build \" /api/v1/nodes/{node_name}/proxy/configz \" request " ) ) ]
19
- ConfigzRequest {
18
+ #[ snafu( display( "failed to build request for url path \" {url_path} \" " ) ) ]
19
+ BuildConfigzRequest {
20
20
source : http:: Error ,
21
- node_name : String ,
21
+ url_path : String ,
22
22
} ,
23
23
24
24
#[ snafu( display( "failed to fetch kubelet config from node {node:?}" ) ) ]
@@ -59,13 +59,10 @@ impl KubeletConfig {
59
59
let node = nodes. iter ( ) . next ( ) . context ( EmptyKubernetesNodesListSnafu ) ?;
60
60
let node_name = node. name_any ( ) ;
61
61
62
- let url = format ! ( "/api/v1/nodes/{node_name}/proxy/configz" ) ;
63
- let req =
64
- http:: Request :: get ( url)
65
- . body ( Default :: default ( ) )
66
- . context ( ConfigzRequestSnafu {
67
- node_name : node_name. clone ( ) ,
68
- } ) ?;
62
+ let url_path = format ! ( "/api/v1/nodes/{node_name}/proxy/configz" ) ;
63
+ let req = http:: Request :: get ( url_path. clone ( ) )
64
+ . body ( Default :: default ( ) )
65
+ . context ( BuildConfigzRequestSnafu { url_path } ) ?;
69
66
70
67
let resp = client
71
68
. request :: < ProxyConfigResponse > ( req)
You can’t perform that action at this time.
0 commit comments