Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[ci] Temporarily disable kubeval validation #2241

Merged
merged 5 commits into from
Apr 2, 2020
Merged
Show file tree
Hide file tree
Changes from 4 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
30 changes: 17 additions & 13 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,8 @@ SUBDIRS := \
m3ninx \
aggregator \
ctl \
kube \
# Disabled during kubeval dependency issue
# kube \

TOOLS := \
read_ids \
Expand All @@ -107,13 +108,13 @@ install-vendor-m3:

# Some deps were causing panics when using GRPC and etcd libraries were used.
# See issue: https://github.com/etcd-io/etcd/issues/9357
# TODO: Move M3 to go mod to avoid the issue entirely instead of this hack
# TODO: Move M3 to go mod to avoid the issue entirely instead of this hack
# (which is bad and we should feel bad).
# $ go test -v
# panic: /debug/requests is already registered. You may have two independent
# copies of golang.org/x/net/trace in your binary, trying to maintain separate
# panic: /debug/requests is already registered. You may have two independent
# copies of golang.org/x/net/trace in your binary, trying to maintain separate
# state. This may involve a vendored copy of golang.org/x/net/trace.
#
#
# goroutine 1 [running]:
# github.com/m3db/m3/vendor/go.etcd.io/etcd/vendor/golang.org/x/net/trace.init.0()
# /Users/r/go/src/github.com/m3db/m3/vendor/go.etcd.io/etcd/vendor/golang.org/x/net/trace/trace.go:123 +0x1cd
Expand Down Expand Up @@ -323,17 +324,19 @@ test-ci-integration:

define SUBDIR_RULES

# Temporarily remove kube validation until we fix a dependency issue with
# kubeval (one of its depenencies depends on go1.13).
#
# We override the rules for `*-gen-kube` to just generate the kube manifest
# bundle.
ifeq ($(SUBDIR), kube)
# bundle. ifeq ($(SUBDIR), kube)

# Builds the single kube bundle from individual manifest files.
all-gen-kube: install-tools
@echo "--- Generating kube bundle"
@./kube/scripts/build_bundle.sh
find kube -name '*.yaml' -print0 | PATH=$(combined_bin_paths):$(PATH) xargs -0 kubeval -v=1.12.0
# all-gen-kube: install-tools
# @echo "--- Generating kube bundle"
# @./kube/scripts/build_bundle.sh
# find kube -name '*.yaml' -print0 | PATH=$(combined_bin_paths):$(PATH) xargs -0 kubeval -v=1.12.0

else
# else

.PHONY: mock-gen-$(SUBDIR)
mock-gen-$(SUBDIR): install-tools
Expand Down Expand Up @@ -430,7 +433,8 @@ metalint-$(SUBDIR): install-gometalinter install-linter-badtime install-linter-i
@(PATH=$(combined_bin_paths):$(PATH) $(metalint_check) \
$(metalint_config) $(metalint_exclude) src/$(SUBDIR))

endif
# endif kubeval
# endif

endef

Expand Down
4 changes: 0 additions & 4 deletions tools.json
Original file line number Diff line number Diff line change
Expand Up @@ -36,10 +36,6 @@
"Repository": "github.com/rakyll/statik",
"Commit": "19b88da8fc15428620782ba18f68423130e7ac7d"
},
{
"Repository": "github.com/garethr/kubeval",
"Commit": "c44f5193dc944abc00e60a1b041ce48b0ae03dfb"
},
{
"Repository": "github.com/google/go-jsonnet/cmd/jsonnet",
"Commit": "71a3e169581ece942e77bfc47840a806eb868ca8"
Expand Down