From 918443dccf888e9c424d2a73a04aae2a55b74abc Mon Sep 17 00:00:00 2001 From: Christian Cwienk Date: Mon, 11 Dec 2023 20:09:46 +0100 Subject: [PATCH 1/2] cleanup: rm redundant/obsolete attributes --- .ci/pipeline_definitions | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/.ci/pipeline_definitions b/.ci/pipeline_definitions index c3718b3f..2d71228d 100644 --- a/.ci/pipeline_definitions +++ b/.ci/pipeline_definitions @@ -1,12 +1,11 @@ hvpa-controller: - template: 'default' base_definition: - repo: ~ traits: version: preprocess: 'inject-commit-hash' inject_effective_version: true + component_descriptor: ~ publish: oci-builder: docker-buildx platforms: @@ -14,7 +13,6 @@ hvpa-controller: - linux/arm64 dockerimages: hvpa-controller: - registry: 'gcr-readwrite' image: 'eu.gcr.io/gardener-project/gardener/hvpa-controller' dockerfile: 'Dockerfile' inputs: @@ -49,4 +47,3 @@ hvpa-controller: internal_scp_workspace: channel_name: 'C017KSLTF4H' # gardener-autoscaling slack_cfg_name: 'scp_workspace' - component_descriptor: ~ From a0a31e983d71f4632b9139d8d36ece012b0267b1 Mon Sep 17 00:00:00 2001 From: Christian Cwienk Date: Mon, 11 Dec 2023 20:11:29 +0100 Subject: [PATCH 2/2] switch GCR -> Artifact-Registry GCR has been deprecated [0] in favour of Artifact-Registry. Thus, change push-targets for OCI-Images: - europe-docker.pkg.dev/gardener-project/snapshots for snapshots - europe-docker.pkg.dev/gardener-project/releases for releases - europe-docker.pkg.dev/gardener-project/public for read-access to snapshots + releases [0] https://cloud.google.com/artifact-registry/docs/transition/transition-from-gcr --- .ci/pipeline_definitions | 15 ++++++++++++--- Makefile | 4 ++-- 2 files changed, 14 insertions(+), 5 deletions(-) diff --git a/.ci/pipeline_definitions b/.ci/pipeline_definitions index 2d71228d..df5de4c0 100644 --- a/.ci/pipeline_definitions +++ b/.ci/pipeline_definitions @@ -5,7 +5,8 @@ hvpa-controller: preprocess: 'inject-commit-hash' inject_effective_version: true - component_descriptor: ~ + component_descriptor: + ocm_repository: europe-docker.pkg.dev/gardener-project/snapshots publish: oci-builder: docker-buildx platforms: @@ -13,7 +14,7 @@ hvpa-controller: - linux/arm64 dockerimages: hvpa-controller: - image: 'eu.gcr.io/gardener-project/gardener/hvpa-controller' + image: europe-docker.pkg.dev/gardener-project/snapshots/gardener/hvpa-controller dockerfile: 'Dockerfile' inputs: repos: @@ -27,7 +28,9 @@ hvpa-controller: jobs: head-update: traits: - component_descriptor: ~ + component_descriptor: + ocm_repository_mappings: + - repository: europe-docker.pkg.dev/gardener-project/releases draft_release: ~ pull-request: traits: @@ -36,6 +39,12 @@ hvpa-controller: traits: version: preprocess: 'finalize' + component_descriptor: + ocm_repository: europe-docker.pkg.dev/gardener-project/releases + publish: + dockerimages: + hvpa-controller: + image: europe-docker.pkg.dev/gardener-project/releases/gardener/hvpa-controller release: nextversion: 'bump_minor' git_tags: diff --git a/Makefile b/Makefile index 97ddafdd..3fc51b15 100644 --- a/Makefile +++ b/Makefile @@ -14,10 +14,10 @@ VERSION := $(shell cat VERSION) PACKAGES :="$(go list -e ./... | grep -vE '/tmp/|/vendor/')" -REGISTRY := eu.gcr.io/gardener-project/gardener +REGISTRY := europe-docker.pkg.dev/gardener-project/public REPO_ROOT := $(shell dirname "$(realpath $(lastword $(MAKEFILE_LIST)))") -IMAGE_REPOSITORY := $(REGISTRY)/hvpa-controller +IMAGE_REPOSITORY := $(REGISTRY)/gardener/hvpa-controller IMAGE_TAG := $(VERSION) # Image URL to use all building/pushing image targets