Bump some incubator apps and remove common test code. Also render traefik portalhook as tpl

This commit is contained in:
kjeld Schouten-Lebbing 2021-09-04 00:12:58 +02:00
parent fa1b2e05c8
commit f1dbdf0059
No known key found for this signature in database
GPG Key ID: 4CDAD4A532BC1EDB
6 changed files with 9 additions and 9 deletions

View File

@ -3,7 +3,7 @@ appVersion: auto
dependencies: dependencies:
- name: common - name: common
repository: https://truecharts.org/ repository: https://truecharts.org/
version: 6.12.4 version: 6.13.5
deprecated: false deprecated: false
description: JDownloader is a free, open-source download management tool with a huge description: JDownloader is a free, open-source download management tool with a huge
community of developers that makes downloading as easy and fast as it should be. community of developers that makes downloading as easy and fast as it should be.
@ -26,4 +26,4 @@ sources:
- https://hub.docker.com/r/jlesage/jdownloader-2 - https://hub.docker.com/r/jlesage/jdownloader-2
- https://jdownloader.org/ - https://jdownloader.org/
type: application type: application
version: 0.3.11 version: 0.3.12

View File

@ -3,7 +3,7 @@ appVersion: '2.4'
dependencies: dependencies:
- name: common - name: common
repository: https://truecharts.org/ repository: https://truecharts.org/
version: 6.13.4 version: 6.13.5
deprecated: false deprecated: false
description: Test App for Traefik description: Test App for Traefik
home: https://github.com/truecharts/apps/tree/master/charts/stable/traefik home: https://github.com/truecharts/apps/tree/master/charts/stable/traefik
@ -22,4 +22,4 @@ sources:
- https://github.com/traefik/traefik-helm-chart - https://github.com/traefik/traefik-helm-chart
- https://traefik.io/ - https://traefik.io/
type: application type: application
version: 0.0.11 version: 0.0.12

View File

@ -1,3 +1,5 @@
{{/* Define the portalHook */}}
{{- define "traefik.portalhook" -}}
{{- if .Values.portalhook.enabled }} {{- if .Values.portalhook.enabled }}
{{- $namespace := ( printf "ix-%s" .Release.Name ) }} {{- $namespace := ( printf "ix-%s" .Release.Name ) }}
{{- if or ( not .Values.ingressClass.enabled ) ( and ( .Values.ingressClass.enabled ) ( .Values.ingressClass.isDefaultClass ) ) }} {{- if or ( not .Values.ingressClass.enabled ) ( and ( .Values.ingressClass.enabled ) ( .Values.ingressClass.isDefaultClass ) ) }}
@ -22,3 +24,4 @@ data:
{{ $name }}: {{ $value.port | quote }} {{ $name }}: {{ $value.port | quote }}
{{- end }} {{- end }}
{{- end }} {{- end }}
{{- end -}}

View File

@ -14,6 +14,7 @@
{{- $mergedargs := concat .Values.args .Values.newArgs.args }} {{- $mergedargs := concat .Values.args .Values.newArgs.args }}
{{- $_ := set .Values "args" $mergedargs -}} {{- $_ := set .Values "args" $mergedargs -}}
{{- include "traefik.portalhook" . }}
{{- include "traefik.tlsOptions" . }} {{- include "traefik.tlsOptions" . }}
{{- include "traefik.ingressRoute" . }} {{- include "traefik.ingressRoute" . }}
{{- include "traefik.ingressClass" . }} {{- include "traefik.ingressClass" . }}

View File

@ -18,4 +18,4 @@ maintainers:
name: common name: common
sources: null sources: null
type: library type: library
version: 6.13.5 version: 6.13.6

View File

@ -10,13 +10,10 @@
{{- $protocol := "https" }} {{- $protocol := "https" }}
{{- $path := "/" }} {{- $path := "/" }}
{{- $ingressport := 443 }} {{- $ingressport := 443 }}
{{- $test := "" }}
{{- if $ingr }} {{- if $ingr }}
{{- if $ingr.enabled }} {{- if $ingr.enabled }}
{{- $test = "blabla" }}
{{- range $ingr.hosts }} {{- range $ingr.hosts }}
{{- if .hostTpl }} {{- if .hostTpl }}
{{ $host = ( tpl .hostTpl $ ) }} {{ $host = ( tpl .hostTpl $ ) }}
{{- else if .host }} {{- else if .host }}
@ -88,7 +85,6 @@ metadata:
annotations: annotations:
rollme: {{ randAlphaNum 5 | quote }} rollme: {{ randAlphaNum 5 | quote }}
data: data:
test: {{ $test | quote }}
protocol: {{ $protocol }} protocol: {{ $protocol }}
host: {{ $host | quote }} host: {{ $host | quote }}
port: {{ $port | quote }} port: {{ $port | quote }}