forked from infinispan/infinispan-operator
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Allow StatefulSet PriorityClass to be configured. Resolves infinispan…
- Loading branch information
1 parent
6fc0597
commit a3562eb
Showing
13 changed files
with
1,461 additions
and
22 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -49,7 +49,7 @@ lint: golangci-lint | |
|
||
.PHONY: test | ||
## Execute tests | ||
test: manager manifests envtest | ||
test: manager manifests generate-mocks envtest | ||
KUBEBUILDER_ASSETS="$(shell $(ENVTEST) use $(ENVTEST_K8S_VERSION) -p path)" go test ./api/... ./controllers/... ./pkg/... -coverprofile cover.out | ||
|
||
.PHONY: infinispan-test | ||
|
@@ -159,6 +159,11 @@ generate: controller-gen rice | |
$(RICE) embed-go -i controllers/grafana.go -i pkg/templates/templates.go | ||
find . -type f -name 'rice-box.go' -exec sed -i "s|time.Unix(.*, 0)|time.Unix(1620137619, 0)|" {} \; | ||
|
||
.PHONY: generate-mocks | ||
## Generate testing mocks | ||
generate-mocks: mockgen | ||
$(MOCKGEN) -source=./pkg/reconcile/pipeline/infinispan/api.go -destination=./pkg/reconcile/pipeline/infinispan/api_mocks.go -package=infinispan | ||
|
||
.PHONY: operator-build | ||
## Build the operator image | ||
operator-build: manager | ||
|
@@ -199,6 +204,12 @@ export GO_JUNIT_REPORT = $(shell pwd)/bin/go-junit-report | |
go-junit-report: | ||
$(call go-get-tool,$(GO_JUNIT_REPORT),github.com/jstemmer/go-junit-report@latest) | ||
|
||
export MOCKGEN = $(shell pwd)/bin/mockgen | ||
.PHONY: mockgen | ||
## Download mockgen locally if necessary | ||
mockgen: | ||
$(call go-get-tool,$(MOCKGEN),github.com/golang/mock/[email protected]) | ||
|
||
ENVTEST = $(shell pwd)/bin/setup-envtest | ||
.PHONY: envtest | ||
## Download envtest-setup locally if necessary. | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Oops, something went wrong.