Skip to content

Commit

Permalink
Merge pull request #391 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 Mar 1, 2024
2 parents cc3900c + e26105e commit 5f50148
Show file tree
Hide file tree
Showing 4 changed files with 37 additions and 21 deletions.
5 changes: 0 additions & 5 deletions deploy/charts/approver-policy/values.linter.exceptions
Original file line number Diff line number Diff line change
@@ -1,5 +0,0 @@
# Some false postives
# See https://github.com/cert-manager/helm-tool/issues/27
value missing from templates: tolerations
value missing from templates: affinity
value missing from templates: nodeSelector
6 changes: 6 additions & 0 deletions deploy/charts/approver-policy/values.schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,9 @@
"dnsPolicy": {
"$ref": "#/$defs/helm-values.dnsPolicy"
},
"global": {
"$ref": "#/$defs/helm-values.global"
},
"hostNetwork": {
"$ref": "#/$defs/helm-values.hostNetwork"
},
Expand Down Expand Up @@ -333,6 +336,9 @@
"description": "This value may need to be changed if `hostNetwork: true`",
"type": "string"
},
"helm-values.global": {
"description": "Global values shared across all (sub)charts"
},
"helm-values.hostNetwork": {
"default": false,
"description": "Boolean value, expose pod on hostNetwork.\nRequired when running a custom CNI in managed providers such as AWS EKS.\n\nFor more information, see [AWS EKS](https://cert-manager.io/docs/installation/compatibility/#aws-eks).",
Expand Down
24 changes: 12 additions & 12 deletions klone.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,60 +10,60 @@ targets:
- folder_name: api-docs
repo_url: https://github.com/cert-manager/makefile-modules.git
repo_ref: main
repo_hash: d3fbbe92ebeace2b369fdc51eb785b42fe39d1d9
repo_hash: ba34e28192d1a26bc4fa7c5003c085639bebf268
repo_path: modules/api-docs
- folder_name: boilerplate
repo_url: https://github.com/cert-manager/makefile-modules.git
repo_ref: main
repo_hash: d3fbbe92ebeace2b369fdc51eb785b42fe39d1d9
repo_hash: ba34e28192d1a26bc4fa7c5003c085639bebf268
repo_path: modules/boilerplate
- folder_name: cert-manager
repo_url: https://github.com/cert-manager/makefile-modules.git
repo_ref: main
repo_hash: d3fbbe92ebeace2b369fdc51eb785b42fe39d1d9
repo_hash: ba34e28192d1a26bc4fa7c5003c085639bebf268
repo_path: modules/cert-manager
- folder_name: controller-gen
repo_url: https://github.com/cert-manager/makefile-modules.git
repo_ref: main
repo_hash: d3fbbe92ebeace2b369fdc51eb785b42fe39d1d9
repo_hash: ba34e28192d1a26bc4fa7c5003c085639bebf268
repo_path: modules/controller-gen
- folder_name: generate-verify
repo_url: https://github.com/cert-manager/makefile-modules.git
repo_ref: main
repo_hash: d3fbbe92ebeace2b369fdc51eb785b42fe39d1d9
repo_hash: ba34e28192d1a26bc4fa7c5003c085639bebf268
repo_path: modules/generate-verify
- folder_name: helm
repo_url: https://github.com/cert-manager/makefile-modules.git
repo_ref: main
repo_hash: d3fbbe92ebeace2b369fdc51eb785b42fe39d1d9
repo_hash: ba34e28192d1a26bc4fa7c5003c085639bebf268
repo_path: modules/helm
- folder_name: help
repo_url: https://github.com/cert-manager/makefile-modules.git
repo_ref: main
repo_hash: d3fbbe92ebeace2b369fdc51eb785b42fe39d1d9
repo_hash: ba34e28192d1a26bc4fa7c5003c085639bebf268
repo_path: modules/help
- folder_name: kind
repo_url: https://github.com/cert-manager/makefile-modules.git
repo_ref: main
repo_hash: d3fbbe92ebeace2b369fdc51eb785b42fe39d1d9
repo_hash: ba34e28192d1a26bc4fa7c5003c085639bebf268
repo_path: modules/kind
- folder_name: klone
repo_url: https://github.com/cert-manager/makefile-modules.git
repo_ref: main
repo_hash: d3fbbe92ebeace2b369fdc51eb785b42fe39d1d9
repo_hash: ba34e28192d1a26bc4fa7c5003c085639bebf268
repo_path: modules/klone
- folder_name: oci-image
repo_url: https://github.com/cert-manager/makefile-modules.git
repo_ref: main
repo_hash: d3fbbe92ebeace2b369fdc51eb785b42fe39d1d9
repo_hash: ba34e28192d1a26bc4fa7c5003c085639bebf268
repo_path: modules/oci-image
- folder_name: repository-base
repo_url: https://github.com/cert-manager/makefile-modules.git
repo_ref: main
repo_hash: d3fbbe92ebeace2b369fdc51eb785b42fe39d1d9
repo_hash: ba34e28192d1a26bc4fa7c5003c085639bebf268
repo_path: modules/repository-base
- folder_name: tools
repo_url: https://github.com/cert-manager/makefile-modules.git
repo_ref: main
repo_hash: d3fbbe92ebeace2b369fdc51eb785b42fe39d1d9
repo_hash: ba34e28192d1a26bc4fa7c5003c085639bebf268
repo_path: modules/tools
23 changes: 19 additions & 4 deletions make/_shared/tools/00_mod.mk
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,8 @@ $(bin_dir)/scratch/image $(bin_dir)/tools $(bin_dir)/downloaded $(bin_dir)/downl

checkhash_script := $(dir $(lastword $(MAKEFILE_LIST)))/util/checkhash.sh

for_each_kv = $(foreach item,$2,$(eval $(call $1,$(word 1,$(subst =, ,$(item))),$(word 2,$(subst =, ,$(item))))))

# To make sure we use the right version of each tool, we put symlink in
# $(bin_dir)/tools, and the actual binaries are in $(bin_dir)/downloaded. When bumping
# the version of the tools, this symlink gets updated.
Expand Down Expand Up @@ -101,7 +103,7 @@ TOOLS += goreleaser=v1.23.0
# https://pkg.go.dev/github.com/anchore/syft/cmd/syft?tab=versions
TOOLS += syft=v0.100.0
# https://github.com/cert-manager/helm-tool
TOOLS += helm-tool=v0.4.1
TOOLS += helm-tool=v0.4.2
# https://github.com/cert-manager/cmctl
TOOLS += cmctl=2f75014a7c360c319f8c7c8afe8e9ce33fe26dca
# https://pkg.go.dev/github.com/cert-manager/release/cmd/cmrel?tab=versions
Expand Down Expand Up @@ -307,17 +309,30 @@ GO_DEPENDENCIES += cmctl=github.com/cert-manager/cmctl/v2
GO_DEPENDENCIES += cmrel=github.com/cert-manager/release/cmd/cmrel
GO_DEPENDENCIES += golangci-lint=github.com/golangci/golangci-lint/cmd/golangci-lint

#################
# go build tags #
#################

GO_TAGS :=

# Additional Go dependencies can be defined to re-use the tooling in this file
ADDITIONAL_GO_DEPENDENCIES ?=
ADDITIONAL_GO_TAGS ?=
GO_DEPENDENCIES += $(ADDITIONAL_GO_DEPENDENCIES)
GO_TAGS += $(ADDITIONAL_GO_TAGS)

go_tags_init = go_tags_$1 :=
$(call for_each_kv,go_tags_init,$(GO_DEPENDENCIES))

go_tags_defs = go_tags_$1 += $2
$(call for_each_kv,go_tags_defs,$(GO_TAGS))

define go_dependency
$$(bin_dir)/downloaded/tools/$1@$($(call UC,$1)_VERSION)_%: | $$(NEEDS_GO) $$(bin_dir)/downloaded/tools
GOWORK=off GOBIN=$$(CURDIR)/$$(dir $$@) $$(GO) install $2@$($(call UC,$1)_VERSION)
GOWORK=off GOBIN=$$(CURDIR)/$$(dir $$@) $$(GO) install --tags "$(trim $(go_tags_$1))" $2@$($(call UC,$1)_VERSION)
@mv $$(CURDIR)/$$(dir $$@)/$1 $$@
endef

$(foreach GO_DEPENDENCY,$(GO_DEPENDENCIES),$(eval $(call go_dependency,$(word 1,$(subst =, ,$(GO_DEPENDENCY))),$(word 2,$(subst =, ,$(GO_DEPENDENCY))))))
$(call for_each_kv,go_dependency,$(GO_DEPENDENCIES))

########
# Helm #
Expand Down

0 comments on commit 5f50148

Please sign in to comment.