Skip to content

Commit

Permalink
Update ingress api type
Browse files Browse the repository at this point in the history
  • Loading branch information
vincetse committed Feb 5, 2024
1 parent 87878f3 commit 4138676
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion incubating/hello-world/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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-r2
version: 0.2.1-r3
3 changes: 2 additions & 1 deletion incubating/hello-world/templates/ingress.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
{{- if .Values.ingress.enabled -}}
{{- $fullName := include "helloworld.fullname" . -}}
{{- $ingressPaths := .Values.ingress.paths -}}
{{- $ingressPathType := .Values.ingress.pathType -}}
apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
Expand Down Expand Up @@ -32,7 +33,7 @@ spec:
http:
paths:
{{- range $ingressPaths }}
- pathType: {{ .Values.ingress.pathType | default "Prefix" }}
- pathType: {{ $ingressPathType }}
path: {{ . }}
backend:
service:
Expand Down
1 change: 1 addition & 0 deletions incubating/hello-world/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ ingress:
# kubernetes.io/tls-acme: "true"
paths: []
hosts: []
pathType: "Prefix"
# - chart-example.local
tls: []
# - secretName: chart-example-tls
Expand Down

0 comments on commit 4138676

Please sign in to comment.