Skip to content

Commit

Permalink
Add CRD schema validation
Browse files Browse the repository at this point in the history
  • Loading branch information
Dean-Coakley committed Mar 4, 2020
1 parent e505dbc commit 37b79d7
Show file tree
Hide file tree
Showing 22 changed files with 1,621 additions and 193 deletions.
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -41,3 +41,6 @@ default.pem

# IntelliJ IDEA
.idea

# Platform specific CRD schema generation scripts
hack/controller-gen-*
8 changes: 7 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -30,9 +30,15 @@ ifneq ($(BUILD_IN_CONTAINER),1)
./hack/verify-codegen.sh
endif

verify-crds:
./hack/verify-crds.sh

update-codegen:
./hack/update-codegen.sh

update-crds:
./hack/update-crds.sh

certificate-and-key:
ifeq ($(GENERATE_DEFAULT_CERT_AND_KEY),1)
./build/generate_default_cert_and_key.sh
Expand All @@ -43,7 +49,7 @@ ifneq ($(BUILD_IN_CONTAINER),1)
CGO_ENABLED=0 GO111MODULE=on GOFLAGS='-mod=vendor' GOOS=linux go build -installsuffix cgo -ldflags "-w -X main.version=${VERSION} -X main.gitCommit=${GIT_COMMIT}" -o nginx-ingress github.com/nginxinc/kubernetes-ingress/cmd/nginx-ingress
endif

container: test verify-codegen binary certificate-and-key
container: test verify-codegen verify-crds binary certificate-and-key
ifeq ($(BUILD_IN_CONTAINER),1)
docker build $(DOCKER_BUILD_OPTIONS) --build-arg IC_VERSION=$(VERSION)-$(GIT_COMMIT) --build-arg GIT_COMMIT=$(GIT_COMMIT) --build-arg VERSION=$(VERSION) --build-arg GOLANG_CONTAINER=$(GOLANG_CONTAINER) --target container -f $(DOCKERFILEPATH)/$(DOCKERFILE) -t $(PREFIX):$(TAG) .
else
Expand Down
35 changes: 0 additions & 35 deletions deployments/common/custom-resource-definitions.yaml

This file was deleted.

Loading

0 comments on commit 37b79d7

Please sign in to comment.