From b5f4a79365d583d65ea314b463bcb68b7a77ccf6 Mon Sep 17 00:00:00 2001
From: Frank Ritchie <frankaritchie@gmail.com>
Date: Tue, 23 Oct 2018 15:51:17 -0400
Subject: [PATCH] Add bin_dir to kubectl version check

---
 roles/upgrade/pre-upgrade/tasks/main.yml | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/roles/upgrade/pre-upgrade/tasks/main.yml b/roles/upgrade/pre-upgrade/tasks/main.yml
index 9105d28ea..a81e90806 100644
--- a/roles/upgrade/pre-upgrade/tasks/main.yml
+++ b/roles/upgrade/pre-upgrade/tasks/main.yml
@@ -33,7 +33,7 @@
   when: needs_cordoning
 
 - name: Check kubectl version
-  command: kubectl version --client --short
+  command: "{{ bin_dir }}/kubectl version --client --short"
   register: kubectl_version
   delegate_to: "{{ groups['kube-master'][0] }}"
   run_once: yes
-- 
GitLab