You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Remove dependabot, add more tools to renovate (#2448)
Problem: dependabot is not very configurable and can't keep track of all
of our dependencies. It also has been missing some updates lately.
Solution: Remove dependabot and use renovate. This also allows us to
remove some dependencies from tools.go and control them directly in the
Makefile.
PREFIX ?= nginx-gateway-fabric## The name of the NGF image. For example, nginx-gateway-fabric
@@ -108,7 +120,7 @@ generate: ## Run go generate
108
120
109
121
.PHONY: generate-crds
110
122
generate-crds: ## Generate CRDs and Go types using kubebuilder
111
-
go run sigs.k8s.io/controller-tools/cmd/controller-gen crd object paths=./apis/... output:crd:artifacts:config=config/crd/bases
123
+
go run sigs.k8s.io/controller-tools/cmd/controller-gen@$(CONTROLLER_TOOLS_VERSION) crd object paths=./apis/... output:crd:artifacts:config=config/crd/bases
112
124
kubectl kustomize config/crd >deploy/crds.yaml
113
125
114
126
.PHONY: install-crds
@@ -128,11 +140,11 @@ generate-manifests: ## Generate manifests using Helm.
128
140
./scripts/generate-manifests.sh
129
141
130
142
generate-api-docs: ## Generate API docs
131
-
go run github.com/ahmetb/gen-crd-api-reference-docs -config site/config/api/config.json -template-dir site/config/api -out-file site/content/reference/api.md -api-dir "github.com/nginxinc/nginx-gateway-fabric/apis"
143
+
go run github.com/ahmetb/gen-crd-api-reference-docs@$(GEN_CRD_API_REFERENCE_DOCS_VERSION) -config site/config/api/config.json -template-dir site/config/api -out-file site/content/reference/api.md -api-dir "github.com/nginxinc/nginx-gateway-fabric/apis"
132
144
133
145
.PHONY: generate-helm-docs
134
146
generate-helm-docs: ## Generate the Helm chart documentation
go run github.com/norwoodj/helm-docs/cmd/helm-docs@$(HELM_DOCS_VERSION) --chart-search-root=charts --template-files _templates.gotmpl --template-files README.md.gotmpl
136
148
137
149
.PHONY: generate-all
138
150
generate-all: generate generate-crds generate-manifests generate-api-docs generate-helm-docs ## Generate all the necessary files
@@ -151,8 +163,8 @@ deps: ## Add missing and remove unused modules, verify deps and download them to
@kind version || (code=$$?;printf"\033[0;31mError\033[0m: there was a problem with kind. Follow the docs to install it https://kind.sigs.k8s.io/docs/user/quick-start/\n";exit$$code)
@@ -173,14 +185,9 @@ njs-fmt: ## Run prettier against the njs httpmatches module
173
185
vet: ## Run go vet against code
174
186
go vet ./...
175
187
176
-
.PHONY: check-golangci-lint
177
-
check-golangci-lint:
178
-
@golangci-lint --version || (code=$$?;printf"\033[0;31mError\033[0m: there was a problem with golangci-lint. Follow the docs to install it https://golangci-lint.run/welcome/install/\n";exit$$code)
179
-
@golangci-lint --version | grep -q $(GOLANGCI_LINT_VERSION)|| (printf "\033[0;33mWarning\033[0m: your golangci-lint version is different from the one specified in .pre-commit-config.yaml. The recommended version is $(GOLANGCI_LINT_VERSION)\n")
180
-
181
188
.PHONY: lint
182
-
lint: check-golangci-lint ## Run golangci-lint against code
183
-
golangci-lint run --fix
189
+
lint: ## Run golangci-lint against code
190
+
go run github.com/golangci/golangci-lint/cmd/golangci-lint@$(GOLANGCI_LINT_VERSION) run --fix
184
191
185
192
.PHONY: unit-test
186
193
unit-test: ## Run unit tests for the go code
@@ -199,7 +206,7 @@ njs-unit-test: ## Run unit tests for the njs httpmatches module
0 commit comments