diff --git a/incubating/hello-world/Chart.yaml b/incubating/hello-world/Chart.yaml index ab7feee..c10a61d 100644 --- a/incubating/hello-world/Chart.yaml +++ b/incubating/hello-world/Chart.yaml @@ -2,4 +2,4 @@ apiVersion: v1 appVersion: "1.0" description: A "Hello, World" Helm chart that supports amd64, arm32v6, and arm64v8 name: hello-world -version: 0.2.1-r6 +version: 0.2.1-r7 diff --git a/incubating/hello-world/templates/ingress.yaml b/incubating/hello-world/templates/ingress.yaml index e08d9d8..e44b9e6 100644 --- a/incubating/hello-world/templates/ingress.yaml +++ b/incubating/hello-world/templates/ingress.yaml @@ -2,11 +2,12 @@ {{- $fullName := include "helloworld.fullname" . -}} {{- $ingressPaths := .Values.ingress.paths -}} {{- $ingressPathType := .Values.ingress.pathType -}} +{{- $namespace := .Values.namespace | default "default" -}} apiVersion: networking.k8s.io/v1 kind: Ingress metadata: name: {{ $fullName }} - namespace: {{ .Values.namespace | default "default" }} + namespace: {{ $namespace }} labels: app.kubernetes.io/name: {{ include "helloworld.name" . }} helm.sh/chart: {{ include "helloworld.chart" . }} @@ -37,7 +38,7 @@ spec: path: {{ . }} backend: service: - name: {{ $fullName }} + name: {{ $fullName }}.{{ $namespace }} port: number: 8080 {{- end }}