Skip to content

Commit

Permalink
Merge pull request #8 from jaypipes/delta
Browse files Browse the repository at this point in the history
modify reconciler to use new Delta() compare
  • Loading branch information
jaypipes authored Mar 17, 2021
2 parents 091c1fd + 8276d57 commit 759c58c
Show file tree
Hide file tree
Showing 16 changed files with 825 additions and 68 deletions.
13 changes: 12 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
SHELL := /bin/bash # Use bash syntax

# Set up variables
GOPATH ?= "$(HOME)/go"
GO111MODULE=on
K8S_APIMACHINERY_VERSION = $(shell go list -m -f '{{ .Version }}' k8s.io/apimachinery)
K8S_APIMACHINERY_DIR = "$(GOPATH)/pkg/mod/k8s.io/apimachinery@$(K8S_APIMACHINERY_VERSION)"

.PHONY: all test clean-mocks mocks

Expand All @@ -20,6 +22,15 @@ mocks: install-mockery ## Build mocks
@echo -n "building mocks for pkg/types ... "
@bin/mockery --quiet --all --tags=codegen --case=underscore --output=mocks/pkg/types --dir=pkg/types
@echo "ok."
@echo -n "building mocks for k8s.io/apimachinery/pkg/apis/meta/v1 ... "
@bin/mockery --quiet --name=Object --case=underscore --output=mocks/apimachinery/pkg/apis/meta/v1 --dir="$(K8S_APIMACHINERY_DIR)/pkg/apis/meta/v1"
@echo "ok."
@echo -n "building mocks for k8s.io/apimachinery/runtime ... "
@bin/mockery --quiet --name=Object --case=underscore --output=mocks/apimachinery/pkg/runtime --dir="$(K8S_APIMACHINERY_DIR)/pkg/runtime"
@echo "ok."
@echo -n "building mocks for k8s.io/apimachinery/runtime/schema ... "
@bin/mockery --quiet --name=ObjectKind --case=underscore --output=mocks/apimachinery/pkg/runtime/schema --dir="$(K8S_APIMACHINERY_DIR)/pkg/runtime/schema"
@echo "ok."

help: ## Show this help.
@grep -F -h "##" $(MAKEFILE_LIST) | grep -F -v grep | sed -e 's/\\$$//' \
Expand Down
333 changes: 333 additions & 0 deletions mocks/apimachinery/pkg/apis/meta/v1/object.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 759c58c

Please sign in to comment.