Skip to content

Commit

Permalink
make hosts optional in chart
Browse files Browse the repository at this point in the history
  • Loading branch information
juliuste committed Sep 9, 2024
1 parent 09f2872 commit c7be9bf
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion kubernetes/.charts/simple-app/Chart.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
apiVersion: v2
name: simple-app
version: 3.0.1
version: 3.1.0
description: Provides a deployment, service and ingress to expose one container at a given domain
2 changes: 2 additions & 0 deletions kubernetes/.charts/simple-app/templates/ingress.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
{{- $dot := . }}
{{- if .Values.hosts -}}
apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
Expand Down Expand Up @@ -32,3 +33,4 @@ spec:
port:
number: 80
{{- end }}
{{- end -}}

0 comments on commit c7be9bf

Please sign in to comment.