diff --git a/Makefile b/Makefile index 1c13ac2b4..e16ff43d9 100644 --- a/Makefile +++ b/Makefile @@ -59,6 +59,8 @@ install-kustomize: FORCE install-crd-ref-docs: FORCE @if ! hash crd-ref-docs 2>/dev/null; then printf "\e[1;36m>> Installing crd-ref-docs...\e[0m\n"; go install github.com/elastic/crd-ref-docs@latest; fi +setup: FORCE install-goimports install-golangci-lint install-shellcheck install-typos install-go-licence-detector install-addlicense prepare-static-check install-controller-gen + bin/golangci-lint-custom: .custom-gcl.yaml @hash golangci-lint 2>/dev/null || (printf "\e[1;31m>> golangci-lint not found, please install it first\e[0m\n"; exit 1) golangci-lint custom --destination $(LOCALBIN) --name golangci-lint-custom diff --git a/Makefile.maker.yaml b/Makefile.maker.yaml index ca4d0a800..d37d32894 100644 --- a/Makefile.maker.yaml +++ b/Makefile.maker.yaml @@ -98,6 +98,8 @@ verbatim: | install-crd-ref-docs: FORCE @if ! hash crd-ref-docs 2>/dev/null; then printf "\e[1;36m>> Installing crd-ref-docs...\e[0m\n"; go install github.com/elastic/crd-ref-docs@latest; fi + setup: FORCE install-goimports install-golangci-lint install-shellcheck install-typos install-go-licence-detector install-addlicense prepare-static-check install-controller-gen + bin/golangci-lint-custom: .custom-gcl.yaml @hash golangci-lint 2>/dev/null || (printf "\e[1;31m>> golangci-lint not found, please install it first\e[0m\n"; exit 1) golangci-lint custom --destination $(LOCALBIN) --name golangci-lint-custom diff --git a/README.md b/README.md index ef21b7da0..0362be94d 100644 --- a/README.md +++ b/README.md @@ -24,6 +24,15 @@ Network-operator is a project built using Kubebuilder and controller-runtime to - docker version 28+. - kubectl version v1.33.1+. - Access to a Kubernetes v1.33.0+ cluster. +- kind version 0.32.0+ +- Tilt version v0.37.3+ +- gh version 2.93.0+ +- coreutils 9.11+ + +Install tools and Go dependencies +```sh +make setup +``` ### To Deploy on the cluster