From 33e738395bdeca1956465fa31bbe86d5c9408aa6 Mon Sep 17 00:00:00 2001
From: Pawel Krupa <pkrupa@redhat.com>
Date: Mon, 10 Sep 2018 15:02:52 +0200
Subject: [PATCH] use origin-release images for tooling

---
 hack/go-fmt.sh  | 3 +--
 hack/go-lint.sh | 4 ++--
 hack/go-vet.sh  | 2 +-
 3 files changed, 4 insertions(+), 5 deletions(-)

diff --git a/hack/go-fmt.sh b/hack/go-fmt.sh
index c94e8232d3..04c82bf1e4 100755
--- a/hack/go-fmt.sh
+++ b/hack/go-fmt.sh
@@ -9,7 +9,6 @@ else
     --env IS_CONTAINER=TRUE \
     --volume "${PWD}:/go/src/sigs.k8s.io/cluster-api-provider-aws:z" \
     --workdir /go/src/sigs.k8s.io/cluster-api-provider-aws \
-    --entrypoint sh \
-    quay.io/coreos/golang-testing \
+    openshift/origin-release:golang-1.10 \
     ./hack/go-fmt.sh "${@}"
 fi
diff --git a/hack/go-lint.sh b/hack/go-lint.sh
index 534574169b..417d47ce6f 100755
--- a/hack/go-lint.sh
+++ b/hack/go-lint.sh
@@ -4,11 +4,11 @@
 if [ "$IS_CONTAINER" != "" ]; then
   golint -set_exit_status "${@}"
 else
+  echo "OK"
   docker run --rm \
     --env IS_CONTAINER=TRUE \
     --volume "${PWD}:/go/src/sigs.k8s.io/cluster-api-provider-aws:z" \
     --workdir /go/src/sigs.k8s.io/cluster-api-provider-aws \
-    --entrypoint sh \
-    quay.io/coreos/golang-testing \
+    openshift/origin-release:golang-1.10 \
     ./hack/go-lint.sh "${@}"
 fi
diff --git a/hack/go-vet.sh b/hack/go-vet.sh
index 4b396db60a..c854533e8c 100755
--- a/hack/go-vet.sh
+++ b/hack/go-vet.sh
@@ -6,6 +6,6 @@ else
     --env IS_CONTAINER=TRUE \
     --volume "${PWD}:/go/src/sigs.k8s.io/cluster-api-provider-aws:z" \
     --workdir /go/src/sigs.k8s.io/cluster-api-provider-aws \
-    quay.io/coreos/golang-testing \
+    openshift/origin-release:golang-1.10 \
     ./hack/go-vet.sh "${@}"
 fi;