-
Notifications
You must be signed in to change notification settings - Fork 705
Commit
- Loading branch information
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,38 +1,37 @@ | ||
{{- if .Values.ingress.enabled -}} | ||
{{- $fullName := include "kubeapps.fullname" . -}} | ||
{{- $ingressPath := .Values.ingress.path -}} | ||
apiVersion: extensions/v1beta1 | ||
kind: Ingress | ||
metadata: | ||
name: {{ $fullName }} | ||
name: {{ template "kubeapps.fullname" . }} | ||
labels: | ||
app: {{ include "kubeapps.name" . }} | ||
chart: {{ include "kubeapps.chart" . }} | ||
app: {{ template "kubeapps.name" . }} | ||
chart: {{ template "kubeapps.chart" . }} | ||
release: {{ .Release.Name }} | ||
heritage: {{ .Release.Service }} | ||
{{- with .Values.ingress.annotations }} | ||
annotations: | ||
{{ toYaml . | indent 4 }} | ||
{{- end }} | ||
{{- if .Values.ingress.certManager }} | ||
kubernetes.io/tls-acme: "true" | ||
{{- end }} | ||
{{- range $key, $value := .Values.ingress.annotations }} | ||
{{ $key }}: {{ $value | quote }} | ||
{{- end }} | ||
spec: | ||
{{- if .Values.ingress.tls }} | ||
tls: | ||
{{- range .Values.ingress.tls }} | ||
- hosts: | ||
{{- range .hosts }} | ||
- {{ . | quote }} | ||
{{- end }} | ||
secretName: {{ .secretName }} | ||
{{- end }} | ||
{{- end }} | ||
rules: | ||
{{- range .Values.ingress.hosts }} | ||
- host: {{ . | quote }} | ||
http: | ||
paths: | ||
- path: {{ $ingressPath }} | ||
backend: | ||
serviceName: {{ $fullName }} | ||
servicePort: http | ||
- host: {{ .name }} | ||
http: | ||
paths: | ||
- path: {{ default "/" .path }} | ||
This comment has been minimized.
Sorry, something went wrong.
This comment has been minimized.
Sorry, something went wrong.
prydonius
Contributor
|
||
backend: | ||
serviceName: {{ template "kubeapps.fullname" $ }} | ||
servicePort: http | ||
{{- end }} | ||
tls: | ||
{{- range .Values.ingress.hosts }} | ||
{{- if .tls }} | ||
- hosts: | ||
- {{ .name }} | ||
secretName: {{ .tlsSecret }} | ||
{{- end }} | ||
{{- end }} | ||
{{- end }} |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
{{- if .Values.ingress.enabled }} | ||
{{- range .Values.ingress.secrets }} | ||
apiVersion: v1 | ||
kind: Secret | ||
metadata: | ||
name: {{ .name }} | ||
labels: | ||
app: {{ template "kubeapps.name" $ }} | ||
chart: {{ template "kubeapps.chart" $ }} | ||
release: {{ $.Release.Name }} | ||
heritage: {{ $.Release.Service }} | ||
type: kubernetes.io/tls | ||
data: | ||
tls.crt: {{ .certificate | b64enc }} | ||
tls.key: {{ .key | b64enc }} | ||
{{- end }} | ||
{{- end }} |
I'm probably bashing my head into a wall unnecessarily right now, but I've been struggling with this for a while so I need to ask in case you have any answers: Is there any way, what so ever, to pass in a template here from a parent chart?
I would like to include this Kubeapps charts as a subchart in my project, with some modifications to the values.yaml file in the parent. It's dead easy to pass in a string from the parent to the child, and the path will indeed be set to that string. But I'm trying to pass a template instead. Is that impossible?