From 43d79abacc0cf31c92385bfde7c5cfcffe4de2e9 Mon Sep 17 00:00:00 2001 From: yetone Date: Thu, 18 Jan 2024 22:34:28 +0800 Subject: [PATCH] fix: the registry host namespace should include the port (#227) --- charts/dragonfly/Chart.yaml | 6 ++---- charts/dragonfly/templates/dfdaemon/dfdaemon-daemonset.yaml | 2 +- 2 files changed, 3 insertions(+), 5 deletions(-) diff --git a/charts/dragonfly/Chart.yaml b/charts/dragonfly/Chart.yaml index b56f1f63..6600259f 100644 --- a/charts/dragonfly/Chart.yaml +++ b/charts/dragonfly/Chart.yaml @@ -3,7 +3,7 @@ name: dragonfly description: Dragonfly is an intelligent P2P based image and file distribution system icon: https://raw.githubusercontent.com/dragonflyoss/Dragonfly2/main/docs/images/logo/dragonfly.svg type: application -version: 1.1.24 +version: 1.1.25 appVersion: 2.1.30 keywords: - dragonfly @@ -26,9 +26,7 @@ sources: annotations: artifacthub.io/changes: | - - Change structure of the metrics config in client. - - Update dragonfly image tag to v2.1.30. - - Update client image tag to v0.1.13. + - Fix the registry host namespace in dfdaemon artifacthub.io/links: | - name: Chart Source diff --git a/charts/dragonfly/templates/dfdaemon/dfdaemon-daemonset.yaml b/charts/dragonfly/templates/dfdaemon/dfdaemon-daemonset.yaml index 6788ba13..2149ffd3 100644 --- a/charts/dragonfly/templates/dfdaemon/dfdaemon-daemonset.yaml +++ b/charts/dragonfly/templates/dfdaemon/dfdaemon-daemonset.yaml @@ -426,7 +426,7 @@ spec: registry_domain=$registry fi # parse registry domain - domain=$(echo $registry | sed -e "s,http.*://,," | sed "s,:.*,,") + domain=$(echo $registry | sed -e "s,http.*://,,") # inject registry mkdir -p $etcContainerd/certs.d/$domain if [[ -e "$etcContainerd/certs.d/$domain/hosts.toml" ]]; then