From f14444be6698373acf18e96d839753d862b0fcdf Mon Sep 17 00:00:00 2001 From: Tejal Desai Date: Wed, 19 Feb 2020 13:48:28 -0800 Subject: [PATCH] move unused pod validator code to skaffold --- go.sum | 2 ++ .../kubernetes/status_check.go => diag/validator/pod.go} | 2 +- .../status_check_test.go => diag/validator/pod_test.go} | 2 +- 3 files changed, 4 insertions(+), 2 deletions(-) rename pkg/{skaffold/kubernetes/status_check.go => diag/validator/pod.go} (99%) rename pkg/{skaffold/kubernetes/status_check_test.go => diag/validator/pod_test.go} (99%) diff --git a/go.sum b/go.sum index c9974284ae6..050487a04e4 100644 --- a/go.sum +++ b/go.sum @@ -271,6 +271,7 @@ github.com/google/go-cmp v0.2.0/go.mod h1:oXzfMopK8JAjlY9xF4vHSVASa0yLyX7SntLO5a github.com/google/go-cmp v0.3.0/go.mod h1:8QqcDgzrUqlUb/G2PQTWiueGozuR1884gddMywk6iLU= github.com/google/go-cmp v0.3.1 h1:Xye71clBPdm5HgqGwUkwhbynsUJZhDbS20FvLhQ2izg= github.com/google/go-cmp v0.3.1/go.mod h1:8QqcDgzrUqlUb/G2PQTWiueGozuR1884gddMywk6iLU= +github.com/google/go-cmp v0.4.0/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= github.com/google/go-containerregistry v0.0.0-20191018211754-b77a90c667af/go.mod h1:9kIomAeXUmwhqeYS2zoEuQ0sc2GOVmNW7t3y9aNQL1o= github.com/google/go-containerregistry v0.0.0-20191218175032-34fb8ff33bed h1:0AwV9UBwwKPKrfpTYLOKr8ymevanUxrsSEkAo0uU9aA= github.com/google/go-containerregistry v0.0.0-20191218175032-34fb8ff33bed/go.mod h1:rodaC7jYStJ2mjR8Y+5a/jCzcRPFRH74KmqSnJC88co= @@ -734,6 +735,7 @@ golang.org/x/tools v0.0.0-20191213032237-7093a17b0467/go.mod h1:b+2E5dAYhXwXZwtn golang.org/x/xerrors v0.0.0-20190717185122-a985d3407aa7/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= golang.org/x/xerrors v0.0.0-20191011141410-1b5146add898 h1:/atklqdjdhuosWIl6AIbOeHJjicWYPqR9bpxqxYG2pA= golang.org/x/xerrors v0.0.0-20191011141410-1b5146add898/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= +golang.org/x/xerrors v0.0.0-20191204190536-9bdfabe68543/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= gonum.org/v1/gonum v0.0.0-20190331200053-3d26580ed485/go.mod h1:2ltnJ7xHfj0zHS40VVPYEAAMTa3ZGguvHGBSJeRWqE0= gonum.org/v1/netlib v0.0.0-20190313105609-8cb42192e0e0/go.mod h1:wa6Ws7BG/ESfp6dHfk7C6KdzKA7wR7u/rKwOGE66zvw= gonum.org/v1/netlib v0.0.0-20190331212654-76723241ea4e/go.mod h1:kS+toOQn6AQKjmKJ7gzohV1XkqsFehRA2FbsbkopSuQ= diff --git a/pkg/skaffold/kubernetes/status_check.go b/pkg/diag/validator/pod.go similarity index 99% rename from pkg/skaffold/kubernetes/status_check.go rename to pkg/diag/validator/pod.go index 1713c39e218..ce3637199d0 100644 --- a/pkg/skaffold/kubernetes/status_check.go +++ b/pkg/diag/validator/pod.go @@ -14,7 +14,7 @@ See the License for the specific language governing permissions and limitations under the License. */ -package kubernetes +package validator import ( "fmt" diff --git a/pkg/skaffold/kubernetes/status_check_test.go b/pkg/diag/validator/pod_test.go similarity index 99% rename from pkg/skaffold/kubernetes/status_check_test.go rename to pkg/diag/validator/pod_test.go index e21d8a59792..8ee30965aff 100644 --- a/pkg/skaffold/kubernetes/status_check_test.go +++ b/pkg/diag/validator/pod_test.go @@ -14,7 +14,7 @@ See the License for the specific language governing permissions and limitations under the License. */ -package kubernetes +package validator import ( "testing"