From 6ac42c064f31720cc6d9cc6671dc8471eb44b7c8 Mon Sep 17 00:00:00 2001 From: mgianluc Date: Wed, 24 Jul 2024 16:04:12 +0200 Subject: [PATCH] Complete unqualified image names Add 'docker.io' registry server name where missing. That allows applications to run on CRIs not configured to handle unqualified registries. --- Makefile | 4 ++-- config/default/manager_image_patch.yaml | 2 +- manifest/manifest.yaml | 2 +- manifest/mgmt_cluster_manifest.yaml | 2 +- 4 files changed, 5 insertions(+), 5 deletions(-) diff --git a/Makefile b/Makefile index 175187a..9a1b26b 100644 --- a/Makefile +++ b/Makefile @@ -240,8 +240,8 @@ undeploy: $(CONTROLLER_GEN) $(KUSTOMIZE) ## Undeploy controller from the K8s clu ## set-manifest-image: $(info Updating kustomize image patch file for manager resource) - sed -i'' -e 's@image: .*@image: '"${MANIFEST_IMG}:$(MANIFEST_TAG)"'@' ./config/default/manager_image_patch.yaml - sed -i'' -e 's@image: projectsveltos.*@image: '"${MANIFEST_IMG}:$(MANIFEST_TAG)"'@' ./manifest/mgmt_cluster_manifest.yaml + sed -i'' -e 's@image: .*@image: '"docker.io/${MANIFEST_IMG}:$(MANIFEST_TAG)"'@' ./config/default/manager_image_patch.yaml + sed -i'' -e 's@image: projectsveltos.*@image: '"docker.io/${MANIFEST_IMG}:$(MANIFEST_TAG)"'@' ./manifest/mgmt_cluster_manifest.yaml set-manifest-pull-policy: $(info Updating kustomize pull policy file for manager resource) diff --git a/config/default/manager_image_patch.yaml b/config/default/manager_image_patch.yaml index 801893d..fcf530e 100644 --- a/config/default/manager_image_patch.yaml +++ b/config/default/manager_image_patch.yaml @@ -8,5 +8,5 @@ spec: spec: containers: # Change the value of image field below to your controller image URL - - image: projectsveltos/drift-detection-manager:main + - image: docker.io/projectsveltos/drift-detection-manager:main name: manager diff --git a/manifest/manifest.yaml b/manifest/manifest.yaml index 4289875..60ce575 100644 --- a/manifest/manifest.yaml +++ b/manifest/manifest.yaml @@ -112,7 +112,7 @@ spec: - --run-mode=do-not-send-updates command: - /manager - image: projectsveltos/drift-detection-manager:main + image: docker.io/projectsveltos/drift-detection-manager:main livenessProbe: failureThreshold: 3 httpGet: diff --git a/manifest/mgmt_cluster_manifest.yaml b/manifest/mgmt_cluster_manifest.yaml index 21d500f..c4662c1 100644 --- a/manifest/mgmt_cluster_manifest.yaml +++ b/manifest/mgmt_cluster_manifest.yaml @@ -28,7 +28,7 @@ spec: - --run-mode=do-not-send-updates command: - /manager - image: projectsveltos/drift-detection-manager:main + image: docker.io/projectsveltos/drift-detection-manager:main livenessProbe: failureThreshold: 3 httpGet: