From 8ca9279de55e978f146d3be2067b38699359ad85 Mon Sep 17 00:00:00 2001 From: Khue Doan Date: Mon, 29 Dec 2025 14:43:45 +0700 Subject: [PATCH] fix: use new renamed registry URL --- apps/khuedoan/blog/local.yaml | 2 +- apps/test/example/local.yaml | 2 +- apps/test/example/production.yaml | 2 +- controller/activities/app_test.go | 10 +++++----- controller/workflows/app_update_test.go | 6 +++--- platform/local/app-engine.yaml | 6 +++--- 6 files changed, 14 insertions(+), 14 deletions(-) diff --git a/apps/khuedoan/blog/local.yaml b/apps/khuedoan/blog/local.yaml index feae99b..2cf5eb7 100644 --- a/apps/khuedoan/blog/local.yaml +++ b/apps/khuedoan/blog/local.yaml @@ -8,7 +8,7 @@ controllers: containers: main: image: - repository: zot.zot.svc.cluster.local/khuedoan/blog + repository: registry.registry.svc.cluster.local/khuedoan/blog tag: 14a7a5703e1fc11abb5c30e88a098e5d27a1c57e service: main: diff --git a/apps/test/example/local.yaml b/apps/test/example/local.yaml index 6f2f56d..574f58a 100644 --- a/apps/test/example/local.yaml +++ b/apps/test/example/local.yaml @@ -8,7 +8,7 @@ controllers: containers: main: image: - repository: zot.zot.svc.cluster.local/example-service + repository: registry.registry.svc.cluster.local/example-service tag: v6.9.0 service: main: diff --git a/apps/test/example/production.yaml b/apps/test/example/production.yaml index 7784ea2..922270a 100644 --- a/apps/test/example/production.yaml +++ b/apps/test/example/production.yaml @@ -8,7 +8,7 @@ controllers: containers: main: image: - repository: zot.zot.svc.cluster.local/example-service + repository: registry.registry.svc.cluster.local/example-service tag: 828c31f942e8913ab2af53a2841c180586c5b7e1 env: # TODO this secret was created manually in vault diff --git a/controller/activities/app_test.go b/controller/activities/app_test.go index 9fd35ad..d86588f 100644 --- a/controller/activities/app_test.go +++ b/controller/activities/app_test.go @@ -109,7 +109,7 @@ controllers: containers: main: image: - repository: zot.zot.svc.cluster.local/example-service + repository: registry.registry.svc.cluster.local/example-service tag: 828c31f942e8913ab2af53a2841c180586c5b7e1 service: main: @@ -119,7 +119,7 @@ service: port: 8080 protocol: HTTP`, newImages: []Image{ - {Repository: "zot.zot.svc.cluster.local/example-service", Tag: "abc123def456789012345678901234567890abcd"}, + {Repository: "registry.registry.svc.cluster.local/example-service", Tag: "abc123def456789012345678901234567890abcd"}, }, expectedUpdate: true, }, @@ -336,7 +336,7 @@ controllers: containers: main: image: - repository: zot.zot.svc.cluster.local/example-service + repository: registry.registry.svc.cluster.local/example-service tag: 828c31f942e8913ab2af53a2841c180586c5b7e1 service: main: @@ -346,10 +346,10 @@ service: port: 8080 protocol: HTTP`, newImages: []Image{ - {Repository: "zot.zot.svc.cluster.local/example-service", Tag: "newgithash12345678901234567890"}, + {Repository: "registry.registry.svc.cluster.local/example-service", Tag: "newgithash12345678901234567890"}, }, expectedTags: map[string]string{ - "zot.zot.svc.cluster.local/example-service": "newgithash12345678901234567890", + "registry.registry.svc.cluster.local/example-service": "newgithash12345678901234567890", }, }, } diff --git a/controller/workflows/app_update_test.go b/controller/workflows/app_update_test.go index 4929088..e63cd88 100644 --- a/controller/workflows/app_update_test.go +++ b/controller/workflows/app_update_test.go @@ -236,16 +236,16 @@ func (s *AppUpdateWorkflowTestSuite) TestAppUpdate_MultipleImages() { Namespace: "test", App: "example", Cluster: "local", - Registry: "zot.zot.svc.cluster.local", + Registry: "registry.registry.svc.cluster.local", NewImages: []activities.Image{ - {Repository: "zot.zot.svc.cluster.local/example-service", Tag: "newcommithash123"}, + {Repository: "registry.registry.svc.cluster.local/example-service", Tag: "newcommithash123"}, {Repository: "docker.io/redis", Tag: "7.0-alpine"}, }, } workspace := "/tmp/cloudlab-repos/jkl012" appFilePath := workspace + "/apps/test/example/local.yaml" mockPushResult := &activities.PushResult{ - Reference: "zot.zot.svc.cluster.local/test/example:local", + Reference: "registry.registry.svc.cluster.local/test/example:local", Digest: "sha256:def789abc123", } diff --git a/platform/local/app-engine.yaml b/platform/local/app-engine.yaml index 454a62a..5c52520 100644 --- a/platform/local/app-engine.yaml +++ b/platform/local/app-engine.yaml @@ -35,13 +35,13 @@ spec: app: image: # TODO bootstrap and build itself - # repository: zot.zot.svc.cluster.local/khuedoan/app-engine + # repository: registry.registry.svc.cluster.local/khuedoan/app-engine repository: docker.io/khuedoan/app-engine tag: 4118f906ab07a17f3dac608f1a690b2215e4d2a5 pullPolicy: Always env: TEMPORAL_URL: http://temporal-frontend.temporal:7233 - REGISTRY: zot.zot.svc.cluster.local + REGISTRY: registry.registry.svc.cluster.local docker: image: repository: docker.io/library/docker @@ -49,7 +49,7 @@ spec: command: - dockerd - --host=unix:///var/run/docker.sock - - --insecure-registry=zot.zot.svc.cluster.local + - --insecure-registry=registry.registry.svc.cluster.local securityContext: privileged: true persistence: -- 2.51.2