Skip to content

Commit

Permalink
switch GCR -> Artifact-Registry
Browse files Browse the repository at this point in the history
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

To allow users for smooth transitioning, keep also publishing to GCR.

[0]
https://cloud.google.com/artifact-registry/docs/transition/transition-from-gcr
  • Loading branch information
ccwienk committed Dec 1, 2023
1 parent b071581 commit d2671aa
Show file tree
Hide file tree
Showing 6 changed files with 19 additions and 8 deletions.
15 changes: 13 additions & 2 deletions .ci/pipeline_definitions
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,9 @@ gardener-extension-networking-cilium:
image: 'golang:1.21.4'
traits:
component_descriptor:
ocm_repository: europe-docker.pkg.dev/gardener-project/snapshots
ocm_repository_mappings:
- repository: europe-docker.pkg.dev/gardener-project/releases
component_labels:
- name: 'cloud.gardener.cnudie/responsibles'
value:
Expand All @@ -16,7 +19,9 @@ gardener-extension-networking-cilium:
publish:
dockerimages:
gardener-extension-networking-cilium:
image: 'eu.gcr.io/gardener-project/gardener/extensions/networking-cilium'
image: 'europe-docker.pkg.dev/gardener-project/snapshots/extensions/networking-cilium'
extra_push_targets: # may be dropped after all users updated to new registry
- eu.gcr.io/gardener-project/gardener/extensions/networking-cilium
dockerfile: 'Dockerfile'
target: gardener-extension-networking-cilium
resource_labels:
Expand All @@ -29,7 +34,9 @@ gardener-extension-networking-cilium:
integrity_requirement: 'high'
availability_requirement: 'high'
gardener-extension-admission-cilium:
image: 'eu.gcr.io/gardener-project/gardener/extensions/admission-cilium'
image: 'europe-docker.pkg.dev/gardener-project/snapshots/extensions/admission-cilium'
extra_push_targets: # may be dropped after all users updated to new registry
- eu.gcr.io/gardener-project/gardener/extensions/admission-cilium
dockerfile: 'Dockerfile'
target: gardener-extension-admission-cilium
resource_labels:
Expand All @@ -56,6 +63,8 @@ gardener-extension-networking-cilium:
traits:
version:
preprocess: 'finalize'
component_descriptor:
ocm_repository: europe-docker.pkg.dev/gardener-project/releases
release:
nextversion: 'bump_minor'
next_version_callback: '.ci/prepare_release'
Expand All @@ -69,6 +78,8 @@ gardener-extension-networking-cilium:
publish:
dockerimages:
gardener-extension-networking-cilium:
image: europe-docker.pkg.dev/gardener-project/releases/extensions/networking-cilium
tag_as_latest: true
gardener-extension-admission-cilium:
image: europe-docker.pkg.dev/gardener-project/releases/extensions/admission-cilium
tag_as_latest: true
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
EXTENSION_PREFIX := gardener-extension
NAME := networking-cilium
ADMISSION_NAME := admission-cilium
REGISTRY := eu.gcr.io/gardener-project/gardener
REGISTRY := europe-docker.pkg.dev/gardener-project/releases
IMAGE_PREFIX := $(REGISTRY)/extensions
REPO_ROOT := $(shell dirname $(realpath $(lastword $(MAKEFILE_LIST))))
HACK_DIR := $(REPO_ROOT)/hack
Expand Down
2 changes: 1 addition & 1 deletion charts/gardener-extension-admission-cilium/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ global:
user:
name: ""
image:
repository: eu.gcr.io/gardener-project/gardener/extensions/admission-cilium
repository: europe-docker.pkg.dev/gardener-project/public/extensions/admission-cilium
tag: latest
pullPolicy: IfNotPresent
replicaCount: 1
Expand Down
4 changes: 2 additions & 2 deletions charts/gardener-extension-networking-cilium/values.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
image:
repository: eu.gcr.io/gardener-project/gardener/extensions/networking-cilium
repository: europe-docker.pkg.dev/gardener-project/public/extensions/networking-cilium
tag: latest
pullPolicy: IfNotPresent

Expand Down Expand Up @@ -57,4 +57,4 @@ webhookConfig:
## settings for metrics, e.g. scraping by seed-prometheus
metrics:
enableScraping: true
port: 8080
port: 8080
2 changes: 1 addition & 1 deletion hack/test-e2e-provider-local.sh
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ cd $repo_root

version=$(git rev-parse HEAD)
make docker-images
docker tag eu.gcr.io/gardener-project/gardener/extensions/networking-cilium:latest networking-cilium-local:$version
docker tag europe-docker.pkg.dev/gardener-project/releases/extensions/networking-cilium:latest networking-cilium-local:$version
kind load docker-image networking-cilium-local:$version --name gardener-local

mkdir -p $repo_root/tmp
Expand Down
2 changes: 1 addition & 1 deletion test/templates/network-connectivity-test.yaml.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ spec:
app: networking-test
spec:
containers:
- image: eu.gcr.io/gardener-project/gardener/cilium-cli:1.2.0
- image: europe-docker.pkg.dev/gardener-project/releases/gardener/cilium-cli:1.2.0
name: networking-shoot-tests-cilium
command: ["sh", "-c"]
args:
Expand Down

0 comments on commit d2671aa

Please sign in to comment.