From a41e2dfb59c390a8747eb73580936cd1f6cbb920 Mon Sep 17 00:00:00 2001 From: Tim Ramlot <42113979+inteon@users.noreply.github.com> Date: Wed, 18 Dec 2024 13:47:21 +0000 Subject: [PATCH] Run 'make upgrade-klone' and 'make generate' Signed-off-by: Tim Ramlot <42113979+inteon@users.noreply.github.com> --- .github/workflows/make-self-upgrade.yaml | 4 +++ klone.yaml | 26 +++++++++---------- make/_shared/kind/00_kind_image_versions.mk | 24 +++++++---------- make/_shared/oci-build/00_mod.mk | 4 +-- .../.github/workflows/make-self-upgrade.yaml | 4 +++ make/_shared/tools/00_mod.mk | 10 +++---- 6 files changed, 37 insertions(+), 35 deletions(-) diff --git a/.github/workflows/make-self-upgrade.yaml b/.github/workflows/make-self-upgrade.yaml index 7f1b0bf2..d59b7c97 100644 --- a/.github/workflows/make-self-upgrade.yaml +++ b/.github/workflows/make-self-upgrade.yaml @@ -33,6 +33,10 @@ jobs: exit 1 - uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 + # Adding `fetch-depth: 0` makes sure tags are also fetched. We need + # the tags so `git describe` returns a valid version. + # see https://github.com/actions/checkout/issues/701 for extra info about this option + with: { fetch-depth: 0 } - id: go-version run: | diff --git a/klone.yaml b/klone.yaml index 176c6a9d..1a4f7c8b 100644 --- a/klone.yaml +++ b/klone.yaml @@ -10,65 +10,65 @@ targets: - folder_name: boilerplate repo_url: https://github.com/cert-manager/makefile-modules.git repo_ref: main - repo_hash: 124f5ace44727ff538132ca3be21259e1d48c3c3 + repo_hash: 601d6f57d6750ae4cc5727a283eaffb47418c7f2 repo_path: modules/boilerplate - folder_name: cert-manager repo_url: https://github.com/cert-manager/makefile-modules.git repo_ref: main - repo_hash: 124f5ace44727ff538132ca3be21259e1d48c3c3 + repo_hash: 601d6f57d6750ae4cc5727a283eaffb47418c7f2 repo_path: modules/cert-manager - folder_name: controller-gen repo_url: https://github.com/cert-manager/makefile-modules.git repo_ref: main - repo_hash: 124f5ace44727ff538132ca3be21259e1d48c3c3 + repo_hash: 601d6f57d6750ae4cc5727a283eaffb47418c7f2 repo_path: modules/controller-gen - folder_name: generate-verify repo_url: https://github.com/cert-manager/makefile-modules.git repo_ref: main - repo_hash: 124f5ace44727ff538132ca3be21259e1d48c3c3 + repo_hash: 601d6f57d6750ae4cc5727a283eaffb47418c7f2 repo_path: modules/generate-verify - folder_name: go repo_url: https://github.com/cert-manager/makefile-modules.git repo_ref: main - repo_hash: 124f5ace44727ff538132ca3be21259e1d48c3c3 + repo_hash: 601d6f57d6750ae4cc5727a283eaffb47418c7f2 repo_path: modules/go - folder_name: helm repo_url: https://github.com/cert-manager/makefile-modules.git repo_ref: main - repo_hash: 124f5ace44727ff538132ca3be21259e1d48c3c3 + repo_hash: 601d6f57d6750ae4cc5727a283eaffb47418c7f2 repo_path: modules/helm - folder_name: help repo_url: https://github.com/cert-manager/makefile-modules.git repo_ref: main - repo_hash: 124f5ace44727ff538132ca3be21259e1d48c3c3 + repo_hash: 601d6f57d6750ae4cc5727a283eaffb47418c7f2 repo_path: modules/help - folder_name: kind repo_url: https://github.com/cert-manager/makefile-modules.git repo_ref: main - repo_hash: 124f5ace44727ff538132ca3be21259e1d48c3c3 + repo_hash: 601d6f57d6750ae4cc5727a283eaffb47418c7f2 repo_path: modules/kind - folder_name: klone repo_url: https://github.com/cert-manager/makefile-modules.git repo_ref: main - repo_hash: 124f5ace44727ff538132ca3be21259e1d48c3c3 + repo_hash: 601d6f57d6750ae4cc5727a283eaffb47418c7f2 repo_path: modules/klone - folder_name: oci-build repo_url: https://github.com/cert-manager/makefile-modules.git repo_ref: main - repo_hash: 124f5ace44727ff538132ca3be21259e1d48c3c3 + repo_hash: 601d6f57d6750ae4cc5727a283eaffb47418c7f2 repo_path: modules/oci-build - folder_name: oci-publish repo_url: https://github.com/cert-manager/makefile-modules.git repo_ref: main - repo_hash: 124f5ace44727ff538132ca3be21259e1d48c3c3 + repo_hash: 601d6f57d6750ae4cc5727a283eaffb47418c7f2 repo_path: modules/oci-publish - folder_name: repository-base repo_url: https://github.com/cert-manager/makefile-modules.git repo_ref: main - repo_hash: 124f5ace44727ff538132ca3be21259e1d48c3c3 + repo_hash: 601d6f57d6750ae4cc5727a283eaffb47418c7f2 repo_path: modules/repository-base - folder_name: tools repo_url: https://github.com/cert-manager/makefile-modules.git repo_ref: main - repo_hash: 124f5ace44727ff538132ca3be21259e1d48c3c3 + repo_hash: 601d6f57d6750ae4cc5727a283eaffb47418c7f2 repo_path: modules/tools diff --git a/make/_shared/kind/00_kind_image_versions.mk b/make/_shared/kind/00_kind_image_versions.mk index 3188c638..9b2fbe16 100755 --- a/make/_shared/kind/00_kind_image_versions.mk +++ b/make/_shared/kind/00_kind_image_versions.mk @@ -15,22 +15,16 @@ # This file is auto-generated by the learn_kind_images.sh script in the makefile-modules repo. # Do not edit manually. -kind_image_kindversion := v0.25.0 +kind_image_kindversion := v0.26.0 -kind_image_kube_1.26_amd64 := docker.io/kindest/node:v1.26.15@sha256:70c6ccbd3ed58116ad489691148e0437d390ae4349d6990b9aa3863b5c5cc508 -kind_image_kube_1.26_arm64 := docker.io/kindest/node:v1.26.15@sha256:83d636689f447921fdf13439391b252eebf471329f3d28a565d5a1a446d73cf7 -kind_image_kube_1.27_amd64 := docker.io/kindest/node:v1.27.16@sha256:9a08bfb799b90527eb58f0c3ac54252c3578d93758bae768e975f1bd7ba3bca0 -kind_image_kube_1.27_arm64 := docker.io/kindest/node:v1.27.16@sha256:637860d14e28d47c3ef1fe85bed7962a89269dfe6cb0fc6984fa98d61735a54e -kind_image_kube_1.28_amd64 := docker.io/kindest/node:v1.28.15@sha256:af665d70820b816eb1384b9f715f608dca9c625014ebbfa59415dcf703860e93 -kind_image_kube_1.28_arm64 := docker.io/kindest/node:v1.28.15@sha256:4659eb060ae96f79dd9f66a54671dc5a6cd3ca83c7bdd765ad13c76dae510b18 -kind_image_kube_1.29_amd64 := docker.io/kindest/node:v1.29.10@sha256:f2dc4d5c4a2ccbeadbc4da7e897710ccbf89c098c534c5850fcc26f6e91af81c -kind_image_kube_1.29_arm64 := docker.io/kindest/node:v1.29.10@sha256:0b6b641e44a02f75c3b6607de82598bdb5972c9f4b01572f2e7ecb32f717b35a -kind_image_kube_1.30_amd64 := docker.io/kindest/node:v1.30.6@sha256:2f2a7cddf4080e72da3c12372e6895027c6829df83f5ba3c4c9f1b4acd132aa6 -kind_image_kube_1.30_arm64 := docker.io/kindest/node:v1.30.6@sha256:211095e72afdd11964c0afca8a891a60e66e523aac9f3fff2b87ece71eedf8ba -kind_image_kube_1.31_amd64 := docker.io/kindest/node:v1.31.2@sha256:0526eb5cd8d892ed79b56feb48d17eeee1f719f55d5c35cef468f053caffad32 -kind_image_kube_1.31_arm64 := docker.io/kindest/node:v1.31.2@sha256:d60ac67de1482e71ea626ac98556cf5833c5c4bdedcf92ea158df61ea9eeaf5e -kind_image_kube_1.32_amd64 := docker.io/kindest/node:v1.32.0@sha256:dbfe3fe9f25dc234af268f5ac9a945e421ac43a30df02acae8c98224523f89f1 -kind_image_kube_1.32_arm64 := docker.io/kindest/node:v1.32.0@sha256:4487ecad11a7bba166ab8781c5f5e914f33fb13215c6cacf8a9ce93e33c56923 +kind_image_kube_1.29_amd64 := docker.io/kindest/node:v1.29.12@sha256:c1b696872c6d4d41889c1c7ca460d6c6349665061e6dd2a9cc5abda7dd8e21bc +kind_image_kube_1.29_arm64 := docker.io/kindest/node:v1.29.12@sha256:a29e3189829c4784b31507c793b5d186914a6ed81d2296c39d32543988911f36 +kind_image_kube_1.30_amd64 := docker.io/kindest/node:v1.30.8@sha256:da9368e0cfa74ca1a7e2c6d6c7abf890e627a94d9c8300dd9d951f63947a456c +kind_image_kube_1.30_arm64 := docker.io/kindest/node:v1.30.8@sha256:27b247e13bac7271e013ea4118843f8072e5a4f1fa8ce2c5c47018e6b2d45cce +kind_image_kube_1.31_amd64 := docker.io/kindest/node:v1.31.4@sha256:29370cbe44fd9798ac1e47e7ad04e53c375c0c683a25cc0cc7db331ad07c9952 +kind_image_kube_1.31_arm64 := docker.io/kindest/node:v1.31.4@sha256:496ab674cddaa72e97f2aa70729df5b403f46ee5834fb9a44773284998fea6d5 +kind_image_kube_1.32_amd64 := docker.io/kindest/node:v1.32.0@sha256:dd45e7e76478f76d2881cf031e64512f51be63dcb61420307982a24913badf8f +kind_image_kube_1.32_arm64 := docker.io/kindest/node:v1.32.0@sha256:eff24f9d99bc56271a456484d87cd6e6fc0beec7d4418958d589804703c00588 kind_image_latest_amd64 := $(kind_image_kube_1.32_amd64) kind_image_latest_arm64 := $(kind_image_kube_1.32_arm64) diff --git a/make/_shared/oci-build/00_mod.mk b/make/_shared/oci-build/00_mod.mk index fbd44666..31de7c1a 100644 --- a/make/_shared/oci-build/00_mod.mk +++ b/make/_shared/oci-build/00_mod.mk @@ -16,11 +16,11 @@ oci_platforms ?= linux/amd64,linux/arm/v7,linux/arm64,linux/ppc64le # Use distroless as minimal base image to package the manager binary # To get latest SHA run "crane digest quay.io/jetstack/base-static:latest" -base_image_static := quay.io/jetstack/base-static@sha256:6dd468efaceafb7d2b5ba437bb81500636237bac747fd751b75b0cb375600fae +base_image_static := quay.io/jetstack/base-static@sha256:feae5ef1171e639476e4134057228e0355837642993adfcb2b5c77fdc9c51d7d # Use custom apko-built image as minimal base image to package the manager binary # To get latest SHA run "crane digest quay.io/jetstack/base-static-csi:latest" -base_image_csi-static := quay.io/jetstack/base-static-csi@sha256:b88c19bfe28a83799e08817ffb7205a3aac1b99ad07739a5433a7fb554b4d223 +base_image_csi-static := quay.io/jetstack/base-static-csi@sha256:9e92ef3912568138f865b2268d3f13285736fb55856342cd32456ae2e284658b # Utility functions fatal_if_undefined = $(if $(findstring undefined,$(origin $1)),$(error $1 is not set)) diff --git a/make/_shared/repository-base/base/.github/workflows/make-self-upgrade.yaml b/make/_shared/repository-base/base/.github/workflows/make-self-upgrade.yaml index 7f1b0bf2..d59b7c97 100644 --- a/make/_shared/repository-base/base/.github/workflows/make-self-upgrade.yaml +++ b/make/_shared/repository-base/base/.github/workflows/make-self-upgrade.yaml @@ -33,6 +33,10 @@ jobs: exit 1 - uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 + # Adding `fetch-depth: 0` makes sure tags are also fetched. We need + # the tags so `git describe` returns a valid version. + # see https://github.com/actions/checkout/issues/701 for extra info about this option + with: { fetch-depth: 0 } - id: go-version run: | diff --git a/make/_shared/tools/00_mod.mk b/make/_shared/tools/00_mod.mk index 6d2204d3..4bbfe519 100644 --- a/make/_shared/tools/00_mod.mk +++ b/make/_shared/tools/00_mod.mk @@ -56,7 +56,7 @@ tools += helm=v3.15.4 # https://dl.k8s.io/release/$(curl -L -s https://dl.k8s.io/release/stable.txt)/bin/linux/amd64/kubectl tools += kubectl=v1.31.0 # https://github.com/kubernetes-sigs/kind/releases -tools += kind=v0.25.0 +tools += kind=v0.26.0 # https://www.vaultproject.io/downloads tools += vault=1.17.3 # https://github.com/Azure/azure-workload-identity/releases @@ -416,10 +416,10 @@ $(DOWNLOAD_DIR)/tools/kubectl@$(KUBECTL_VERSION)_$(HOST_OS)_$(HOST_ARCH): | $(DO $(checkhash_script) $(outfile) $(kubectl_$(HOST_OS)_$(HOST_ARCH)_SHA256SUM); \ chmod +x $(outfile) -kind_linux_amd64_SHA256SUM=b22ff7e5c02b8011e82cc3223d069d178b9e1543f1deb21e936d11764780a3d8 -kind_linux_arm64_SHA256SUM=06e544e3f12ea54de5962ceaecd97513a25dbab4168a44f03f01833349afdda3 -kind_darwin_amd64_SHA256SUM=180404ae1c0de8d333583d2958cdfac5338ec3e32cd765a158cfd6d09eb8cd7d -kind_darwin_arm64_SHA256SUM=222701bb72ff596928c57b3c64ca3e0b969d593ef24ccc790f9c17904e7b63ea +kind_linux_amd64_SHA256SUM=d445b44c28297bc23fd67e51cc24bb294ae7b977712be2d4d312883d0835829b +kind_linux_arm64_SHA256SUM=53fffdc37bd7149ccea440b1bdde2464f517d2c462dc8913ad37e7939e7f422d +kind_darwin_amd64_SHA256SUM=a2c30525db86a7807ad4bba0094437406518f41d8a2882e6ea659d94099adcc4 +kind_darwin_arm64_SHA256SUM=e5bf92d8d46017e23482bfe266929d4d82e6f8c754e216c105cb7fbea937bea2 .PRECIOUS: $(DOWNLOAD_DIR)/tools/kind@$(KIND_VERSION)_$(HOST_OS)_$(HOST_ARCH) $(DOWNLOAD_DIR)/tools/kind@$(KIND_VERSION)_$(HOST_OS)_$(HOST_ARCH): | $(DOWNLOAD_DIR)/tools