Skip to content

Commit

Permalink
Merge pull request #229 from cert-manager/self-upgrade
Browse files Browse the repository at this point in the history
[CI] Merge self-upgrade into main
  • Loading branch information
jetstack-bot authored Apr 4, 2024
2 parents 4a22361 + dd4c0f4 commit c55524a
Show file tree
Hide file tree
Showing 5 changed files with 16 additions and 25 deletions.
6 changes: 0 additions & 6 deletions .golangci.yaml
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
issues:
exclude-rules:
- linters:
- errorlint
- prealloc
- gosec
text: ".*"
linters:
Expand All @@ -13,7 +11,6 @@ linters:
- asciicheck
- bidichk
- bodyclose
- containedctx
- contextcheck
- decorder
- dogsled
Expand All @@ -22,7 +19,6 @@ linters:
- errcheck
- errchkjson
- errname
- errorlint
- execinquery
- exhaustive
- exportloopref
Expand All @@ -34,7 +30,6 @@ linters:
- gocritic
- gofmt
- goheader
- goimports
- gomoddirectives
- gomodguard
- goprintffuncname
Expand All @@ -56,7 +51,6 @@ linters:
- nilnil
- noctx
- nosprintfhostport
- prealloc
- predeclared
- promlinter
- protogetter
Expand Down
26 changes: 13 additions & 13 deletions klone.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,65 +10,65 @@ targets:
- folder_name: boilerplate
repo_url: https://github.com/cert-manager/makefile-modules.git
repo_ref: main
repo_hash: 9ce477bd5bd50415ebf74ec26d8dc3c6e06c9e03
repo_hash: ceafef61921de400cb6ce75c5e5e40c63a3ca719
repo_path: modules/boilerplate
- folder_name: cert-manager
repo_url: https://github.com/cert-manager/makefile-modules.git
repo_ref: main
repo_hash: 9ce477bd5bd50415ebf74ec26d8dc3c6e06c9e03
repo_hash: ceafef61921de400cb6ce75c5e5e40c63a3ca719
repo_path: modules/cert-manager
- folder_name: controller-gen
repo_url: https://github.com/cert-manager/makefile-modules.git
repo_ref: main
repo_hash: 9ce477bd5bd50415ebf74ec26d8dc3c6e06c9e03
repo_hash: ceafef61921de400cb6ce75c5e5e40c63a3ca719
repo_path: modules/controller-gen
- folder_name: generate-verify
repo_url: https://github.com/cert-manager/makefile-modules.git
repo_ref: main
repo_hash: 9ce477bd5bd50415ebf74ec26d8dc3c6e06c9e03
repo_hash: ceafef61921de400cb6ce75c5e5e40c63a3ca719
repo_path: modules/generate-verify
- folder_name: go
repo_url: https://github.com/cert-manager/makefile-modules.git
repo_ref: main
repo_hash: 9ce477bd5bd50415ebf74ec26d8dc3c6e06c9e03
repo_hash: ceafef61921de400cb6ce75c5e5e40c63a3ca719
repo_path: modules/go
- folder_name: helm
repo_url: https://github.com/cert-manager/makefile-modules.git
repo_ref: main
repo_hash: 9ce477bd5bd50415ebf74ec26d8dc3c6e06c9e03
repo_hash: ceafef61921de400cb6ce75c5e5e40c63a3ca719
repo_path: modules/helm
- folder_name: help
repo_url: https://github.com/cert-manager/makefile-modules.git
repo_ref: main
repo_hash: 9ce477bd5bd50415ebf74ec26d8dc3c6e06c9e03
repo_hash: ceafef61921de400cb6ce75c5e5e40c63a3ca719
repo_path: modules/help
- folder_name: kind
repo_url: https://github.com/cert-manager/makefile-modules.git
repo_ref: main
repo_hash: 9ce477bd5bd50415ebf74ec26d8dc3c6e06c9e03
repo_hash: ceafef61921de400cb6ce75c5e5e40c63a3ca719
repo_path: modules/kind
- folder_name: klone
repo_url: https://github.com/cert-manager/makefile-modules.git
repo_ref: main
repo_hash: 9ce477bd5bd50415ebf74ec26d8dc3c6e06c9e03
repo_hash: ceafef61921de400cb6ce75c5e5e40c63a3ca719
repo_path: modules/klone
- folder_name: oci-build
repo_url: https://github.com/cert-manager/makefile-modules.git
repo_ref: main
repo_hash: 9ce477bd5bd50415ebf74ec26d8dc3c6e06c9e03
repo_hash: ceafef61921de400cb6ce75c5e5e40c63a3ca719
repo_path: modules/oci-build
- folder_name: oci-publish
repo_url: https://github.com/cert-manager/makefile-modules.git
repo_ref: main
repo_hash: 9ce477bd5bd50415ebf74ec26d8dc3c6e06c9e03
repo_hash: ceafef61921de400cb6ce75c5e5e40c63a3ca719
repo_path: modules/oci-publish
- folder_name: repository-base
repo_url: https://github.com/cert-manager/makefile-modules.git
repo_ref: main
repo_hash: 9ce477bd5bd50415ebf74ec26d8dc3c6e06c9e03
repo_hash: ceafef61921de400cb6ce75c5e5e40c63a3ca719
repo_path: modules/repository-base
- folder_name: tools
repo_url: https://github.com/cert-manager/makefile-modules.git
repo_ref: main
repo_hash: 9ce477bd5bd50415ebf74ec26d8dc3c6e06c9e03
repo_hash: ceafef61921de400cb6ce75c5e5e40c63a3ca719
repo_path: modules/tools
4 changes: 0 additions & 4 deletions make/_shared/go/.golangci.override.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ linters:
- asciicheck
- bidichk
- bodyclose
- containedctx
- contextcheck
- decorder
- dogsled
Expand All @@ -15,7 +14,6 @@ linters:
- errcheck
- errchkjson
- errname
- errorlint
- execinquery
- exhaustive
- exportloopref
Expand All @@ -27,7 +25,6 @@ linters:
- gocritic
- gofmt
- goheader
- goimports
- gomoddirectives
- gomodguard
- goprintffuncname
Expand All @@ -49,7 +46,6 @@ linters:
- nilnil
- noctx
- nosprintfhostport
- prealloc
- predeclared
- promlinter
- protogetter
Expand Down
2 changes: 1 addition & 1 deletion make/_shared/go/01_mod.mk
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ verify-golangci-lint: | $(NEEDS_GOLANGCI-LINT) $(NEEDS_YQ) $(bin_dir)/scratch
| while read d; do \
echo "Running '$(bin_dir)/tools/golangci-lint run --go $(VENDORED_GO_VERSION) -c $(CURDIR)/$(golangci_lint_config)' in directory '$${d}'"; \
pushd "$${d}" >/dev/null; \
$(GOLANGCI-LINT) run --go $(VENDORED_GO_VERSION) -c $(CURDIR)/$(golangci_lint_config) || exit; \
$(GOLANGCI-LINT) run --go $(VENDORED_GO_VERSION) -c $(CURDIR)/$(golangci_lint_config) --timeout 4m || exit; \
popd >/dev/null; \
echo ""; \
done
Expand Down
3 changes: 2 additions & 1 deletion make/_shared/oci-publish/01_mod.mk
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,8 @@ $(call sanitize_target,oci-sign-$2): $(oci_digest_path_$1) | $(NEEDS_CRANE) $(NE
oci-sign-$1: $(call sanitize_target,oci-sign-$2)
endef

$(foreach build_name,$(build_names),$(eval $(call oci_sign_target,$(build_name),$(oci_$(build_name)_image_name))))
oci_sign_target_per_image = $(foreach image_name,$2,$(eval $(call oci_sign_target,$1,$(image_name))))
$(foreach build_name,$(build_names),$(eval $(call oci_sign_target_per_image,$(build_name),$(oci_$(build_name)_image_name))))

.PHONY: $(oci_sign_targets)
## Sign an OCI image.
Expand Down

0 comments on commit c55524a

Please sign in to comment.