From c64ad2db4f3793e0af96fef670752a9aeb45bc90 Mon Sep 17 00:00:00 2001
From: Sreejith Punnapuzha <sreejith.punnapuzha@outlook.com>
Date: Fri, 19 Jun 2020 13:17:45 -0500
Subject: [PATCH] Update kubectl version

This commit updates kubectl version from 1.16.2 to 1.17.4 as part of
gate setup

Change-Id: I88728be65474ee7ce57f243e1356b84c7609a45f
Signed-off-by: Sreejith Punnapuzha <sreejith.punnapuzha@outlook.com>
---
 Makefile                               | 2 +-
 roles/install-kubectl/tasks/main.yml   | 4 ++--
 tools/deployment/01_install_kubectl.sh | 2 +-
 3 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/Makefile b/Makefile
index c30513d7d..b1155c41a 100644
--- a/Makefile
+++ b/Makefile
@@ -48,7 +48,7 @@ DOCS_DIR            ?= docs
 # document validation options
 UNAME               != uname
 export KIND_URL     ?= https://kind.sigs.k8s.io/dl/v0.8.1/kind-$(UNAME)-amd64
-KUBECTL_VERSION     ?= v1.16.2
+KUBECTL_VERSION     ?= v1.17.4
 export KUBECTL_URL  ?= https://storage.googleapis.com/kubernetes-release/release/${KUBECTL_VERSION}/bin/linux/amd64/kubectl
 
 .PHONY: depend
diff --git a/roles/install-kubectl/tasks/main.yml b/roles/install-kubectl/tasks/main.yml
index 795658e59..5a92e2ea7 100644
--- a/roles/install-kubectl/tasks/main.yml
+++ b/roles/install-kubectl/tasks/main.yml
@@ -12,7 +12,7 @@
 
 - name: install kubectl binary
   shell: |
-    curl -sSLo /usr/local/bin/kubectl https://storage.googleapis.com/kubernetes-release/release/v1.16.2/bin/linux/amd64/kubectl
+    curl -sSLo /usr/local/bin/kubectl https://storage.googleapis.com/kubernetes-release/release/v1.17.4/bin/linux/amd64/kubectl
     chmod +x /usr/local/bin/kubectl
   become: yes
   args:
@@ -20,4 +20,4 @@
   environment:
     http_proxy: "{{ proxy.http }}"
     https_proxy: "{{ proxy.http }}"
-    no_proxy: "{{ proxy.noproxy }}"
\ No newline at end of file
+    no_proxy: "{{ proxy.noproxy }}"
diff --git a/tools/deployment/01_install_kubectl.sh b/tools/deployment/01_install_kubectl.sh
index a936beaca..ac707832e 100755
--- a/tools/deployment/01_install_kubectl.sh
+++ b/tools/deployment/01_install_kubectl.sh
@@ -14,7 +14,7 @@
 
 set -xe
 
-: ${KUBE_VERSION:="v1.16.2"}
+: ${KUBE_VERSION:="v1.17.4"}
 
 # Install kubectl
 URL="https://storage.googleapis.com"