From 42ac28325d748435d150288866ce0941c7fcb923 Mon Sep 17 00:00:00 2001 From: jgonzalez Date: Tue, 17 Sep 2024 11:10:48 -0500 Subject: [PATCH] rename tld to communicte that this is used for ambassador objects --- monochart/templates/ambassador-mapping.yaml | 6 +++--- monochart/values.yaml | 3 +++ 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/monochart/templates/ambassador-mapping.yaml b/monochart/templates/ambassador-mapping.yaml index ee5fc2c..0e0f93b 100644 --- a/monochart/templates/ambassador-mapping.yaml +++ b/monochart/templates/ambassador-mapping.yaml @@ -1,6 +1,6 @@ {{- $root := . -}} -{{- if .Values.tld }} -{{- $tld := .Values.tld -}} +{{- if .Values.ambassador-tld }} +{{- $ambassador-tld := .Values.ambassador-tld -}} {{- if .Values.mapping -}} {{- range $name, $mapping := .Values.mapping -}} {{- if $mapping.enabled }} @@ -20,7 +20,7 @@ metadata: {{ toYaml .| indent 4 }} {{- end }} spec: - host: {{ $mapping.host }}.{{ $tld }} + host: {{ $mapping.host }}.{{ $ambassador-tld }} prefix: {{ $mapping.prefix | default "/" }} grpc: {{ $mapping.grpc | default false }} {{- if $mapping.rewrite }} diff --git a/monochart/values.yaml b/monochart/values.yaml index 6505343..d03f38a 100644 --- a/monochart/values.yaml +++ b/monochart/values.yaml @@ -338,6 +338,9 @@ services: # protocol: TCP # type: ClusterIP +# use this for defining the tld ambassador related objects will use in the cell this application gets deployed to. +# ambassador-tld: express-nonprod-c1.spoton.sh + # Ref: https://archive.getambassador.io/docs/emissary/3.6/topics/using/intro-mappings mapping: api: