Skip to content

Commit d025300

Browse files
Fix kubectl discovery issue
1 parent 5462e08 commit d025300

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

leverage/containers/kubectl.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,8 @@ def configure(self, ci: ClusterInfo = None):
7878
logger.info("Done.")
7979

8080
def _get_eks_kube_config(self) -> str:
81-
exit_code, output = self._start_with_output(f"{self.entrypoint} output -no-color") # TODO: override on CM?
81+
tf_binary = self.TOFU_BINARY if "tofu" in self.image_tag else self.TERRAFORM_BINARY
82+
exit_code, output = self._start_with_output(f"{tf_binary} output -no-color") # TODO: override on CM?
8283
if exit_code:
8384
raise ExitError(exit_code, output)
8485

0 commit comments

Comments
 (0)