Merge branch 'master' into 'master'

Ingresses: Update capability name and add ingressClassName

Closes #17

See merge request ananace/charts!23
This commit is contained in:
Alexander Olofsson 2021-11-30 21:41:19 +00:00
commit fa220fb17c
12 changed files with 42 additions and 7 deletions

View file

@ -1,7 +1,7 @@
{{- if .Values.ingress.enabled -}} {{- if .Values.ingress.enabled -}}
{{- $fullName := include "element-web.fullname" . -}} {{- $fullName := include "element-web.fullname" . -}}
{{- $svcPort := .Values.service.port -}} {{- $svcPort := .Values.service.port -}}
{{- $v1Ingress := .Capabilities.APIVersions.Has "networking.k8s.io/v1/Ingress" -}} {{- $v1Ingress := .Capabilities.APIVersions.Has "networking.k8s.io/v1" -}}
{{- if $v1Ingress -}} {{- if $v1Ingress -}}
apiVersion: networking.k8s.io/v1 apiVersion: networking.k8s.io/v1
{{- else -}} {{- else -}}
@ -17,6 +17,9 @@ metadata:
{{- toYaml . | nindent 4 }} {{- toYaml . | nindent 4 }}
{{- end }} {{- end }}
spec: spec:
{{- if .Values.ingress.className }}
ingressClassName: {{ .Values.ingress.className }}
{{- end }}
{{- if .Values.ingress.tls }} {{- if .Values.ingress.tls }}
tls: tls:
{{- range .Values.ingress.tls }} {{- range .Values.ingress.tls }}

View file

@ -88,6 +88,10 @@ ingress:
# hosts: # hosts:
# - chart-example.local # - chart-example.local
## Set the name of the IngressClass cluster resource (optional)
## https://kubernetes.io/docs/reference/kubernetes-api/service-resources/ingress-v1/#IngressSpec
# className: can-be-anything
## Resource configuration for the application. ## Resource configuration for the application.
## ##
resources: {} resources: {}

View file

@ -1,6 +1,6 @@
{{- if .Values.ingress.enabled -}} {{- if .Values.ingress.enabled -}}
{{- $fullName := include "funkwhale.fullname" . -}} {{- $fullName := include "funkwhale.fullname" . -}}
{{- $v1Ingress := .Capabilities.APIVersions.Has "networking.k8s.io/v1/Ingress" -}} {{- $v1Ingress := .Capabilities.APIVersions.Has "networking.k8s.io/v1" -}}
{{- if $v1Ingress -}} {{- if $v1Ingress -}}
apiVersion: networking.k8s.io/v1 apiVersion: networking.k8s.io/v1
{{- else -}} {{- else -}}
@ -19,6 +19,9 @@ metadata:
{{- toYaml . | nindent 4 }} {{- toYaml . | nindent 4 }}
{{- end }} {{- end }}
spec: spec:
{{- if .Values.ingress.className }}
ingressClassName: {{ .Values.ingress.className }}
{{- end }}
{{- if .Values.ingress.tls }} {{- if .Values.ingress.tls }}
tls: tls:
{{- range .Values.ingress.tls }} {{- range .Values.ingress.tls }}

View file

@ -30,6 +30,10 @@ ingress:
# hosts: # hosts:
# - chart-example.local # - chart-example.local
## Set the name of the IngressClass cluster resource (optional)
## https://kubernetes.io/docs/reference/kubernetes-api/service-resources/ingress-v1/#IngressSpec
# className: can-be-anything
postgresql: postgresql:
## If you already have a Postgresql service you'd like to use, set ## If you already have a Postgresql service you'd like to use, set
## this to false and adjust the host to use your existing service. ## this to false and adjust the host to use your existing service.

View file

@ -1,7 +1,7 @@
{{- if .Values.ingress.enabled -}} {{- if .Values.ingress.enabled -}}
{{- $fullName := include "matrix-media-repo.fullname" . -}} {{- $fullName := include "matrix-media-repo.fullname" . -}}
{{- $svcPort := .Values.service.port -}} {{- $svcPort := .Values.service.port -}}
{{- $v1Ingress := .Capabilities.APIVersions.Has "networking.k8s.io/v1/Ingress" -}} {{- $v1Ingress := .Capabilities.APIVersions.Has "networking.k8s.io/v1" -}}
{{- if $v1Ingress -}} {{- if $v1Ingress -}}
apiVersion: networking.k8s.io/v1 apiVersion: networking.k8s.io/v1
{{- else -}} {{- else -}}
@ -17,6 +17,9 @@ metadata:
{{- toYaml . | nindent 4 }} {{- toYaml . | nindent 4 }}
{{- end }} {{- end }}
spec: spec:
{{- if .Values.ingress.className }}
ingressClassName: {{ .Values.ingress.className }}
{{- end }}
{{- if .Values.ingress.tls }} {{- if .Values.ingress.tls }}
tls: tls:
{{- range .Values.ingress.tls }} {{- range .Values.ingress.tls }}

View file

@ -151,6 +151,10 @@ ingress:
# hosts: # hosts:
# - chart-example.local # - chart-example.local
## Set the name of the IngressClass cluster resource (optional)
## https://kubernetes.io/docs/reference/kubernetes-api/service-resources/ingress-v1/#IngressSpec
# className: can-be-anything
## Resource configuration for the application. ## Resource configuration for the application.
## ##
resources: {} resources: {}

View file

@ -1,7 +1,7 @@
{{- if .Values.ingress.enabled -}} {{- if .Values.ingress.enabled -}}
{{- $fullName := include "matrix-synapse.fullname" . -}} {{- $fullName := include "matrix-synapse.fullname" . -}}
{{- $wkName := include "matrix-synapse.externalname" (dict "global" . "external" "wellknown-lighttpd") -}} {{- $wkName := include "matrix-synapse.externalname" (dict "global" . "external" "wellknown-lighttpd") -}}
{{- $v1Ingress := .Capabilities.APIVersions.Has "networking.k8s.io/v1/Ingress" -}} {{- $v1Ingress := .Capabilities.APIVersions.Has "networking.k8s.io/v1" -}}
{{- if $v1Ingress -}} {{- if $v1Ingress -}}
apiVersion: networking.k8s.io/v1 apiVersion: networking.k8s.io/v1
{{- else -}} {{- else -}}

View file

@ -1,6 +1,6 @@
{{- if .Values.ingress.enabled -}} {{- if .Values.ingress.enabled -}}
{{- $fullName := include "netbox.fullname" . -}} {{- $fullName := include "netbox.fullname" . -}}
{{- $v1Ingress := .Capabilities.APIVersions.Has "networking.k8s.io/v1/Ingress" -}} {{- $v1Ingress := .Capabilities.APIVersions.Has "networking.k8s.io/v1" -}}
{{- if $v1Ingress -}} {{- if $v1Ingress -}}
apiVersion: networking.k8s.io/v1 apiVersion: networking.k8s.io/v1
{{- else -}} {{- else -}}
@ -19,6 +19,9 @@ metadata:
{{- toYaml . | nindent 4 }} {{- toYaml . | nindent 4 }}
{{- end }} {{- end }}
spec: spec:
{{- if .Values.ingress.className }}
ingressClassName: {{ .Values.ingress.className }}
{{- end }}
{{- if .Values.ingress.tls }} {{- if .Values.ingress.tls }}
tls: tls:
{{- range .Values.ingress.tls }} {{- range .Values.ingress.tls }}

View file

@ -37,6 +37,10 @@ ingress:
# hosts: # hosts:
# - chart-example.local # - chart-example.local
## Set the name of the IngressClass cluster resource (optional)
## https://kubernetes.io/docs/reference/kubernetes-api/service-resources/ingress-v1/#IngressSpec
# className: can-be-anything
postgresql: postgresql:
enabled: true enabled: true

View file

@ -1,6 +1,6 @@
{{- if .Values.ingress.enabled -}} {{- if .Values.ingress.enabled -}}
{{- $fullName := include "radosgw.fullname" . -}} {{- $fullName := include "radosgw.fullname" . -}}
{{- $v1Ingress := .Capabilities.APIVersions.Has "networking.k8s.io/v1/Ingress" -}} {{- $v1Ingress := .Capabilities.APIVersions.Has "networking.k8s.io/v1" -}}
{{- if $v1Ingress -}} {{- if $v1Ingress -}}
apiVersion: networking.k8s.io/v1 apiVersion: networking.k8s.io/v1
{{- else -}} {{- else -}}
@ -16,6 +16,9 @@ metadata:
{{- toYaml . | nindent 4 }} {{- toYaml . | nindent 4 }}
{{- end }} {{- end }}
spec: spec:
{{- if .Values.ingress.className }}
ingressClassName: {{ .Values.ingress.className }}
{{- end }}
{{- if .Values.ingress.tls }} {{- if .Values.ingress.tls }}
tls: tls:
{{- range .Values.ingress.tls }} {{- range .Values.ingress.tls }}

View file

@ -41,6 +41,10 @@ ingress:
# hosts: # hosts:
# - chart-example.local # - chart-example.local
## Set the name of the IngressClass cluster resource (optional)
## https://kubernetes.io/docs/reference/kubernetes-api/service-resources/ingress-v1/#IngressSpec
# className: can-be-anything
resources: {} resources: {}
# limits: # limits:
# cpu: 100m # cpu: 100m