From 452b50d2c8dba0c2cc93edb37281c79d2ef29fe0 Mon Sep 17 00:00:00 2001 From: Hung Nguyen Date: Wed, 17 Apr 2024 12:13:15 -0400 Subject: [PATCH] updating feeds to use fqdn (#366) * updating feeds to use fqdn * bumping chart version for feeds --------- Signed-off-by: Hung Nguyen --- stable/feeds/Chart.yaml | 2 +- stable/feeds/templates/_common.tpl | 2 +- .../tests/__snapshot__/prehook_upgrade_resources_test.yaml.snap | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/stable/feeds/Chart.yaml b/stable/feeds/Chart.yaml index 671f894a..145ff879 100644 --- a/stable/feeds/Chart.yaml +++ b/stable/feeds/Chart.yaml @@ -1,7 +1,7 @@ apiVersion: v2 name: feeds type: application -version: "2.4.2" +version: "2.4.3" appVersion: "5.4.1" kubeVersion: 1.23.x - 1.27.x || 1.23.x-x - 1.29.x-x description: Anchore feeds service diff --git a/stable/feeds/templates/_common.tpl b/stable/feeds/templates/_common.tpl index f4f2bf3f..3afaecc0 100644 --- a/stable/feeds/templates/_common.tpl +++ b/stable/feeds/templates/_common.tpl @@ -51,7 +51,7 @@ Common environment variables fieldRef: fieldPath: metadata.name - name: ANCHORE_ENDPOINT_HOSTNAME - value: {{ template "feeds.fullname" . }} + value: {{ template "feeds.fullname" . }}.{{ .Release.Namespace }}.svc.cluster.local - name: ANCHORE_PORT value: {{ .Values.service.port | quote }} {{- end -}} diff --git a/stable/feeds/tests/__snapshot__/prehook_upgrade_resources_test.yaml.snap b/stable/feeds/tests/__snapshot__/prehook_upgrade_resources_test.yaml.snap index cf3ff883..d8cbe6a1 100644 --- a/stable/feeds/tests/__snapshot__/prehook_upgrade_resources_test.yaml.snap +++ b/stable/feeds/tests/__snapshot__/prehook_upgrade_resources_test.yaml.snap @@ -140,7 +140,7 @@ should render proper initContainers: fieldRef: fieldPath: metadata.name - name: ANCHORE_ENDPOINT_HOSTNAME - value: test-release-feeds + value: test-release-feeds.test-namespace.svc.cluster.local - name: ANCHORE_PORT value: "8448" image: docker.io/anchore/enterprise:v5.4.1