@@ -79,7 +79,7 @@ module ClusterTools
7979 cluster_tools_pod_name = pods[0 ].dig?(" metadata" , " name" ) if pods[0 ]?
8080 Log .info { " cluster_tools_pod_name: #{ cluster_tools_pod_name } " }
8181
82- KubectlClient ::Utils .exec(cluster_tools_pod_name, cli, namespace: self .namespace!)
82+ KubectlClient ::Utils .exec(" #{ cluster_tools_pod_name } " , cli, namespace: self .namespace!)
8383 end
8484
8585 def self.exec_by_node (cli : String , node_name : String ) : KubectlClient ::CMDResult ?
@@ -111,7 +111,7 @@ module ClusterTools
111111 # 'pods_by_nodes' fetches pods from all namespaces so they
112112 # do not have to be passed the namespace to perform operations.
113113 pod_name = get_cluster_tools_pod_on_node(node)
114- exec = KubectlClient ::Utils .exec(pod_name, cli, namespace: self .namespace)
114+ exec = KubectlClient ::Utils .exec(" #{ pod_name } " , cli, namespace: self .namespace)
115115 Log .debug { " ClusterTools exec: #{ exec } " }
116116 exec
117117 end
@@ -120,7 +120,7 @@ module ClusterTools
120120 # 'pods_by_nodes' fetches pods from all namespaces so they
121121 # do not have to be passed the namespace to perform operations.
122122 pod_name = get_cluster_tools_pod_on_node(node)
123- exec = KubectlClient ::Utils .exec_bg(pod_name, cli, namespace: self .namespace)
123+ exec = KubectlClient ::Utils .exec_bg(" #{ pod_name } " , cli, namespace: self .namespace)
124124 Log .debug { " ClusterTools exec: #{ exec } " }
125125 exec
126126 end
0 commit comments