Skip to content

Commit

Permalink
Revert "docker-plain: add simpleHost to chart/values.yaml"
Browse files Browse the repository at this point in the history
This reverts commit 167397b.
  • Loading branch information
faust2199 committed Nov 30, 2024
1 parent fe5fa7f commit 6c58ed7
Show file tree
Hide file tree
Showing 4 changed files with 1 addition and 23 deletions.
4 changes: 1 addition & 3 deletions docker-plain/files/chart/templates/NOTES.txt
Original file line number Diff line number Diff line change
@@ -1,9 +1,7 @@
Component '{{ include "chart.fullname" . }}' on version '{{ .Values.imageTag }}' released with Helm!
{{- if .Values.ingress.enabled }}
The component is exposed via the following routes:
{{- if .Values.ingress.simpleHost }}
{{ printf "https://%s" .Values.ingress.simpleHost }}
{{- end }}
{{- $appUrl := .Values.appUrl -}}
{{- range .Values.ingress.hosts }}
{{ printf "https://%s" .host }}
{{- end }}
Expand Down
12 changes: 0 additions & 12 deletions docker-plain/files/chart/templates/ingress.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -32,18 +32,6 @@ spec:
- {}
{{- end }}
rules:
{{- if .Values.ingress.simpleHost }}
- host: {{ .Values.ingress.simpleHost | quote }}
http:
paths:
- path: /
pathType: Prefix
backend:
service:
name: {{ $fullName }}
port:
number: {{ $svcPort }}
{{- end }}
{{- range .Values.ingress.hosts }}
- host: {{ .host | quote }}
http:
Expand Down
4 changes: 0 additions & 4 deletions docker-plain/files/chart/values.schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -81,10 +81,6 @@
"type": "string"
}
},
"simpleHost": {
"description": "Hostname for simple use cases",
"type": "string"
},
"hosts": {
"description": "List of ingress hosts",
"type": "array",
Expand Down
4 changes: 0 additions & 4 deletions docker-plain/files/chart/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -33,10 +33,6 @@ ingress:
## e.g. add cert-manager support by annotating the ingress https://cert-manager.io/docs/usage/ingress/
## ask in your company for good defaults

# If no more than one URL is needed, simpleHost is probably sufficient. Alternatively, Use hosts for more customization capabilities.
# simpleHost and hosts can coexist. Check out templates/ingress.yaml for more details.
# Usually we want different URLs for dev, test and prod environments. It makes sense to define them in values.<env>.yaml rather than in this file.
simpleHost: ""
hosts: [] # When defining a host you must define also a path
# - host: yourapp.yourdomain.com
# paths:
Expand Down

0 comments on commit 6c58ed7

Please sign in to comment.