File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed
crates/stackable-operator/src/utils Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -14,10 +14,11 @@ use crate::commons::networking::DomainName;
14
14
pub enum Error {
15
15
#[ snafu( display( "failed to list nodes" ) ) ]
16
16
ListNodes { source : kube:: Error } ,
17
- #[ snafu( display( "failed to build proxy/configz request" ) ) ]
17
+
18
+ #[ snafu( display( "failed to build \" /proxy/configz\" request" ) ) ]
18
19
ConfigzRequest { source : http:: Error } ,
19
20
20
- #[ snafu( display( "failed to fetch kubelet config from node {node}" ) ) ]
21
+ #[ snafu( display( "failed to fetch kubelet config from node {node:? }" ) ) ]
21
22
FetchNodeKubeletConfig { source : kube:: Error , node : String } ,
22
23
23
24
#[ snafu( display( "failed to fetch `kubeletconfig` JSON key from configz response" ) ) ]
@@ -51,10 +52,9 @@ impl KubeletConfig {
51
52
. await
52
53
. context ( ListNodesSnafu ) ?;
53
54
let node = nodes. iter ( ) . next ( ) . context ( EmptyKubernetesNodesListSnafu ) ?;
55
+ let node_name = node. name_any ( ) ;
54
56
55
- let name = node. name_any ( ) ;
56
-
57
- let url = format ! ( "/api/v1/nodes/{}/proxy/configz" , name) ;
57
+ let url = format ! ( "/api/v1/nodes/{name_name}/proxy/configz" ) ;
58
58
let req = http:: Request :: get ( url)
59
59
. body ( Default :: default ( ) )
60
60
. context ( ConfigzRequestSnafu ) ?;
You can’t perform that action at this time.
0 commit comments