Skip to content

Commit

Permalink
Merge pull request #186 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 Jan 25, 2024
2 parents bf2234f + 9980b5a commit b1d526e
Show file tree
Hide file tree
Showing 4 changed files with 22 additions and 14 deletions.
22 changes: 11 additions & 11 deletions klone.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,55 +10,55 @@ targets:
- folder_name: boilerplate
repo_url: https://github.com/cert-manager/makefile-modules.git
repo_ref: main
repo_hash: 1539e50a1ea7d7c3f97ea37b3f9557971295acc1
repo_hash: b71107c9c4b222a39a037eeeae017e2adbcfa591
repo_path: modules/boilerplate
- folder_name: cert-manager
repo_url: https://github.com/cert-manager/makefile-modules.git
repo_ref: main
repo_hash: 1539e50a1ea7d7c3f97ea37b3f9557971295acc1
repo_hash: b71107c9c4b222a39a037eeeae017e2adbcfa591
repo_path: modules/cert-manager
- folder_name: controller-gen
repo_url: https://github.com/cert-manager/makefile-modules.git
repo_ref: main
repo_hash: 1539e50a1ea7d7c3f97ea37b3f9557971295acc1
repo_hash: b71107c9c4b222a39a037eeeae017e2adbcfa591
repo_path: modules/controller-gen
- folder_name: generate-verify
repo_url: https://github.com/cert-manager/makefile-modules.git
repo_ref: main
repo_hash: 1539e50a1ea7d7c3f97ea37b3f9557971295acc1
repo_hash: b71107c9c4b222a39a037eeeae017e2adbcfa591
repo_path: modules/generate-verify
- folder_name: helm
repo_url: https://github.com/cert-manager/makefile-modules.git
repo_ref: main
repo_hash: 1539e50a1ea7d7c3f97ea37b3f9557971295acc1
repo_hash: b71107c9c4b222a39a037eeeae017e2adbcfa591
repo_path: modules/helm
- folder_name: help
repo_url: https://github.com/cert-manager/makefile-modules.git
repo_ref: main
repo_hash: 1539e50a1ea7d7c3f97ea37b3f9557971295acc1
repo_hash: b71107c9c4b222a39a037eeeae017e2adbcfa591
repo_path: modules/help
- folder_name: kind
repo_url: https://github.com/cert-manager/makefile-modules.git
repo_ref: main
repo_hash: 1539e50a1ea7d7c3f97ea37b3f9557971295acc1
repo_hash: b71107c9c4b222a39a037eeeae017e2adbcfa591
repo_path: modules/kind
- folder_name: klone
repo_url: https://github.com/cert-manager/makefile-modules.git
repo_ref: main
repo_hash: 1539e50a1ea7d7c3f97ea37b3f9557971295acc1
repo_hash: b71107c9c4b222a39a037eeeae017e2adbcfa591
repo_path: modules/klone
- folder_name: oci-image
repo_url: https://github.com/cert-manager/makefile-modules.git
repo_ref: main
repo_hash: 1539e50a1ea7d7c3f97ea37b3f9557971295acc1
repo_hash: b71107c9c4b222a39a037eeeae017e2adbcfa591
repo_path: modules/oci-image
- folder_name: repository-base
repo_url: https://github.com/cert-manager/makefile-modules.git
repo_ref: main
repo_hash: 1539e50a1ea7d7c3f97ea37b3f9557971295acc1
repo_hash: b71107c9c4b222a39a037eeeae017e2adbcfa591
repo_path: modules/repository-base
- folder_name: tools
repo_url: https://github.com/cert-manager/makefile-modules.git
repo_ref: main
repo_hash: 1539e50a1ea7d7c3f97ea37b3f9557971295acc1
repo_hash: b71107c9c4b222a39a037eeeae017e2adbcfa591
repo_path: modules/tools
4 changes: 2 additions & 2 deletions make/_shared/oci-image/01_mod.mk
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
# See the License for the specific language governing permissions and
# limitations under the License.

oci_platforms := linux/amd64,linux/arm/v7,linux/arm64,linux/ppc64le
oci_platforms ?= linux/amd64,linux/arm/v7,linux/arm64,linux/ppc64le

# Use distroless as minimal base image to package the manager binary
# Refer to https://github.com/GoogleContainerTools/distroless for more details
Expand Down Expand Up @@ -117,7 +117,7 @@ $(oci_build_targets): oci-build-%: | $(NEEDS_KO) $(NEEDS_GO) $(NEEDS_YQ) $(bin_d

GOWORK=off \
KO_DOCKER_REPO=$(oci_$*_image_name_development) \
KOCACHE=$(bin_dir)/scratch/image/ko_cache \
KOCACHE=$(CURDIR)/$(bin_dir)/scratch/image/ko_cache \
KO_CONFIG_PATH=$(CURDIR)/$(oci_layout_path).ko_config.yaml \
SOURCE_DATE_EPOCH=$(GITEPOCH) \
KO_GO_PATH=$(GO) \
Expand Down
2 changes: 1 addition & 1 deletion make/_shared/oci-image/image_tool/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ func convertToDockerTar(path string, output string, imageName string) error {
return nil, err
}

if config.Platform().OS == runtime.GOOS && config.Platform().Architecture == runtime.GOARCH {
if config.Platform().Architecture == runtime.GOARCH {
matchingImages = append(matchingImages, obj)
}
case oci.SignedImageIndex:
Expand Down
8 changes: 8 additions & 0 deletions make/_shared/tools/00_mod.mk
Original file line number Diff line number Diff line change
Expand Up @@ -109,6 +109,10 @@ KUBEBUILDER_ASSETS_VERSION=1.28.3
TOOLS += etcd=$(KUBEBUILDER_ASSETS_VERSION)
TOOLS += kube-apiserver=$(KUBEBUILDER_ASSETS_VERSION)

# Additional tools can be defined to reuse the tooling in this file
ADDITIONAL_TOOLS ?=
TOOLS += $(ADDITIONAL_TOOLS)

# https://go.dev/dl/
VENDORED_GO_VERSION := 1.21.6

Expand Down Expand Up @@ -280,6 +284,10 @@ GO_DEPENDENCIES += defaulter-gen=k8s.io/code-generator/cmd/defaulter-gen
GO_DEPENDENCIES += conversion-gen=k8s.io/code-generator/cmd/conversion-gen
GO_DEPENDENCIES += helm-tool=github.com/cert-manager/helm-tool

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

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)
Expand Down

0 comments on commit b1d526e

Please sign in to comment.