This repository has been archived by the owner on Nov 16, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 280
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
26 changed files
with
90 additions
and
411 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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -107,6 +107,11 @@ setup/operator-sdk: | |
@echo Installing Operator SDK | ||
@curl -Lo operator-sdk ${OPERATOR_SDK_DOWNLOAD_URL} && chmod +x operator-sdk && sudo mv operator-sdk /usr/local/bin/ | ||
|
||
.PHONY: setup/linter | ||
setup/linter: | ||
@echo Installing Linter | ||
@curl -sSfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s -- -b $(shell go env GOPATH)/bin v1.26.0 | ||
|
||
.PHONY: code/run | ||
code/run: | ||
@operator-sdk run --local --namespace=${NAMESPACE} | ||
|
@@ -139,10 +144,7 @@ code/fix: | |
.PHONY: code/lint | ||
code/lint: | ||
@echo "--> Running golangci-lint" | ||
@which golangci-lint 2>/dev/null ; if [ $$? -eq 1 ]; then \ | ||
go get github.com/golangci/golangci-lint/cmd/[email protected]; \ | ||
fi | ||
golangci-lint run | ||
@$(shell go env GOPATH)/bin/golangci-lint run --timeout 10m | ||
|
||
############################## | ||
# CI # | ||
|
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
Oops, something went wrong.