Skip to content

Commit

Permalink
rename tld to communicte that this is used for ambassador objects
Browse files Browse the repository at this point in the history
  • Loading branch information
jgonzalezspoton committed Sep 17, 2024
1 parent 455c43a commit 42ac283
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
6 changes: 3 additions & 3 deletions monochart/templates/ambassador-mapping.yaml
Original file line number Diff line number Diff line change
@@ -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 }}
Expand All @@ -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 }}
Expand Down
3 changes: 3 additions & 0 deletions monochart/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 42ac283

Please sign in to comment.