mirror of
https://github.com/tailscale/tailscale.git
synced 2025-08-25 04:37:42 +00:00

This commit modifies the k8s operator to allow for customisation of the ingress class name via a new `OPERATOR_INGRESS_CLASS_NAME` environment variable. For backwards compatibility, this defaults to `tailscale`. When using helm, a new `ingress.name` value is provided that will set this environment variable and modify the name of the deployed `IngressClass` resource. Fixes https://github.com/tailscale/tailscale/issues/16248 Signed-off-by: David Bond <davidsbond93@gmail.com>
11 lines
460 B
YAML
11 lines
460 B
YAML
{{- if .Values.ingressClass.enabled }}
|
|
apiVersion: networking.k8s.io/v1
|
|
kind: IngressClass
|
|
metadata:
|
|
name: {{ .Values.ingressClass.name }}
|
|
annotations: {} # we do not support default IngressClass annotation https://kubernetes.io/docs/concepts/services-networking/ingress/#default-ingress-class
|
|
spec:
|
|
controller: tailscale.com/ts-ingress # controller name currently can not be changed
|
|
# parameters: {} # currently no parameters are supported
|
|
{{- end }}
|