Add RNode implementation of label and annotation selectors.

This commit is contained in:
jregan
2020-11-26 14:47:23 -08:00
parent a51e4234c4
commit 56c8df7b85
17 changed files with 2853 additions and 5 deletions

View File

@@ -4,7 +4,7 @@
MYGOBIN := $(shell go env GOPATH)/bin
export PATH := $(MYGOBIN):$(PATH)
.PHONY: generate license fix vet fmt test lint tidy
.PHONY: generate license fix vet fmt test lint tidy clean
all: generate license fix vet fmt test lint tidy
fix:
@@ -19,17 +19,23 @@ generate:
license:
(which $(MYGOBIN)/addlicense || go get github.com/google/addlicense)
$(MYGOBIN)/addlicense -y 2019 -c "The Kubernetes Authors." -f LICENSE_TEMPLATE .
$(MYGOBIN)/addlicense -c "The Kubernetes Authors." -f LICENSE_TEMPLATE .
tidy:
go mod tidy
lint:
(which $(MYGOBIN)/golangci-lint || go get github.com/golangci/golangci-lint/cmd/golangci-lint@v1.19.1)
$(MYGOBIN)/golangci-lint run ./...
(which $(MYGOBIN)/golangci-lint || \
go get github.com/golangci/golangci-lint/cmd/golangci-lint@v1.19.1)
$(MYGOBIN)/golangci-lint \
--skip-dirs yaml/internal/k8sgen/pkg \
run ./...
test:
go test -cover ./...
vet:
go vet ./...
clean:
rm -rf yaml/internal/k8sgen/pkg